On 16-Mar-2020 02:14, Bram Moolenaar wrote:
Patch 8.2.0385
Problem: Menu functionality insufficiently tested.
Solution: Add tests. Add menu_info(). (Yegappan Lakshmanan, closes #5760)
Files: runtime/doc/eval.txt, runtime/doc/gui.txt, runtime/doc/usr_41.txt,
src/evalfunc.c, src/menu.c, src/proto/menu.pro,
src/testdir/test_menu.vim, src/testdir/test_popup.vim,
src/testdir/test_termcodes.vim
After applying a bunch of patches (8.2.0374 to 8.2.0390), HP-UX throws
this error if FEAT_MENU is not defined:
<snip>
...
cc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -D_REENTRANT -o
objects/evalfunc.o evalfunc.c
cc: "evalfunc.c", line 649: error 1588: "f_menu_info" undefined.
cc: "evalfunc.c", line 649: error 1521: Incorrect initialization.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
</snip>
I narrowed it down to 8.2.0385.
The attached patch tries to fix it.
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/e7f204a6-12ab-4258-9c2f-ec6a83ff6f4a%40internode.on.net.
--- evalfunc.c.orig 2020-03-16 05:21:10.523025800 +1100
+++ evalfunc.c 2020-03-16 10:41:10.153803100 +1100
@@ -646,7 +646,9 @@
{"matchstr", 2, 4, FEARG_1, ret_string, f_matchstr},
{"matchstrpos", 2, 4, FEARG_1, ret_list_any, f_matchstrpos},
{"max", 1, 1, FEARG_1, ret_any, f_max},
+#ifdef FEAT_MENU
{"menu_info", 1, 2, FEARG_1, ret_dict_any, f_menu_info},
+#endif
{"min", 1, 1, FEARG_1, ret_any, f_min},
{"mkdir", 1, 3, FEARG_1, ret_number, f_mkdir},
{"mode", 0, 1, FEARG_1, ret_string, f_mode},