diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-08-22 22:59:46 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-08-22 22:59:46 +0000 |
commit | a6c840d7d4d51af2a15f64db5e5b908457b572cf (patch) | |
tree | 5779c3b1a4aa0cad9d46e56f85add8826d6b181a /src | |
parent | e52325c254d929c7c8d68efb9ace0c7868433675 (diff) | |
download | vim-git-a6c840d7d4d51af2a15f64db5e5b908457b572cf.tar.gz |
updated for version 7.0134v7.0134
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 4 | ||||
-rw-r--r-- | src/eval.c | 12 | ||||
-rw-r--r-- | src/testdir/test58.in | 6 | ||||
-rw-r--r-- | src/testdir/test58.ok | 18 | ||||
-rw-r--r-- | src/version.h | 4 |
5 files changed, 24 insertions, 20 deletions
diff --git a/src/Makefile b/src/Makefile index 72f036b29..cebbbc3d7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1844,8 +1844,8 @@ installtutor: $(DEST_VIM) $(DEST_RT) $(DEST_TUTOR) # spell file is there. installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL) if test -f $(SPELLSOURCE)/en.latin1.spl; then \ - $(INSTALL_DATA) $(SPELLSOURCE)/*.spl *.vim $(DEST_SPELL); \ - chmod $(HELPMOD) $(DEST_SPELL)/*.spl *.vim; \ + $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(SPELLSOURCE)/*.vim $(DEST_SPELL); \ + chmod $(HELPMOD) $(DEST_SPELL)/*.spl $(DEST_SPELL)/*.vim; \ fi # install helper program xxd diff --git a/src/eval.c b/src/eval.c index 3cb3bd7e1..a7fc6b31d 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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; diff --git a/src/testdir/test58.in b/src/testdir/test58.in index 1beb45736..530b27a05 100644 --- a/src/testdir/test58.in +++ b/src/testdir/test58.in @@ -120,7 +120,7 @@ gg:/^compdicstart/+1,/^compdicend/-1w! Xtest.dic 1GyG:q :$put /^comptest: -:for i in range(12) +:for i in range(11) normal ]smm let str = spellbadword() $put =str @@ -481,9 +481,11 @@ word util wordutil wordutils wordutilize pro pro-ok bork borkbork borkborkbork borkborkborkbork borkborkborkborkbork +borkborkborkborkborkbork tomato tomatotomato tomatotomatotomato -startend endstart endend startstart +startend endstart endend startstart wordend startword startwordword wordstart startwordend startwordwordend +startwordwordwordend startwordwordwordwordend prebork preborkprebork preborkborkprebork preborkpreborkbork borkpreborkpreborkbork diff --git a/src/testdir/test58.ok b/src/testdir/test58.ok index 4a1f94835..570ab7d7e 100644 --- a/src/testdir/test58.ok +++ b/src/testdir/test58.ok @@ -87,23 +87,21 @@ wordutilize ['word utilize', 'wordutils', 'wordutil'] pro ['bork', 'end', 'word'] -borkborkborkbork -['borkbork borkbork', 'borkborkbork bork', 'bork borkborkbork'] -borkborkborkborkbork -['borkbork borkborkbork', 'borkborkbork borkbork', 'bork borkborkbork bork'] -tomatotomato -['tomatotomato', 'tomato tomato'] +borkborkborkborkborkbork +['borkbork borkborkborkbork', 'borkborkbork borkborkbork', 'borkborkborkborkbork bork'] tomatotomatotomato -['tomatotomatotomato', 'tomato tomatotomato', 'tomatotomato tomato'] +['tomato tomatotomato', 'tomatotomato tomato', 'tomato tomato tomato'] endstart ['end start', 'start'] endend ['end end', 'end'] startstart ['start start'] +wordend +['word end', 'wordword', 'word'] wordstart ['word start', 'bork start'] -startwordwordend -['startwordword end', 'startwordword', 'start wordword end'] +startwordwordwordwordend +['startwordwordwordword end', 'startwordwordwordword', 'start wordwordwordword end'] borkpreborkpreborkbork -['bork preborkpreborkbork', 'borkpreborkprebork bork', 'borkprebork preborkbork'] +['borkpreborkprebork bork', 'borkprebork preborkbork', 'bork preborkpreborkbork'] diff --git a/src/version.h b/src/version.h index 336d3b270..7e4ca1483 100644 --- a/src/version.h +++ b/src/version.h @@ -36,5 +36,5 @@ #define VIM_VERSION_NODOT "vim70aa" #define VIM_VERSION_SHORT "7.0aa" #define VIM_VERSION_MEDIUM "7.0aa ALPHA" -#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Aug 22)" -#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Aug 22, compiled " +#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Aug 23)" +#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Aug 23, compiled " |