0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.0134

This commit is contained in:
Bram Moolenaar
2005-08-22 22:59:46 +00:00
parent e52325c254
commit a6c840d7d4
8 changed files with 90 additions and 23 deletions

View File

@@ -11944,6 +11944,14 @@ f_prevnonblank(argvars, rettv)
rettv->vval.v_number = lnum;
}
#ifdef HAVE_STDARG_H
/* This dummy va_list is here because:
* - passing a NULL pointer doesn't work when va_list isn't a pointer
* - locally in the function results in a "used before set" warning
* - using va_start() to initialize it gives "function with fixed args" error */
static va_list ap;
#endif
/*
* "printf()" function
*/
@@ -11961,10 +11969,6 @@ f_printf(argvars, rettv)
char_u *s;
int saved_did_emsg = did_emsg;
char *fmt;
va_list ap; /* dummy */
/* Avoid warning for "ap" used before set; it's unused. */
va_start(ap, rettv);
/* Get the required length, allocate the buffer and do it for real. */
did_emsg = FALSE;