* Function given to ExpandGeneric() to obtain the list of user defined
* (global/buffer/window/built-in) variable names.
*/
-/*ARGSUSED*/
char_u *
get_user_var_name(xp, idx)
expand_T *xp;
* Function given to ExpandGeneric() to obtain the list of internal or
* user defined variable or function names.
*/
-/*ARGSUSED*/
char_u *
get_expr_name(xp, idx)
expand_T *xp;
/*
* "byte2line(byte)" function
*/
-/*ARGSUSED*/
static void
f_byte2line(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifndef FEAT_BYTEOFF
/*
* "byteidx()" function
*/
-/*ARGSUSED*/
static void
f_byteidx(argvars, rettv)
typval_T *argvars;
static void
f_clearmatches(argvars, rettv)
typval_T *argvars UNUSED;
- typval_T *rettv;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_SEARCH_EXTRA
clear_matches(curwin);
/*
* "complete()" function
*/
-/*ARGSUSED*/
static void
f_complete(argvars, rettv)
typval_T *argvars;
- typval_T *rettv;
+ typval_T *rettv UNUSED;
{
int startcol;
/*
* "complete_add()" function
*/
-/*ARGSUSED*/
static void
f_complete_add(argvars, rettv)
typval_T *argvars;
/*
* "complete_check()" function
*/
-/*ARGSUSED*/
static void
f_complete_check(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int saved = RedrawingDisabled;
/*
* "confirm(message, buttons[, default [, type]])" function
*/
-/*ARGSUSED*/
static void
f_confirm(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
char_u *message;
*
* Checks the existence of a cscope connection.
*/
-/*ARGSUSED*/
static void
f_cscope_connection(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_CSCOPE
int num = 0;
* Moves the cursor to the specified line and column.
* Returns 0 when the position could be set, -1 otherwise.
*/
-/*ARGSUSED*/
static void
f_cursor(argvars, rettv)
typval_T *argvars;
/*
* "did_filetype()" function
*/
-/*ARGSUSED*/
static void
f_did_filetype(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_AUTOCMD
rettv->vval.v_number = did_filetype;
/*
* "diff_filler()" function
*/
-/*ARGSUSED*/
static void
f_diff_filler(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_DIFF
rettv->vval.v_number = diff_check_fill(curwin, get_tv_lnum(argvars));
/*
* "diff_hlID()" function
*/
-/*ARGSUSED*/
static void
f_diff_hlID(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_DIFF
linenr_T lnum = get_tv_lnum(argvars);
/*
* "eval()" function
*/
-/*ARGSUSED*/
static void
f_eval(argvars, rettv)
typval_T *argvars;
/*
* "eventhandler()" function
*/
-/*ARGSUSED*/
static void
f_eventhandler(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = vgetc_busy;
/*
* "feedkeys()" function
*/
-/*ARGSUSED*/
static void
f_feedkeys(argvars, rettv)
typval_T *argvars;
- typval_T *rettv;
+ typval_T *rettv UNUSED;
{
int remap = TRUE;
char_u *keys, *flags;
/*
* "foldtext()" function
*/
-/*ARGSUSED*/
static void
f_foldtext(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_FOLDING
/*
* "foldtextresult(lnum)" function
*/
-/*ARGSUSED*/
static void
f_foldtextresult(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_FOLDING
/*
* "foreground()" function
*/
-/*ARGSUSED*/
static void
f_foreground(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_GUI
if (gui.in_use)
/*
* "function()" function
*/
-/*ARGSUSED*/
static void
f_function(argvars, rettv)
typval_T *argvars;
/*
* "garbagecollect()" function
*/
-/*ARGSUSED*/
static void
f_garbagecollect(argvars, rettv)
typval_T *argvars;
- typval_T *rettv;
+ typval_T *rettv UNUSED;
{
/* This is postponed until we are back at the toplevel, because we may be
* using Lists and Dicts internally. E.g.: ":echo [garbagecollect()]". */
/*
* "getcharmod()" function
*/
-/*ARGSUSED*/
static void
f_getcharmod(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = mod_mask;
/*
* "getcmdline()" function
*/
-/*ARGSUSED*/
static void
f_getcmdline(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->v_type = VAR_STRING;
/*
* "getcmdpos()" function
*/
-/*ARGSUSED*/
static void
f_getcmdpos(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = get_cmdline_pos() + 1;
/*
* "getcmdtype()" function
*/
-/*ARGSUSED*/
static void
f_getcmdtype(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->v_type = VAR_STRING;
/*
* "getcwd()" function
*/
-/*ARGSUSED*/
static void
f_getcwd(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
char_u cwd[MAXPATHL];
/*
* "getfontname()" function
*/
-/*ARGSUSED*/
static void
f_getfontname(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->v_type = VAR_STRING;
/*
* "getmatches()" function
*/
-/*ARGSUSED*/
static void
f_getmatches(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_SEARCH_EXTRA
/*
* "getpid()" function
*/
-/*ARGSUSED*/
static void
f_getpid(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = mch_get_pid();
/*
* "getqflist()" and "getloclist()" functions
*/
-/*ARGSUSED*/
static void
f_getqflist(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_QUICKFIX
win_T *wp;
/*
* "getwinposx()" function
*/
-/*ARGSUSED*/
static void
f_getwinposx(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = -1;
/*
* "getwinposy()" function
*/
-/*ARGSUSED*/
static void
f_getwinposy(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = -1;
/*
* "haslocaldir()" function
*/
-/*ARGSUSED*/
static void
f_haslocaldir(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = (curwin->w_localdir != NULL);
/*
* "histadd()" function
*/
-/*ARGSUSED*/
static void
f_histadd(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_CMDHIST
/*
* "histdel()" function
*/
-/*ARGSUSED*/
static void
f_histdel(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_CMDHIST
int n;
/*
* "histget()" function
*/
-/*ARGSUSED*/
static void
f_histget(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_CMDHIST
/*
* "histnr()" function
*/
-/*ARGSUSED*/
static void
f_histnr(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int i;
/*
* "hostname()" function
*/
-/*ARGSUSED*/
static void
f_hostname(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
char_u hostname[256];
/*
* iconv() function
*/
-/*ARGSUSED*/
static void
f_iconv(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_MBYTE
/*
* "inputrestore()" function
*/
-/*ARGSUSED*/
static void
f_inputrestore(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
if (ga_userinput.ga_len > 0)
/*
* "inputsave()" function
*/
-/*ARGSUSED*/
static void
f_inputsave(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
/* Add an entry to the stack of typeahead storage. */
/*
* "last_buffer_nr()" function.
*/
-/*ARGSUSED*/
static void
f_last_buffer_nr(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int n = 0;
/*
* "line2byte(lnum)" function
*/
-/*ARGSUSED*/
static void
f_line2byte(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifndef FEAT_BYTEOFF
/*
* "localtime()" function
*/
-/*ARGSUSED*/
static void
f_localtime(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->vval.v_number = (varnumber_T)time(NULL);
/*
* "mode()" function
*/
-/*ARGSUSED*/
static void
f_mode(argvars, rettv)
typval_T *argvars;
/*
* "pumvisible()" function
*/
-/*ARGSUSED*/
static void
f_pumvisible(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_INS_EXPAND
if (pum_visible())
/*
* "remote_expr()" function
*/
-/*ARGSUSED*/
static void
f_remote_expr(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->v_type = VAR_STRING;
/*
* "remote_foreground()" function
*/
-/*ARGSUSED*/
static void
f_remote_foreground(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_CLIENTSERVER
# ifdef WIN32
#endif
}
-/*ARGSUSED*/
static void
f_remote_peek(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_CLIENTSERVER
#endif
}
-/*ARGSUSED*/
static void
f_remote_read(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
char_u *r = NULL;
/*
* "remote_send()" function
*/
-/*ARGSUSED*/
static void
f_remote_send(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
rettv->v_type = VAR_STRING;
/*
* "repeat()" function
*/
-/*ARGSUSED*/
static void
f_repeat(argvars, rettv)
typval_T *argvars;
}
-/*ARGSUSED*/
static void
f_server2client(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_CLIENTSERVER
#endif
}
-/*ARGSUSED*/
static void
f_serverlist(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
char_u *r = NULL;
/*
* "setbufvar()" function
*/
-/*ARGSUSED*/
static void
f_setbufvar(argvars, rettv)
typval_T *argvars;
- typval_T *rettv;
+ typval_T *rettv UNUSED;
{
buf_T *buf;
aco_save_T aco;
/*
* Used by "setqflist()" and "setloclist()" functions
*/
-/*ARGSUSED*/
static void
set_qf_ll_list(wp, list_arg, action_arg, rettv)
- win_T *wp;
- typval_T *list_arg;
- typval_T *action_arg;
+ win_T *wp UNUSED;
+ typval_T *list_arg UNUSED;
+ typval_T *action_arg UNUSED;
typval_T *rettv;
{
#ifdef FEAT_QUICKFIX
/*
* "setloclist()" function
*/
-/*ARGSUSED*/
static void
f_setloclist(argvars, rettv)
typval_T *argvars;
/*
* "setpos()" function
*/
-/*ARGSUSED*/
static void
f_setpos(argvars, rettv)
typval_T *argvars;
/*
* "setqflist()" function
*/
-/*ARGSUSED*/
static void
f_setqflist(argvars, rettv)
typval_T *argvars;
/*
* "setwinvar()" and "settabwinvar()" functions
*/
-/*ARGSUSED*/
static void
setwinvar(argvars, rettv, off)
typval_T *argvars;
- typval_T *rettv;
+ typval_T *rettv UNUSED;
int off;
{
win_T *win;
/*
* "spellbadword()" function
*/
-/* ARGSUSED */
static void
f_spellbadword(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
char_u *word = (char_u *)"";
/*
* "spellsuggest()" function
*/
-/*ARGSUSED*/
static void
f_spellsuggest(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_SPELL
/*
* "synID(lnum, col, trans)" function
*/
-/*ARGSUSED*/
static void
f_synID(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int id = 0;
/*
* "synIDattr(id, what [, mode])" function
*/
-/*ARGSUSED*/
static void
f_synIDattr(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
char_u *p = NULL;
/*
* "synIDtrans(id)" function
*/
-/*ARGSUSED*/
static void
f_synIDtrans(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int id;
/*
* "synstack(lnum, col)" function
*/
-/*ARGSUSED*/
static void
f_synstack(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_SYN_HL
/*
* "tabpagebuflist()" function
*/
-/* ARGSUSED */
static void
f_tabpagebuflist(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_WINDOWS
tabpage_T *tp;
/*
* "tabpagenr()" function
*/
-/* ARGSUSED */
static void
f_tabpagenr(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int nr = 1;
/*
* "tabpagewinnr()" function
*/
-/* ARGSUSED */
static void
f_tabpagewinnr(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int nr = 1;
/*
* "tagfiles()" function
*/
-/*ARGSUSED*/
static void
f_tagfiles(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
char_u fname[MAXPATHL + 1];
/*
* "tempname()" function
*/
-/*ARGSUSED*/
static void
f_tempname(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
static int x = 'A';
/*
* "test(list)" function: Just checking the walls...
*/
-/*ARGSUSED*/
static void
f_test(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
/* Used for unit testing. Change the code below to your liking. */
#if 0
/*
* "visualmode()" function
*/
-/*ARGSUSED*/
static void
f_visualmode(argvars, rettv)
- typval_T *argvars;
- typval_T *rettv;
+ typval_T *argvars UNUSED;
+ typval_T *rettv UNUSED;
{
#ifdef FEAT_VISUAL
char_u str[2];
/*
* "wincol()" function
*/
-/*ARGSUSED*/
static void
f_wincol(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
validate_cursor();
/*
* "winline()" function
*/
-/*ARGSUSED*/
static void
f_winline(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
validate_cursor();
/*
* "winnr()" function
*/
-/* ARGSUSED */
static void
f_winnr(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
int nr = 1;
/*
* "winrestcmd()" function
*/
-/* ARGSUSED */
static void
f_winrestcmd(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
#ifdef FEAT_WINDOWS
/*
* "winrestview()" function
*/
-/* ARGSUSED */
static void
f_winrestview(argvars, rettv)
typval_T *argvars;
- typval_T *rettv;
+ typval_T *rettv UNUSED;
{
dict_T *dict;
/*
* "winsaveview()" function
*/
-/* ARGSUSED */
static void
f_winsaveview(argvars, rettv)
- typval_T *argvars;
+ typval_T *argvars UNUSED;
typval_T *rettv;
{
dict_T *dict;
* Called by do_cmdline() to get the next line.
* Returns allocated string, or NULL for end of function.
*/
-/* ARGSUSED */
char_u *
get_func_line(c, cookie, indent)
- int c; /* not used */
+ int c UNUSED;
void *cookie;
- int indent; /* not used */
+ int indent UNUSED;
{
funccall_T *fcp = (funccall_T *)cookie;
ufunc_T *fp = fcp->func;
/*
* List v:oldfiles in a nice way.
*/
-/*ARGSUSED*/
void
ex_oldfiles(eap)
- exarg_T *eap;
+ exarg_T *eap UNUSED;
{
list_T *l = vimvars[VV_OLDFILES].vv_list;
listitem_T *li;