4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Not freeing memory from ":lmap", ":xmap" and ":menutranslate".
12 Solution: Free the memory when exiting. (Dominique Pelle)
16 *** ../vim-7.2.289/src/misc2.c 2009-11-03 16:44:04.000000000 +0100
17 --- src/misc2.c 2009-11-11 16:49:13.000000000 +0100
23 do_cmdline_cmd((char_u *)"aunmenu *");
24 + # ifdef FEAT_MULTI_LANG
25 + do_cmdline_cmd((char_u *)"menutranslate clear");
29 /* Clear mappings, abbreviations, breakpoints. */
30 + do_cmdline_cmd((char_u *)"lmapclear");
31 + do_cmdline_cmd((char_u *)"xmapclear");
32 do_cmdline_cmd((char_u *)"mapclear");
33 do_cmdline_cmd((char_u *)"mapclear!");
34 do_cmdline_cmd((char_u *)"abclear");
39 * Escape "string" for use as a shell argument with system().
40 ! * This uses single quotes, except when we know we need to use double qoutes
41 * (MS-DOS and MS-Windows without 'shellslash' set).
42 * Escape a newline, depending on the 'shell' option.
43 * When "do_special" is TRUE also replace "!", "%", "#" and things starting
47 * Escape "string" for use as a shell argument with system().
48 ! * This uses single quotes, except when we know we need to use double quotes
49 * (MS-DOS and MS-Windows without 'shellslash' set).
50 * Escape a newline, depending on the 'shell' option.
51 * When "do_special" is TRUE also replace "!", "%", "#" and things starting
54 #if defined(FEAT_VISUALEXTRA) || defined(PROTO)
56 * Copy a character a number of times.
57 ! * Does not work for multi-byte charactes!
60 copy_chars(ptr, count, c)
62 #if defined(FEAT_VISUALEXTRA) || defined(PROTO)
64 * Copy a character a number of times.
65 ! * Does not work for multi-byte characters!
68 copy_chars(ptr, count, c)
71 * or '**76' is transposed to '**N'( 'N' is ASCII value 76).
72 * For EBCDIC you get different character values.
73 * If no restrict is given after '**' the default is used.
74 ! * Due to this technic the path looks awful if you print it as a
79 * or '**76' is transposed to '**N'( 'N' is ASCII value 76).
80 * For EBCDIC you get different character values.
81 * If no restrict is given after '**' the default is used.
82 ! * Due to this technique the path looks awful if you print it as a
88 && !mch_isdir(stackp->ffs_filearray[i]))
89 continue; /* not a directory */
91 ! /* prepare the filename to be checked for existance
93 STRCPY(file_path, stackp->ffs_filearray[i]);
94 add_pathsep(file_path);
96 && !mch_isdir(stackp->ffs_filearray[i]))
97 continue; /* not a directory */
99 ! /* prepare the filename to be checked for existence
101 STRCPY(file_path, stackp->ffs_filearray[i]);
102 add_pathsep(file_path);
105 #if defined(MSWIN) || defined(MSDOS) || defined(OS2)
106 /* handle "\tmp" as absolute path */
107 || vim_ispathsep(ff_file_to_find[0])
108 ! /* handle "c:name" as absulute path */
109 || (ff_file_to_find[0] != NUL && ff_file_to_find[1] == ':')
113 #if defined(MSWIN) || defined(MSDOS) || defined(OS2)
114 /* handle "\tmp" as absolute path */
115 || vim_ispathsep(ff_file_to_find[0])
116 ! /* handle "c:name" as absolute path */
117 || (ff_file_to_find[0] != NUL && ff_file_to_find[1] == ':')
122 p2 = (char_u *)base + (j + gap) * elm_size;
123 if ((*cmp)((void *)p1, (void *)p2) <= 0)
125 ! /* Exchange the elemets. */
126 mch_memmove(buf, p1, elm_size);
127 mch_memmove(p1, p2, elm_size);
128 mch_memmove(p2, buf, elm_size);
130 p2 = (char_u *)base + (j + gap) * elm_size;
131 if ((*cmp)((void *)p1, (void *)p2) <= 0)
133 ! /* Exchange the elements. */
134 mch_memmove(buf, p1, elm_size);
135 mch_memmove(p1, p2, elm_size);
136 mch_memmove(p2, buf, elm_size);
137 *** ../vim-7.2.289/src/version.c 2009-11-11 16:23:37.000000000 +0100
138 --- src/version.c 2009-11-11 16:54:53.000000000 +0100
142 { /* Add new patch number below this line */
148 ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of Camelot.
149 King of all Britons, defeator of the Saxons, sovereign of all England!
152 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
154 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
155 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
156 \\\ download, build and distribute -- http://www.A-A-P.org ///
157 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///