On 12-Nov.-2018 01:21, Bram Moolenaar wrote:
Patch 8.1.0519
Problem:    Cannot save and restore the tag stack.
Solution:   Add gettagstack() and settagstack(). (Yegappan Lakshmanan,
             closes #3604)
Files:      runtime/doc/eval.txt, runtime/doc/tagsrch.txt,
             runtime/doc/usr_41.txt, src/alloc.h, src/dict.c, src/evalfunc.c,
             src/list.c, src/misc2.c, src/proto/dict.pro, src/proto/list.pro,
             src/proto/misc2.pro, src/proto/tag.pro, src/tag.c,
             src/testdir/test_tagjump.vim


After this patch, mingw-64 throws this error if FEAT_QUICKFIX is not defined: gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_MBYTE -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -s evalfunc.c -o objnative/evalfunc.o
In file included from evalfunc.c:15:
evalfunc.c: In function 'f_settagstack':
evalfunc.c:11194:9: error: 'e_stringreq' undeclared (first use in this function); did you mean 'f_string'?
  EMSG(_(e_stringreq));
         ^~~~~~~~~~~
vim.h:1627:39: note: in definition of macro 'EMSG'
 #define EMSG(s)       emsg((char_u *)(s))
                                       ^
evalfunc.c:11194:7: note: in expansion of macro '_'
  EMSG(_(e_stringreq));
       ^
evalfunc.c:11194:9: note: each undeclared identifier is reported only once for each function it appears in
  EMSG(_(e_stringreq));
         ^~~~~~~~~~~
vim.h:1627:39: note: in definition of macro 'EMSG'
 #define EMSG(s)       emsg((char_u *)(s))
                                       ^
evalfunc.c:11194:7: note: in expansion of macro '_'
  EMSG(_(e_stringreq));
       ^

The attached patch tries to fix it. Please check.
Cheers
John

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--- evalfunc.orig.c     2018-11-12 05:15:25.846826600 +1100
+++ evalfunc.c  2018-11-12 05:33:21.053883100 +1100
@@ -29,9 +29,7 @@
 #endif
 
 static char *e_listarg = N_("E686: Argument of %s must be a List");
-#ifdef FEAT_QUICKFIX
 static char *e_stringreq = N_("E928: String required");
-#endif
 
 #ifdef FEAT_FLOAT
 static void f_abs(typval_T *argvars, typval_T *rettv);

Raspunde prin e-mail lui