On 13-Aug-2016 12:29 AM, Bram Moolenaar wrote:
Patch 7.4.2200
Problem: Cannot get all information about a quickfix list.
Solution: Add an optional argument to get/set loc/qf list(). (Yegappan
Lakshmanan)
Files: runtime/doc/eval.txt, src/evalfunc.c, src/proto/quickfix.pro,
src/quickfix.c, src/tag.c, src/testdir/test_quickfix.vim
After this patch I get the following warning (mingw64) if FEAT_QUICK_FIX
is not defined:
gcc -c -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
-DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_W32
-DFEAT_CLIPBOARD -pipe -march=native -Wall -O3 -fomit-frame-pointer
-freg-struct-return -s evalfunc.c -o gobjnative/eva
lfunc.o
evalfunc.c:4697:1: warning: 'get_qf_loc_list' defined but not used
[-Wunused-function]
get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv)
^~~~~~~~~~~~~~~
Please check the attached patch.
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 2016-08-13 06:39:03.050027900 +1000
+++ evalfunc.c 2016-08-13 07:01:09.688973700 +1000
@@ -4691,12 +4691,12 @@
get_buffer_lines(curbuf, lnum, end, retlist, rettv);
}
+#ifdef FEAT_QUICKFIX
static void get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv);
static void
get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv)
{
-#ifdef FEAT_QUICKFIX
if (what_arg->v_type == VAR_UNKNOWN)
{
if (rettv_list_alloc(rettv) == OK)
@@ -4719,8 +4719,8 @@
EMSG(_(e_dictreq));
}
}
-#endif
}
+#endif
/*
* "getloclist()" function