4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Compilation errors with tiny features and EXITFREE.
12 Solution: Add #ifdefs. (Dominique Pelle)
13 Files: src/edit.c, src/misc2.c
16 *** ../vim-7.1.160/src/edit.c Thu Nov 8 13:03:33 2007
17 --- src/edit.c Sat Nov 24 14:57:46 2007
20 while (i < actual_len && (p - IObuff + 6) < IOSIZE)
23 ! p += mb_char2bytes(wca[i++], p);
28 while (i < actual_len && (p - IObuff + 6) < IOSIZE)
31 ! p += (*mb_char2bytes)(wca[i++], p);
39 vim_free(last_insert);
41 + # ifdef FEAT_INS_EXPAND
42 vim_free(compl_orig_text);
43 compl_orig_text = NULL;
48 *** ../vim-7.1.160/src/misc2.c Thu Nov 8 20:47:34 2007
49 --- src/misc2.c Sat Nov 24 15:01:46 2007
54 static int entered = FALSE;
57 /* When we cause a crash here it is caught and Vim tries to exit cleanly.
58 * Don't try freeing everything again. */
65 block_autocmds(); /* don't want to trigger autocommands here */
68 /* close all tabs and windows */
69 if (first_tabpage->tp_next != NULL)
70 do_cmdline_cmd((char_u *)"tabonly!");
71 if (firstwin != lastwin)
72 do_cmdline_cmd((char_u *)"only!");
75 # if defined(FEAT_SPELL)
76 /* Free all spell info. */
81 + # ifdef FEAT_AUTOCMD
82 block_autocmds(); /* don't want to trigger autocommands here */
85 ! # ifdef FEAT_WINDOWS
86 /* close all tabs and windows */
87 if (first_tabpage->tp_next != NULL)
88 do_cmdline_cmd((char_u *)"tabonly!");
89 if (firstwin != lastwin)
90 do_cmdline_cmd((char_u *)"only!");
93 # if defined(FEAT_SPELL)
94 /* Free all spell info. */
107 clear_sb_text(); /* free any scrollback text */
109 /* Free some global vars. */
112 vim_free(clip_exclude_prog);
114 vim_free(last_cmdline);
115 vim_free(new_last_cmdline);
116 set_keep_msg(NULL, 0);
117 vim_free(ff_expand_buffer);
119 /* Clear cmdline history. */
125 ! /* Free all location lists */
126 ! FOR_ALL_WINDOWS(win)
130 /* Close all script inputs. */
132 vim_free(clip_exclude_prog);
134 vim_free(last_cmdline);
135 + # ifdef FEAT_CMDHIST
136 vim_free(new_last_cmdline);
138 set_keep_msg(NULL, 0);
139 vim_free(ff_expand_buffer);
141 /* Clear cmdline history. */
143 + # ifdef FEAT_CMDHIST
152 ! /* Free all location lists */
153 ! FOR_ALL_WINDOWS(win)
158 /* Close all script inputs. */
159 *** ../vim-7.1.160/src/version.c Sat Nov 24 15:44:17 2007
160 --- src/version.c Sat Nov 24 20:55:38 2007
164 { /* Add new patch number below this line */
170 hundred-and-one symptoms of being an internet addict:
171 143. You dream in pallettes of 216 websafe colors.
173 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
174 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
175 \\\ download, build and distribute -- http://www.A-A-P.org ///
176 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///