On 03-Sep-2019 06:32, Bram Moolenaar wrote:
Patch 8.1.1966
Problem: Some code in options.c fits better elsewhere.
Solution: Move functions from options.c to other files. (Yegappan
Lakshmanan, closes #4889)
Files: src/evalfunc.c, src/globals.h, src/indent.c, src/map.c,
src/option.c, src/proto/map.pro, src/proto/option.pro,
src/proto/quickfix.pro, src/proto/screen.pro, src/proto/spell.pro,
src/proto/window.pro, src/quickfix.c, src/screen.c, src/spell.c,
src/window.c
After this patch, gcc (mingw) throws these errors:
gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
-DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_MSWIN -DFEA
T_CLIPBOARD -pipe -march=native -Wall -O3 -fomit-frame-pointer
-freg-struct-return evalfunc.c -o gobjnative/evalfunc.o
evalfunc.c:567:31: error: 'f_getloclist' undeclared here (not in a
function); did you mean 'f_getjumplist'?
567 | {"getloclist", 1, 2, 0, f_getloclist},
| ^~~~~~~~~~~~
| f_getjumplist
evalfunc.c:571:30: error: 'f_getqflist' undeclared here (not in a
function); did you mean 'f_taglist'?
571 | {"getqflist", 0, 1, 0, f_getqflist},
| ^~~~~~~~~~~
| f_taglist
evalfunc.c:780:31: error: 'f_setloclist' undeclared here (not in a
function); did you mean 'f_str2list'?
780 | {"setloclist", 2, 4, 0, f_setloclist},
| ^~~~~~~~~~~~
| f_str2list
evalfunc.c:783:30: error: 'f_setqflist' undeclared here (not in a
function); did you mean 'f_str2list'?
783 | {"setqflist", 1, 3, 0, f_setqflist},
| ^~~~~~~~~~~
| f_str2list
make: *** [Make_cyg_ming.mak:1095: gobjnative/evalfunc.o] Error 1
make: Target 'gvim.exe' not remade because of errors.
Cheers
--
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/da2ca1f4-3873-918b-6e97-4e272ff22602%40internode.on.net.