mirror of
https://github.com/zoriya/vim.git
synced 2025-12-19 05:35:17 +00:00
updated for version 7.2-180
This commit is contained in:
@@ -2025,13 +2025,12 @@ buflist_findname_stat(ffname, stp)
|
||||
* Return fnum of the found buffer.
|
||||
* Return < 0 for error.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
buflist_findpat(pattern, pattern_end, unlisted, diffmode)
|
||||
char_u *pattern;
|
||||
char_u *pattern_end; /* pointer to first char after pattern */
|
||||
int unlisted; /* find unlisted buffers */
|
||||
int diffmode; /* find diff-mode buffers only */
|
||||
int diffmode UNUSED; /* find diff-mode buffers only */
|
||||
{
|
||||
buf_T *buf;
|
||||
regprog_T *prog;
|
||||
@@ -2539,7 +2538,6 @@ buflist_findlnum(buf)
|
||||
/*
|
||||
* List all know file names (for :files and :buffers command).
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
buflist_list(eap)
|
||||
exarg_T *eap;
|
||||
@@ -3346,14 +3344,13 @@ free_titles()
|
||||
* If maxwidth is not zero, the string will be filled at any middle marker
|
||||
* or truncated if too long, fillchar is used for all whitespace.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar, maxwidth, hltab, tabtab)
|
||||
win_T *wp;
|
||||
char_u *out; /* buffer to write into != NameBuff */
|
||||
size_t outlen; /* length of out[] */
|
||||
char_u *fmt;
|
||||
int use_sandbox; /* "fmt" was set insecurely, use sandbox */
|
||||
int use_sandbox UNUSED; /* "fmt" was set insecurely, use sandbox */
|
||||
int fillchar;
|
||||
int maxwidth;
|
||||
struct stl_hlrec *hltab; /* return: HL attributes (can be NULL) */
|
||||
|
||||
@@ -2255,12 +2255,11 @@ viminfo_readline(virp)
|
||||
*
|
||||
* Return the string in allocated memory (NULL when out of memory).
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
char_u *
|
||||
viminfo_readstring(virp, off, convert)
|
||||
vir_T *virp;
|
||||
int off; /* offset for virp->vir_line */
|
||||
int convert; /* convert the string */
|
||||
int convert UNUSED; /* convert the string */
|
||||
{
|
||||
char_u *retval;
|
||||
char_u *s, *d;
|
||||
@@ -2736,7 +2735,6 @@ theend:
|
||||
* May set eap->forceit if a dialog says it's OK to overwrite.
|
||||
* Return OK if it's OK, FAIL if it is not.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
check_overwrite(eap, buf, fname, ffname, other)
|
||||
exarg_T *eap;
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
# define mb_cptr2len(p) (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p))
|
||||
|
||||
# define MB_COPY_CHAR(f, t) if (has_mbyte) mb_copy_char(&f, &t); else *t++ = *f++
|
||||
# define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : STRLEN(p))
|
||||
# define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : (int)STRLEN(p))
|
||||
# define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p))
|
||||
#else
|
||||
# define mb_ptr_adv(p) ++p
|
||||
|
||||
@@ -1505,10 +1505,9 @@ parse_command_name(parmp)
|
||||
*
|
||||
* Also find the --server... arguments and --socketid and --windowid
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
early_arg_scan(parmp)
|
||||
mparm_T *parmp;
|
||||
mparm_T *parmp UNUSED;
|
||||
{
|
||||
#if defined(FEAT_XCLIPBOARD) || defined(FEAT_CLIENTSERVER) \
|
||||
|| !defined(FEAT_NETBEANS_INTG)
|
||||
@@ -2380,10 +2379,9 @@ read_stdin()
|
||||
* Create the requested number of windows and edit buffers in them.
|
||||
* Also does recovery if "recoverymode" set.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
create_windows(parmp)
|
||||
mparm_T *parmp;
|
||||
mparm_T *parmp UNUSED;
|
||||
{
|
||||
#ifdef FEAT_WINDOWS
|
||||
int dorewind;
|
||||
@@ -3851,10 +3849,9 @@ eval_client_expr_to_string(expr)
|
||||
* return an allocated string. Otherwise return "data".
|
||||
* "*tofree" is set to the result when it needs to be freed later.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
char_u *
|
||||
serverConvert(client_enc, data, tofree)
|
||||
char_u *client_enc;
|
||||
char_u *client_enc UNUSED;
|
||||
char_u *data;
|
||||
char_u **tofree;
|
||||
{
|
||||
|
||||
81
src/mbyte.c
81
src/mbyte.c
@@ -1015,10 +1015,9 @@ dbcs_class(lead, trail)
|
||||
* Return length in bytes of character "c".
|
||||
* Returns 1 for a single-byte character.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
int
|
||||
latin_char2len(c)
|
||||
int c;
|
||||
int c UNUSED;
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -1248,10 +1247,9 @@ utf_char2cells(c)
|
||||
* Return the number of display cells character at "*p" occupies.
|
||||
* This doesn't take care of unprintable characters, use ptr2cells() for that.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
latin_ptr2cells(p)
|
||||
char_u *p;
|
||||
char_u *p UNUSED;
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -1293,10 +1291,9 @@ dbcs_ptr2cells(p)
|
||||
* Return the number of display cells character "c" occupies.
|
||||
* Only takes care of multi-byte chars, not "^C" and such.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
latin_char2cells(c)
|
||||
int c;
|
||||
int c UNUSED;
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -1318,11 +1315,10 @@ dbcs_char2cells(c)
|
||||
* Return number of display cells for char at ScreenLines[off].
|
||||
* We make sure that the offset used is less than "max_off".
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
latin_off2cells(off, max_off)
|
||||
unsigned off;
|
||||
unsigned max_off;
|
||||
unsigned off UNUSED;
|
||||
unsigned max_off UNUSED;
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -2419,11 +2415,10 @@ show_utf8()
|
||||
* Return offset from "p" to the first byte of the character it points into.
|
||||
* Returns 0 when already at the first byte of a character.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
latin_head_off(base, p)
|
||||
char_u *base;
|
||||
char_u *p;
|
||||
char_u *base UNUSED;
|
||||
char_u *p UNUSED;
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -3131,7 +3126,7 @@ enc_locale()
|
||||
else
|
||||
s = p + 1;
|
||||
}
|
||||
for (i = 0; s[i] != NUL && i < sizeof(buf) - 1; ++i)
|
||||
for (i = 0; s[i] != NUL && i < (int)sizeof(buf) - 1; ++i)
|
||||
{
|
||||
if (s[i] == '_' || s[i] == '-')
|
||||
buf[i] = '-';
|
||||
@@ -3582,9 +3577,10 @@ im_show_info(void)
|
||||
* Callback invoked when the user finished preediting.
|
||||
* Put the final string into the input buffer.
|
||||
*/
|
||||
/*ARGSUSED0*/
|
||||
static void
|
||||
im_commit_cb(GtkIMContext *context, const gchar *str, gpointer data)
|
||||
im_commit_cb(GtkIMContext *context UNUSED,
|
||||
const gchar *str,
|
||||
gpointer data UNUSED)
|
||||
{
|
||||
int slen = (int)STRLEN(str);
|
||||
int add_to_input = TRUE;
|
||||
@@ -3670,9 +3666,8 @@ im_commit_cb(GtkIMContext *context, const gchar *str, gpointer data)
|
||||
/*
|
||||
* Callback invoked after start to the preedit.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
im_preedit_start_cb(GtkIMContext *context, gpointer data)
|
||||
im_preedit_start_cb(GtkIMContext *context UNUSED, gpointer data UNUSED)
|
||||
{
|
||||
#ifdef XIM_DEBUG
|
||||
xim_log("im_preedit_start_cb()\n");
|
||||
@@ -3687,9 +3682,8 @@ im_preedit_start_cb(GtkIMContext *context, gpointer data)
|
||||
/*
|
||||
* Callback invoked after end to the preedit.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
im_preedit_end_cb(GtkIMContext *context, gpointer data)
|
||||
im_preedit_end_cb(GtkIMContext *context UNUSED, gpointer data UNUSED)
|
||||
{
|
||||
#ifdef XIM_DEBUG
|
||||
xim_log("im_preedit_end_cb()\n");
|
||||
@@ -3748,9 +3742,8 @@ im_preedit_end_cb(GtkIMContext *context, gpointer data)
|
||||
* remaining input from within the "retrieve_surrounding" signal handler, this
|
||||
* might not be necessary. Gotta ask on vim-dev for opinions.
|
||||
*/
|
||||
/*ARGSUSED1*/
|
||||
static void
|
||||
im_preedit_changed_cb(GtkIMContext *context, gpointer data)
|
||||
im_preedit_changed_cb(GtkIMContext *context, gpointer data UNUSED)
|
||||
{
|
||||
char *preedit_string = NULL;
|
||||
int cursor_index = 0;
|
||||
@@ -4616,11 +4609,10 @@ xim_set_focus(focus)
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
im_set_position(row, col)
|
||||
int row;
|
||||
int col;
|
||||
int row UNUSED;
|
||||
int col UNUSED;
|
||||
{
|
||||
xim_set_preedit();
|
||||
}
|
||||
@@ -4927,12 +4919,11 @@ static int xim_real_init __ARGS((Window x11_window, Display *x11_display));
|
||||
static void xim_instantiate_cb __ARGS((Display *display, XPointer client_data, XPointer call_data));
|
||||
static void xim_destroy_cb __ARGS((XIM im, XPointer client_data, XPointer call_data));
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xim_instantiate_cb(display, client_data, call_data)
|
||||
Display *display;
|
||||
XPointer client_data;
|
||||
XPointer call_data;
|
||||
XPointer client_data UNUSED;
|
||||
XPointer call_data UNUSED;
|
||||
{
|
||||
Window x11_window;
|
||||
Display *x11_display;
|
||||
@@ -4952,12 +4943,11 @@ xim_instantiate_cb(display, client_data, call_data)
|
||||
xim_instantiate_cb, NULL);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xim_destroy_cb(im, client_data, call_data)
|
||||
XIM im;
|
||||
XPointer client_data;
|
||||
XPointer call_data;
|
||||
XIM im UNUSED;
|
||||
XPointer client_data UNUSED;
|
||||
XPointer call_data UNUSED;
|
||||
{
|
||||
Window x11_window;
|
||||
Display *x11_display;
|
||||
@@ -5276,9 +5266,10 @@ xim_decide_input_style()
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
preedit_start_cbproc(XIC thexic, XPointer client_data, XPointer call_data)
|
||||
preedit_start_cbproc(XIC thexic UNUSED,
|
||||
XPointer client_data UNUSED,
|
||||
XPointer call_data UNUSED)
|
||||
{
|
||||
#ifdef XIM_DEBUG
|
||||
xim_log("xim_decide_input_style()\n");
|
||||
@@ -5310,9 +5301,10 @@ xim_back_delete(int n)
|
||||
static GSList *key_press_event_queue = NULL;
|
||||
static gboolean processing_queued_event = FALSE;
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
preedit_draw_cbproc(XIC thexic, XPointer client_data, XPointer call_data)
|
||||
preedit_draw_cbproc(XIC thexic UNUSED,
|
||||
XPointer client_data UNUSED,
|
||||
XPointer call_data)
|
||||
{
|
||||
XIMPreeditDrawCallbackStruct *draw_data;
|
||||
XIMText *text;
|
||||
@@ -5451,18 +5443,20 @@ im_get_feedback_attr(int col)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
preedit_caret_cbproc(XIC thexic, XPointer client_data, XPointer call_data)
|
||||
preedit_caret_cbproc(XIC thexic UNUSED,
|
||||
XPointer client_data UNUSED,
|
||||
XPointer call_data UNUSED)
|
||||
{
|
||||
#ifdef XIM_DEBUG
|
||||
xim_log("preedit_caret_cbproc()\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
preedit_done_cbproc(XIC thexic, XPointer client_data, XPointer call_data)
|
||||
preedit_done_cbproc(XIC thexic UNUSED,
|
||||
XPointer client_data UNUSED,
|
||||
XPointer call_data UNUSED)
|
||||
{
|
||||
#ifdef XIM_DEBUG
|
||||
xim_log("preedit_done_cbproc()\n");
|
||||
@@ -5501,9 +5495,8 @@ xim_reset(void)
|
||||
}
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
xim_queue_key_press_event(GdkEventKey *event, int down)
|
||||
xim_queue_key_press_event(GdkEventKey *event, int down UNUSED)
|
||||
{
|
||||
#ifdef XIM_DEBUG
|
||||
xim_log("xim_queue_key_press_event()\n");
|
||||
@@ -5519,9 +5512,8 @@ xim_queue_key_press_event(GdkEventKey *event, int down)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
preedit_callback_setup(GdkIC *ic)
|
||||
preedit_callback_setup(GdkIC *ic UNUSED)
|
||||
{
|
||||
XIC xxic;
|
||||
XVaNestedList preedit_attr;
|
||||
@@ -5546,9 +5538,8 @@ preedit_callback_setup(GdkIC *ic)
|
||||
XFree(preedit_attr);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
reset_state_setup(GdkIC *ic)
|
||||
reset_state_setup(GdkIC *ic UNUSED)
|
||||
{
|
||||
#ifdef USE_X11R6_XIM
|
||||
/* don't change the input context when we call reset */
|
||||
|
||||
@@ -2340,10 +2340,9 @@ static garray_T menutrans_ga = {0, 0, 0, 0, NULL};
|
||||
* This function is also defined without the +multi_lang feature, in which
|
||||
* case the commands are ignored.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
ex_menutranslate(eap)
|
||||
exarg_T *eap;
|
||||
exarg_T *eap UNUSED;
|
||||
{
|
||||
#ifdef FEAT_MULTI_LANG
|
||||
char_u *arg = eap->arg;
|
||||
|
||||
@@ -818,10 +818,9 @@ delete_first_msg()
|
||||
/*
|
||||
* ":messages" command.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
ex_messages(eap)
|
||||
exarg_T *eap;
|
||||
exarg_T *eap UNUSED;
|
||||
{
|
||||
struct msg_hist *p;
|
||||
char_u *s;
|
||||
@@ -3290,15 +3289,15 @@ msg_advance(col)
|
||||
* A '&' in a button name becomes a shortcut, so each '&' should be before a
|
||||
* different letter.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
int
|
||||
do_dialog(type, title, message, buttons, dfltbutton, textfield)
|
||||
int type;
|
||||
char_u *title;
|
||||
int type UNUSED;
|
||||
char_u *title UNUSED;
|
||||
char_u *message;
|
||||
char_u *buttons;
|
||||
int dfltbutton;
|
||||
char_u *textfield; /* IObuff for inputdialog(), NULL otherwise */
|
||||
char_u *textfield UNUSED; /* IObuff for inputdialog(), NULL
|
||||
otherwise */
|
||||
{
|
||||
int oldState;
|
||||
int retval = 0;
|
||||
@@ -4021,7 +4020,7 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
if (*p != '%')
|
||||
{
|
||||
char *q = strchr(p + 1, '%');
|
||||
size_t n = (q == NULL) ? STRLEN(p) : (q - p);
|
||||
size_t n = (q == NULL) ? STRLEN(p) : (size_t)(q - p);
|
||||
|
||||
/* Copy up to the next '%' or NUL without any changes. */
|
||||
if (str_l < str_m)
|
||||
@@ -4268,7 +4267,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
precision <= (size_t)0x7fffffffL ? precision
|
||||
: (size_t)0x7fffffffL);
|
||||
#endif
|
||||
str_arg_l = (q == NULL) ? precision : q - str_arg;
|
||||
str_arg_l = (q == NULL) ? precision
|
||||
: (size_t)(q - str_arg);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -4368,7 +4368,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
get_a_arg(arg_idx);
|
||||
#else
|
||||
# if defined(FEAT_EVAL)
|
||||
tvs != NULL ? tv_nr(tvs, &arg_idx) :
|
||||
tvs != NULL ? (unsigned)
|
||||
tv_nr(tvs, &arg_idx) :
|
||||
# endif
|
||||
va_arg(ap, unsigned int);
|
||||
#endif
|
||||
@@ -4381,7 +4382,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
get_a_arg(arg_idx);
|
||||
#else
|
||||
# if defined(FEAT_EVAL)
|
||||
tvs != NULL ? tv_nr(tvs, &arg_idx) :
|
||||
tvs != NULL ? (unsigned long)
|
||||
tv_nr(tvs, &arg_idx) :
|
||||
# endif
|
||||
va_arg(ap, unsigned long int);
|
||||
#endif
|
||||
@@ -4704,7 +4706,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
size_t avail = str_m - str_l;
|
||||
|
||||
vim_memset(str + str_l, zero_padding ? '0' : ' ',
|
||||
(size_t)pn > avail ? avail : pn);
|
||||
(size_t)pn > avail ? avail
|
||||
: (size_t)pn);
|
||||
}
|
||||
str_l += pn;
|
||||
}
|
||||
@@ -4731,7 +4734,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
size_t avail = str_m - str_l;
|
||||
|
||||
mch_memmove(str + str_l, str_arg,
|
||||
(size_t)zn > avail ? avail : zn);
|
||||
(size_t)zn > avail ? avail
|
||||
: (size_t)zn);
|
||||
}
|
||||
str_l += zn;
|
||||
}
|
||||
@@ -4746,7 +4750,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
size_t avail = str_m-str_l;
|
||||
|
||||
vim_memset(str + str_l, '0',
|
||||
(size_t)zn > avail ? avail : zn);
|
||||
(size_t)zn > avail ? avail
|
||||
: (size_t)zn);
|
||||
}
|
||||
str_l += zn;
|
||||
}
|
||||
@@ -4765,7 +4770,7 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
|
||||
mch_memmove(str + str_l,
|
||||
str_arg + zero_padding_insertion_ind,
|
||||
(size_t)sn > avail ? avail : sn);
|
||||
(size_t)sn > avail ? avail : (size_t)sn);
|
||||
}
|
||||
str_l += sn;
|
||||
}
|
||||
@@ -4785,7 +4790,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
|
||||
size_t avail = str_m - str_l;
|
||||
|
||||
vim_memset(str + str_l, ' ',
|
||||
(size_t)pn > avail ? avail : pn);
|
||||
(size_t)pn > avail ? avail
|
||||
: (size_t)pn);
|
||||
}
|
||||
str_l += pn;
|
||||
}
|
||||
|
||||
@@ -4147,10 +4147,9 @@ vim_setenv(name, val)
|
||||
/*
|
||||
* Function given to ExpandGeneric() to obtain an environment variable name.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
char_u *
|
||||
get_env_name(xp, idx)
|
||||
expand_T *xp;
|
||||
expand_T *xp UNUSED;
|
||||
int idx;
|
||||
{
|
||||
# if defined(AMIGA) || defined(__MRC__) || defined(__SC__)
|
||||
@@ -4742,9 +4741,9 @@ find_start_comment(ind_maxcomment) /* XXX */
|
||||
* If it is then restrict the search to below this line and try again.
|
||||
*/
|
||||
line = ml_get(pos->lnum);
|
||||
for (p = line; *p && (unsigned)(p - line) < pos->col; ++p)
|
||||
for (p = line; *p && (colnr_T)(p - line) < pos->col; ++p)
|
||||
p = skip_string(p);
|
||||
if ((unsigned)(p - line) <= pos->col)
|
||||
if ((colnr_T)(p - line) <= pos->col)
|
||||
break;
|
||||
cur_maxcomment = curwin->w_cursor.lnum - pos->lnum - 1;
|
||||
if (cur_maxcomment <= 0)
|
||||
@@ -6275,7 +6274,7 @@ get_c_indent()
|
||||
* check for that.
|
||||
*/
|
||||
if ((State & INSERT)
|
||||
&& curwin->w_cursor.col < STRLEN(linecopy)
|
||||
&& curwin->w_cursor.col < (colnr_T)STRLEN(linecopy)
|
||||
&& linecopy[curwin->w_cursor.col] == ')')
|
||||
linecopy[curwin->w_cursor.col] = NUL;
|
||||
|
||||
|
||||
@@ -9243,10 +9243,9 @@ nv_open(cap)
|
||||
}
|
||||
|
||||
#ifdef FEAT_SNIFF
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
nv_sniff(cap)
|
||||
cmdarg_T *cap;
|
||||
cmdarg_T *cap UNUSED;
|
||||
{
|
||||
ProcessSniffRequests();
|
||||
}
|
||||
@@ -9262,10 +9261,9 @@ nv_nbcmd(cap)
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_DND
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
nv_drop(cap)
|
||||
cmdarg_T *cap;
|
||||
cmdarg_T *cap UNUSED;
|
||||
{
|
||||
do_put('~', BACKWARD, 1L, PUT_CURSEND);
|
||||
}
|
||||
@@ -9277,7 +9275,6 @@ nv_drop(cap)
|
||||
* When waiting for a character for 'updatetime' K_CURSORHOLD is put in the
|
||||
* input buffer. "did_cursorhold" is set to avoid retriggering.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
nv_cursorhold(cap)
|
||||
cmdarg_T *cap;
|
||||
|
||||
761
src/option.c
761
src/option.c
File diff suppressed because it is too large
Load Diff
@@ -821,7 +821,6 @@ sig_winch SIGDEFARG(sigarg)
|
||||
#endif
|
||||
|
||||
#if defined(SIGINT)
|
||||
/* ARGSUSED */
|
||||
static RETSIGTYPE
|
||||
catch_sigint SIGDEFARG(sigarg)
|
||||
{
|
||||
@@ -833,7 +832,6 @@ catch_sigint SIGDEFARG(sigarg)
|
||||
#endif
|
||||
|
||||
#if defined(SIGPWR)
|
||||
/* ARGSUSED */
|
||||
static RETSIGTYPE
|
||||
catch_sigpwr SIGDEFARG(sigarg)
|
||||
{
|
||||
@@ -853,7 +851,6 @@ catch_sigpwr SIGDEFARG(sigarg)
|
||||
/*
|
||||
* signal function for alarm().
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static RETSIGTYPE
|
||||
sig_alarm SIGDEFARG(sigarg)
|
||||
{
|
||||
@@ -1087,7 +1084,6 @@ static RETSIGTYPE sigcont_handler __ARGS(SIGPROTOARG);
|
||||
/*
|
||||
* signal handler for SIGCONT
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static RETSIGTYPE
|
||||
sigcont_handler SIGDEFARG(sigarg)
|
||||
{
|
||||
@@ -1436,11 +1432,10 @@ x_error_handler(dpy, error_event)
|
||||
/*
|
||||
* Another X Error handler, just used to check for errors.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
x_error_check(dpy, error_event)
|
||||
Display *dpy;
|
||||
XErrorEvent *error_event;
|
||||
Display *dpy UNUSED;
|
||||
XErrorEvent *error_event UNUSED;
|
||||
{
|
||||
got_x_error = TRUE;
|
||||
return 0;
|
||||
@@ -1453,15 +1448,12 @@ x_error_check(dpy, error_event)
|
||||
*/
|
||||
static int x_IOerror_check __ARGS((Display *dpy));
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
x_IOerror_check(dpy)
|
||||
Display *dpy;
|
||||
Display *dpy UNUSED;
|
||||
{
|
||||
/* This function should not return, it causes exit(). Longjump instead. */
|
||||
LONGJMP(lc_jump_env, 1);
|
||||
/*NOTREACHED*/
|
||||
return 0;
|
||||
}
|
||||
# endif
|
||||
|
||||
@@ -1470,10 +1462,9 @@ x_IOerror_check(dpy)
|
||||
*/
|
||||
static int x_IOerror_handler __ARGS((Display *dpy));
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
x_IOerror_handler(dpy)
|
||||
Display *dpy;
|
||||
Display *dpy UNUSED;
|
||||
{
|
||||
xterm_dpy = NULL;
|
||||
x11_window = 0;
|
||||
@@ -1482,8 +1473,6 @@ x_IOerror_handler(dpy)
|
||||
|
||||
/* This function should not return, it causes exit(). Longjump instead. */
|
||||
LONGJMP(x_jump_env, 1);
|
||||
/*NOTREACHED*/
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1919,10 +1908,9 @@ set_x11_icon(icon)
|
||||
|
||||
#else /* FEAT_X11 */
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
get_x11_title(test_only)
|
||||
int test_only;
|
||||
int test_only UNUSED;
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -2497,11 +2485,10 @@ mch_isFullName(fname)
|
||||
* file name to remain exactly the same.
|
||||
* Only required for file systems where case is ignored and preserved.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
fname_case(name, len)
|
||||
char_u *name;
|
||||
int len; /* buffer size, only used when name gets longer */
|
||||
int len UNUSED; /* buffer size, only used when name gets longer */
|
||||
{
|
||||
struct stat st;
|
||||
char_u *slash, *tail;
|
||||
@@ -5141,7 +5128,6 @@ mch_expandpath(gap, path, flags)
|
||||
|
||||
#define SHELL_SPECIAL (char_u *)"\t \"&'$;<>()\\|"
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
mch_expand_wildcards(num_pat, pat, num_file, file, flags)
|
||||
int num_pat;
|
||||
@@ -6068,7 +6054,6 @@ sysmouse_close()
|
||||
/*
|
||||
* Gets info from sysmouse and adds special keys to input buf.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static RETSIGTYPE
|
||||
sig_sysmouse SIGDEFARG(sigarg)
|
||||
{
|
||||
@@ -6632,11 +6617,10 @@ static void xsmp_handle_interaction __ARGS((SmcConn smc_conn, SmPointer client_d
|
||||
* This is our chance to ask the user if they want to save,
|
||||
* or abort the logout
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xsmp_handle_interaction(smc_conn, client_data)
|
||||
SmcConn smc_conn;
|
||||
SmPointer client_data;
|
||||
SmPointer client_data UNUSED;
|
||||
{
|
||||
cmdmod_T save_cmdmod;
|
||||
int cancel_shutdown = False;
|
||||
@@ -6669,16 +6653,15 @@ xsmp_handle_interaction(smc_conn, client_data)
|
||||
/*
|
||||
* Callback that starts save-yourself.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xsmp_handle_save_yourself(smc_conn, client_data, save_type,
|
||||
shutdown, interact_style, fast)
|
||||
SmcConn smc_conn;
|
||||
SmPointer client_data;
|
||||
int save_type;
|
||||
SmPointer client_data UNUSED;
|
||||
int save_type UNUSED;
|
||||
Bool shutdown;
|
||||
int interact_style;
|
||||
Bool fast;
|
||||
int interact_style UNUSED;
|
||||
Bool fast UNUSED;
|
||||
{
|
||||
/* Handle already being in saveyourself */
|
||||
if (xsmp.save_yourself)
|
||||
@@ -6712,11 +6695,10 @@ xsmp_handle_save_yourself(smc_conn, client_data, save_type,
|
||||
/*
|
||||
* Callback to warn us of imminent death.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xsmp_die(smc_conn, client_data)
|
||||
SmcConn smc_conn;
|
||||
SmPointer client_data;
|
||||
SmcConn smc_conn UNUSED;
|
||||
SmPointer client_data UNUSED;
|
||||
{
|
||||
xsmp_close();
|
||||
|
||||
@@ -6728,11 +6710,10 @@ xsmp_die(smc_conn, client_data)
|
||||
/*
|
||||
* Callback to tell us that save-yourself has completed.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xsmp_save_complete(smc_conn, client_data)
|
||||
SmcConn smc_conn;
|
||||
SmPointer client_data;
|
||||
SmcConn smc_conn UNUSED;
|
||||
SmPointer client_data UNUSED;
|
||||
{
|
||||
xsmp.save_yourself = False;
|
||||
}
|
||||
@@ -6742,11 +6723,10 @@ xsmp_save_complete(smc_conn, client_data)
|
||||
* Callback to tell us that an instigated shutdown was cancelled
|
||||
* (maybe even by us)
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xsmp_shutdown_cancelled(smc_conn, client_data)
|
||||
SmcConn smc_conn;
|
||||
SmPointer client_data;
|
||||
SmPointer client_data UNUSED;
|
||||
{
|
||||
if (xsmp.save_yourself)
|
||||
SmcSaveYourselfDone(smc_conn, True);
|
||||
@@ -6758,13 +6738,12 @@ xsmp_shutdown_cancelled(smc_conn, client_data)
|
||||
/*
|
||||
* Callback to tell us that a new ICE connection has been established.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
xsmp_ice_connection(iceConn, clientData, opening, watchData)
|
||||
IceConn iceConn;
|
||||
IcePointer clientData;
|
||||
IcePointer clientData UNUSED;
|
||||
Bool opening;
|
||||
IcePointer *watchData;
|
||||
IcePointer *watchData UNUSED;
|
||||
{
|
||||
/* Intercept creation of ICE connection fd */
|
||||
if (opening)
|
||||
|
||||
@@ -2240,7 +2240,6 @@ ex_cwindow(eap)
|
||||
* ":cclose": close the window showing the list of errors.
|
||||
* ":lclose": close the window showing the location list
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
ex_cclose(eap)
|
||||
exarg_T *eap;
|
||||
@@ -3211,7 +3210,7 @@ ex_vimgrep(eap)
|
||||
break;
|
||||
col = regmatch.endpos[0].col
|
||||
+ (col == regmatch.endpos[0].col);
|
||||
if (col > STRLEN(ml_get_buf(buf, lnum, FALSE)))
|
||||
if (col > (colnr_T)STRLEN(ml_get_buf(buf, lnum, FALSE)))
|
||||
break;
|
||||
}
|
||||
line_breakcheck();
|
||||
|
||||
13
src/screen.c
13
src/screen.c
@@ -270,11 +270,10 @@ redraw_buf_later(buf, type)
|
||||
* Note that when also inserting/deleting lines w_redraw_top and w_redraw_bot
|
||||
* may become invalid and the whole window will have to be redrawn.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
redrawWinline(lnum, invalid)
|
||||
linenr_T lnum;
|
||||
int invalid; /* window line height is invalid now */
|
||||
int invalid UNUSED; /* window line height is invalid now */
|
||||
{
|
||||
#ifdef FEAT_FOLDING
|
||||
int i;
|
||||
@@ -2413,7 +2412,7 @@ fold_line(wp, fold_count, foldinfo, lnum, row)
|
||||
&& (lnume < bot->lnum
|
||||
|| (lnume == bot->lnum
|
||||
&& (bot->col - (*p_sel == 'e'))
|
||||
>= STRLEN(ml_get_buf(wp->w_buffer, lnume, FALSE)))))))
|
||||
>= (colnr_T)STRLEN(ml_get_buf(wp->w_buffer, lnume, FALSE)))))))
|
||||
{
|
||||
if (VIsual_mode == Ctrl_V)
|
||||
{
|
||||
@@ -2549,14 +2548,13 @@ fill_foldcolumn(p, wp, closed, lnum)
|
||||
*
|
||||
* Return the number of last row the line occupies.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
win_line(wp, lnum, startrow, endrow, nochange)
|
||||
win_T *wp;
|
||||
linenr_T lnum;
|
||||
int startrow;
|
||||
int endrow;
|
||||
int nochange; /* not updating for changed text */
|
||||
int nochange UNUSED; /* not updating for changed text */
|
||||
{
|
||||
int col; /* visual column on screen */
|
||||
unsigned off; /* offset in ScreenLines/ScreenAttrs */
|
||||
@@ -6098,7 +6096,7 @@ win_redr_custom(wp, draw_ruler)
|
||||
fillchar, maxwidth, hltab, tabtab);
|
||||
len = (int)STRLEN(buf);
|
||||
|
||||
while (width < maxwidth && len < sizeof(buf) - 1)
|
||||
while (width < maxwidth && len < (int)sizeof(buf) - 1)
|
||||
{
|
||||
#ifdef FEAT_MBYTE
|
||||
len += (*mb_char2bytes)(fillchar, buf + len);
|
||||
@@ -8655,7 +8653,6 @@ screen_ins_lines(off, row, line_count, end, wp)
|
||||
*
|
||||
* Return OK for success, FAIL if the lines are not deleted.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
screen_del_lines(off, row, line_count, end, force, wp)
|
||||
int off;
|
||||
@@ -8663,7 +8660,7 @@ screen_del_lines(off, row, line_count, end, force, wp)
|
||||
int line_count;
|
||||
int end;
|
||||
int force; /* even when line_count > p_ttyscroll */
|
||||
win_T *wp; /* NULL or window to use width from */
|
||||
win_T *wp UNUSED; /* NULL or window to use width from */
|
||||
{
|
||||
int j;
|
||||
int i;
|
||||
|
||||
@@ -4527,12 +4527,11 @@ linewhite(lnum)
|
||||
* Find identifiers or defines in included files.
|
||||
* if p_ic && (compl_cont_status & CONT_SOL) then ptr must be in lowercase.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
find_pattern_in_path(ptr, dir, len, whole, skip_comments,
|
||||
type, count, action, start_lnum, end_lnum)
|
||||
char_u *ptr; /* pointer to search pattern */
|
||||
int dir; /* direction of expansion */
|
||||
int dir UNUSED; /* direction of expansion */
|
||||
int len; /* length of search pattern */
|
||||
int whole; /* match whole words only */
|
||||
int skip_comments; /* don't match inside comments */
|
||||
|
||||
22
src/spell.c
22
src/spell.c
@@ -950,8 +950,8 @@ static void close_spellbuf __ARGS((buf_T *buf));
|
||||
*/
|
||||
#ifndef FEAT_MBYTE
|
||||
/* Non-multi-byte implementation. */
|
||||
# define SPELL_TOFOLD(c) ((c) < 256 ? spelltab.st_fold[c] : (c))
|
||||
# define SPELL_TOUPPER(c) ((c) < 256 ? spelltab.st_upper[c] : (c))
|
||||
# define SPELL_TOFOLD(c) ((c) < 256 ? (int)spelltab.st_fold[c] : (c))
|
||||
# define SPELL_TOUPPER(c) ((c) < 256 ? (int)spelltab.st_upper[c] : (c))
|
||||
# define SPELL_ISUPPER(c) ((c) < 256 ? spelltab.st_isu[c] : FALSE)
|
||||
#else
|
||||
# if defined(HAVE_WCHAR_H)
|
||||
@@ -962,18 +962,18 @@ static void close_spellbuf __ARGS((buf_T *buf));
|
||||
* the "w" library function for characters above 255 if available. */
|
||||
# ifdef HAVE_TOWLOWER
|
||||
# define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \
|
||||
: (c) < 256 ? spelltab.st_fold[c] : towlower(c))
|
||||
: (c) < 256 ? (int)spelltab.st_fold[c] : (int)towlower(c))
|
||||
# else
|
||||
# define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \
|
||||
: (c) < 256 ? spelltab.st_fold[c] : (c))
|
||||
: (c) < 256 ? (int)spelltab.st_fold[c] : (c))
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_TOWUPPER
|
||||
# define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \
|
||||
: (c) < 256 ? spelltab.st_upper[c] : towupper(c))
|
||||
: (c) < 256 ? (int)spelltab.st_upper[c] : (int)towupper(c))
|
||||
# else
|
||||
# define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \
|
||||
: (c) < 256 ? spelltab.st_upper[c] : (c))
|
||||
: (c) < 256 ? (int)spelltab.st_upper[c] : (c))
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_ISWUPPER
|
||||
@@ -8052,7 +8052,7 @@ put_sugtime(spin, fd)
|
||||
/* time_t can be up to 8 bytes in size, more than long_u, thus we
|
||||
* can't use put_bytes() here. */
|
||||
for (i = 7; i >= 0; --i)
|
||||
if (i + 1 > sizeof(time_t))
|
||||
if (i + 1 > (int)sizeof(time_t))
|
||||
/* ">>" doesn't work well when shifting more bits than avail */
|
||||
putc(0, fd);
|
||||
else
|
||||
@@ -10541,10 +10541,9 @@ check_need_cap(lnum, col)
|
||||
/*
|
||||
* ":spellrepall"
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
ex_spellrepall(eap)
|
||||
exarg_T *eap;
|
||||
exarg_T *eap UNUSED;
|
||||
{
|
||||
pos_T pos = curwin->w_cursor;
|
||||
char_u *frompat;
|
||||
@@ -15604,10 +15603,9 @@ pop:
|
||||
/*
|
||||
* ":spellinfo"
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
ex_spellinfo(eap)
|
||||
exarg_T *eap;
|
||||
exarg_T *eap UNUSED;
|
||||
{
|
||||
int lpi;
|
||||
langp_T *lp;
|
||||
@@ -16153,7 +16151,7 @@ spell_expand_check_cap(col)
|
||||
*/
|
||||
int
|
||||
expand_spelling(lnum, pat, matchp)
|
||||
linenr_T lnum;
|
||||
linenr_T lnum UNUSED;
|
||||
char_u *pat;
|
||||
char_u ***matchp;
|
||||
{
|
||||
|
||||
44
src/syntax.c
44
src/syntax.c
@@ -3224,11 +3224,10 @@ check_keyword_id(line, startcol, endcolp, flagsp, next_listp, cur_si)
|
||||
/*
|
||||
* Handle ":syntax case" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_case(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
char_u *arg = eap->arg;
|
||||
char_u *next;
|
||||
@@ -3249,11 +3248,10 @@ syn_cmd_case(eap, syncing)
|
||||
/*
|
||||
* Handle ":syntax spell" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_spell(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
char_u *arg = eap->arg;
|
||||
char_u *next;
|
||||
@@ -3517,11 +3515,10 @@ syn_clear_one(id, syncing)
|
||||
/*
|
||||
* Handle ":syntax on" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_on(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
syn_cmd_onoff(eap, "syntax");
|
||||
}
|
||||
@@ -3529,11 +3526,10 @@ syn_cmd_on(eap, syncing)
|
||||
/*
|
||||
* Handle ":syntax enable" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_enable(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
set_internal_string_var((char_u *)"syntax_cmd", (char_u *)"enable");
|
||||
syn_cmd_onoff(eap, "syntax");
|
||||
@@ -3543,11 +3539,10 @@ syn_cmd_enable(eap, syncing)
|
||||
/*
|
||||
* Handle ":syntax reset" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_reset(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
eap->nextcmd = check_nextcmd(eap->arg);
|
||||
if (!eap->skip)
|
||||
@@ -3561,11 +3556,10 @@ syn_cmd_reset(eap, syncing)
|
||||
/*
|
||||
* Handle ":syntax manual" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_manual(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
syn_cmd_onoff(eap, "manual");
|
||||
}
|
||||
@@ -3573,11 +3567,10 @@ syn_cmd_manual(eap, syncing)
|
||||
/*
|
||||
* Handle ":syntax off" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_off(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
syn_cmd_onoff(eap, "nosyntax");
|
||||
}
|
||||
@@ -4461,11 +4454,10 @@ syn_incl_toplevel(id, flagsp)
|
||||
/*
|
||||
* Handle ":syntax include [@{group-name}] filename" command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_include(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
char_u *arg = eap->arg;
|
||||
int sgl_id = 1;
|
||||
@@ -4532,11 +4524,10 @@ syn_cmd_include(eap, syncing)
|
||||
/*
|
||||
* Handle ":syntax keyword {group-name} [{option}] keyword .." command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_keyword(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
char_u *arg = eap->arg;
|
||||
char_u *group_name_end;
|
||||
@@ -5275,11 +5266,10 @@ syn_add_cluster(name)
|
||||
* Handle ":syntax cluster {cluster-name} [contains={groupname},..]
|
||||
* [add={groupname},..] [remove={groupname},..]".
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_cluster(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
char_u *arg = eap->arg;
|
||||
char_u *group_name_end;
|
||||
@@ -5464,11 +5454,10 @@ get_syn_pattern(arg, ci)
|
||||
/*
|
||||
* Handle ":syntax sync .." command.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
syn_cmd_sync(eap, syncing)
|
||||
exarg_T *eap;
|
||||
int syncing; /* not used */
|
||||
int syncing UNUSED;
|
||||
{
|
||||
char_u *arg_start = eap->arg;
|
||||
char_u *arg_end;
|
||||
@@ -6099,10 +6088,9 @@ static char *(case_args[]) = {"match", "ignore", NULL};
|
||||
* Function given to ExpandGeneric() to obtain the list syntax names for
|
||||
* expansion.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
char_u *
|
||||
get_syntax_name(xp, idx)
|
||||
expand_T *xp;
|
||||
expand_T *xp UNUSED;
|
||||
int idx;
|
||||
{
|
||||
if (expand_what == EXP_SUBCMD)
|
||||
@@ -7744,14 +7732,13 @@ fontset_name2handle(name, fixed_width)
|
||||
/*
|
||||
* Get the font or fontset for one highlight group.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
hl_do_font(idx, arg, do_normal, do_menu, do_tooltip)
|
||||
int idx;
|
||||
char_u *arg;
|
||||
int do_normal; /* set normal font */
|
||||
int do_menu; /* set menu font */
|
||||
int do_tooltip; /* set tooltip font */
|
||||
int do_menu UNUSED; /* set menu font */
|
||||
int do_tooltip UNUSED; /* set tooltip font */
|
||||
{
|
||||
# ifdef FEAT_XFONTSET
|
||||
/* If 'guifontset' is not empty, first try using the name as a
|
||||
@@ -9150,10 +9137,9 @@ highlight_list_two(cnt, attr)
|
||||
* Function given to ExpandGeneric() to obtain the list of group names.
|
||||
* Also used for synIDattr() function.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
char_u *
|
||||
get_highlight_name(xp, idx)
|
||||
expand_T *xp;
|
||||
expand_T *xp UNUSED;
|
||||
int idx;
|
||||
{
|
||||
#ifdef FEAT_CMDL_COMPL
|
||||
|
||||
@@ -100,7 +100,7 @@ static char_u *tagmatchname = NULL; /* name of last used tag */
|
||||
* Tag for preview window is remembered separately, to avoid messing up the
|
||||
* normal tagstack.
|
||||
*/
|
||||
static taggy_T ptag_entry = {NULL};
|
||||
static taggy_T ptag_entry = {NULL, {INIT_POS_T(0, 0, 0), 0}, 0, 0};
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -3791,7 +3791,7 @@ add_tag_field(dict, field_name, start, end)
|
||||
--end;
|
||||
}
|
||||
len = (int)(end - start);
|
||||
if (len > sizeof(buf) - 1)
|
||||
if (len > (int)sizeof(buf) - 1)
|
||||
len = sizeof(buf) - 1;
|
||||
vim_strncpy(buf, start, len);
|
||||
}
|
||||
|
||||
@@ -2906,7 +2906,7 @@ add_long_to_buf(val, dst)
|
||||
int i;
|
||||
int shift;
|
||||
|
||||
for (i = 1; i <= sizeof(long_u); i++)
|
||||
for (i = 1; i <= (int)sizeof(long_u); i++)
|
||||
{
|
||||
shift = 8 * (sizeof(long_u) - i);
|
||||
dst[i - 1] = (char_u) ((val >> shift) & 0xff);
|
||||
@@ -2937,7 +2937,7 @@ get_long_from_buf(buf, val)
|
||||
len = get_bytes_from_buf(buf, bytes, (int)sizeof(long_u));
|
||||
if (len != -1)
|
||||
{
|
||||
for (i = 0; i < sizeof(long_u); i++)
|
||||
for (i = 0; i < (int)sizeof(long_u); i++)
|
||||
{
|
||||
shift = 8 * (sizeof(long_u) - 1 - i);
|
||||
*val += (long_u)bytes[i] << shift;
|
||||
|
||||
24
src/ui.c
24
src/ui.c
@@ -320,10 +320,9 @@ ui_get_shellsize()
|
||||
* The gui_set_shellsize() or mch_set_shellsize() function will try to set the
|
||||
* new size. If this is not possible, it will adjust Rows and Columns.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
ui_set_shellsize(mustset)
|
||||
int mustset; /* set by the user */
|
||||
int mustset UNUSED; /* set by the user */
|
||||
{
|
||||
#ifdef FEAT_GUI
|
||||
if (gui.in_use)
|
||||
@@ -1127,10 +1126,9 @@ clip_invert_rectangle(row, col, height, width, invert)
|
||||
* available for pasting.
|
||||
* When "both" is TRUE also copy to the '+' register.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
clip_copy_modeless_selection(both)
|
||||
int both;
|
||||
int both UNUSED;
|
||||
{
|
||||
char_u *buffer;
|
||||
char_u *bufp;
|
||||
@@ -1701,10 +1699,9 @@ read_from_input_buf(buf, maxlen)
|
||||
return (int)maxlen;
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
fill_input_buf(exit_on_error)
|
||||
int exit_on_error;
|
||||
int exit_on_error UNUSED;
|
||||
{
|
||||
#if defined(UNIX) || defined(OS2) || defined(VMS) || defined(MACOS_X_UNIX)
|
||||
int len;
|
||||
@@ -1992,11 +1989,10 @@ x11_setup_atoms(dpy)
|
||||
|
||||
static void clip_x11_request_selection_cb __ARGS((Widget, XtPointer, Atom *, Atom *, XtPointer, long_u *, int *));
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
clip_x11_request_selection_cb(w, success, sel_atom, type, value, length,
|
||||
format)
|
||||
Widget w;
|
||||
Widget w UNUSED;
|
||||
XtPointer success;
|
||||
Atom *sel_atom;
|
||||
Atom *type;
|
||||
@@ -2202,10 +2198,9 @@ clip_x11_request_selection(myShell, dpy, cbd)
|
||||
|
||||
static Boolean clip_x11_convert_selection_cb __ARGS((Widget, Atom *, Atom *, Atom *, XtPointer *, long_u *, int *));
|
||||
|
||||
/* ARGSUSED */
|
||||
static Boolean
|
||||
clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format)
|
||||
Widget w;
|
||||
Widget w UNUSED;
|
||||
Atom *sel_atom;
|
||||
Atom *target;
|
||||
Atom *type;
|
||||
@@ -2332,10 +2327,9 @@ clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format)
|
||||
|
||||
static void clip_x11_lose_ownership_cb __ARGS((Widget, Atom *));
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
clip_x11_lose_ownership_cb(w, sel_atom)
|
||||
Widget w;
|
||||
Widget w UNUSED;
|
||||
Atom *sel_atom;
|
||||
{
|
||||
if (*sel_atom == clip_plus.sel_atom)
|
||||
@@ -2368,10 +2362,9 @@ clip_x11_own_selection(myShell, cbd)
|
||||
* Send the current selection to the clipboard. Do nothing for X because we
|
||||
* will fill in the selection only when requested by another app.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
clip_x11_set_selection(cbd)
|
||||
VimClipboard *cbd;
|
||||
VimClipboard *cbd UNUSED;
|
||||
{
|
||||
}
|
||||
#endif
|
||||
@@ -2922,11 +2915,10 @@ mouse_comp_pos(win, rowp, colp, lnump)
|
||||
* Find the window at screen position "*rowp" and "*colp". The positions are
|
||||
* updated to become relative to the top-left of the window.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
win_T *
|
||||
mouse_find_win(rowp, colp)
|
||||
int *rowp;
|
||||
int *colp;
|
||||
int *colp UNUSED;
|
||||
{
|
||||
frame_T *fp;
|
||||
|
||||
|
||||
@@ -676,6 +676,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
180,
|
||||
/**/
|
||||
179,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user