Hi,
I attach patches to src/mis2.c and src/edit.c to fix linking errors when:
- configuring with ./configure --with-features=tiny
- and compiling with -DEXITFREE
I am using vim-7.1 (patches 1-159) on Linux.
Cheers
-- Dominique
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
Index: edit.c
===================================================================
RCS file: /cvsroot/vim/vim7/src/edit.c,v
retrieving revision 1.128
diff -c -r1.128 edit.c
*** edit.c 8 Nov 2007 12:04:26 -0000 1.128
--- edit.c 24 Nov 2007 13:00:51 -0000
***************
*** 6444,6451 ****
--- 6444,6453 ----
{
vim_free(last_insert);
last_insert = NULL;
+ # ifdef FEAT_INS_EXPAND
vim_free(compl_orig_text);
compl_orig_text = NULL;
+ # endif
}
#endif
Index: misc2.c
===================================================================
RCS file: /cvsroot/vim/vim7/src/misc2.c,v
retrieving revision 1.66
diff -c -r1.66 misc2.c
*** misc2.c 8 Nov 2007 19:48:22 -0000 1.66
--- misc2.c 24 Nov 2007 13:00:31 -0000
***************
*** 964,970 ****
--- 964,972 ----
{
buf_T *buf, *nextbuf;
static int entered = FALSE;
+ # ifdef FEAT_QUICKFIX
win_T *win;
+ # endif
/* When we cause a crash here it is caught and Vim tries to exit cleanly.
* Don't try freeing everything again. */
***************
*** 972,986 ****
return;
entered = TRUE;
block_autocmds(); /* don't want to trigger autocommands here */
! #ifdef FEAT_WINDOWS
/* close all tabs and windows */
if (first_tabpage->tp_next != NULL)
do_cmdline_cmd((char_u *)"tabonly!");
if (firstwin != lastwin)
do_cmdline_cmd((char_u *)"only!");
! #endif
# if defined(FEAT_SPELL)
/* Free all spell info. */
--- 974,990 ----
return;
entered = TRUE;
+ # ifdef FEAT_AUTOCMD
block_autocmds(); /* don't want to trigger autocommands here */
+ # endif
! # ifdef FEAT_WINDOWS
/* close all tabs and windows */
if (first_tabpage->tp_next != NULL)
do_cmdline_cmd((char_u *)"tabonly!");
if (firstwin != lastwin)
do_cmdline_cmd((char_u *)"only!");
! # endif
# if defined(FEAT_SPELL)
/* Free all spell info. */
***************
*** 1031,1038 ****
--- 1035,1046 ----
free_regexp_stuff();
free_tag_stuff();
free_cd_dir();
+ # ifdef FEAT_EVAL
set_expr_line(NULL);
+ # endif
+ # ifdef FEAT_DIFF
diff_clear(curtab);
+ # endif
clear_sb_text(); /* free any scrollback text */
/* Free some global vars. */
***************
*** 1041,1053 ****
--- 1049,1065 ----
vim_free(clip_exclude_prog);
# endif
vim_free(last_cmdline);
+ # ifdef FEAT_CMDHIST
vim_free(new_last_cmdline);
+ # endif
set_keep_msg(NULL, 0);
vim_free(ff_expand_buffer);
/* Clear cmdline history. */
p_hi = 0;
+ # ifdef FEAT_CMDHIST
init_history();
+ # endif
#ifdef FEAT_QUICKFIX
qf_free_all(NULL);