4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Unused function in Mzscheme interface.
12 Solution: Remove the function and what depends on it. (Dominique Pelle)
13 Files: src/if_mzsch.c, src/proto/if_mzsch.pro
16 *** ../vim-7.2.319/src/if_mzsch.c 2009-09-11 12:20:47.000000000 +0200
17 --- src/if_mzsch.c 2009-12-16 19:01:04.000000000 +0100
23 - /* info for do_apply */
26 - Scheme_Object *proc;
28 - Scheme_Object **argv;
32 *========================================================================
33 * Vim-Control Commands
37 static Scheme_Object *extract_exn_message(Scheme_Object *v);
38 static Scheme_Object *do_eval(void *, int noargc, Scheme_Object **noargv);
39 static Scheme_Object *do_load(void *, int noargc, Scheme_Object **noargv);
40 - static Scheme_Object *do_apply(void *, int noargc, Scheme_Object **noargv);
41 static void register_vim_exn(void);
42 static vim_mz_buffer *get_buffer_arg(const char *fname, int argnum,
43 int argc, Scheme_Object **argv);
48 config = scheme_config;
50 ! /* recreate ports each call effectivelly clearing these ones */
51 curout = scheme_make_string_output_port();
53 curerr = scheme_make_string_output_port();
56 config = scheme_config;
58 ! /* recreate ports each call effectively clearing these ones */
59 curout = scheme_make_string_output_port();
61 curerr = scheme_make_string_output_port();
68 - * apply MzScheme procedure with arguments,
72 - mzvim_apply(Scheme_Object *proc, int argc, Scheme_Object **argv)
74 - if (mzscheme_init())
78 - Apply_Info data = {NULL, 0, NULL};
79 - Scheme_Object *ret = NULL;
82 - MZ_GC_VAR_IN_REG(0, ret);
83 - MZ_GC_VAR_IN_REG(1, data.proc);
84 - MZ_GC_ARRAY_VAR_IN_REG(2, data.argv, argc);
91 - eval_with_exn_handling(&data, do_apply, &ret);
97 static Scheme_Object *
98 do_load(void *data, int noargc, Scheme_Object **noargv)
106 ! /* errors will be caught in do_mzscheme_comamnd and ex_mzfile */
107 scheme_close_input_port(pinfo->port);
114 ! /* errors will be caught in do_mzscheme_command and ex_mzfile */
115 scheme_close_input_port(pinfo->port);
120 return scheme_eval_string_all((char *)s, environment, TRUE);
123 - static Scheme_Object *
124 - do_apply(void *a, int noargc, Scheme_Object **noargv)
126 - Apply_Info *info = (Apply_Info *)a;
127 - return scheme_apply(info->proc, info->argc, info->argv);
131 *========================================================================
132 * 3. MzScheme I/O Handlers
136 static Scheme_Object *
137 set_buffer_line(void *data, int argc, Scheme_Object **argv)
139 ! /* First of all, we check the the of the supplied MzScheme object.
140 * There are three cases:
141 * 1. #f - this is a deletion.
142 * 2. A string - this is a replacement.
144 static Scheme_Object *
145 set_buffer_line(void *data, int argc, Scheme_Object **argv)
147 ! /* First of all, we check the value of the supplied MzScheme object.
148 * There are three cases:
149 * 1. #f - this is a deletion.
150 * 2. A string - this is a replacement.
154 * (insert-buff-line-list {linenr} {string/string-list} [buffer])
156 ! * Insert a number of lines into the specified buffer after the specifed line.
157 * The line number is in Vim format (1-based). The lines to be inserted are
158 * given as an MzScheme list of string objects or as a single string. The lines
159 * to be added are checked for validity and correct format. Errors are
162 * (insert-buff-line-list {linenr} {string/string-list} [buffer])
164 ! * Insert a number of lines into the specified buffer after the specified line.
165 * The line number is in Vim format (1-based). The lines to be inserted are
166 * given as an MzScheme list of string objects or as a single string. The lines
167 * to be added are checked for validity and correct format. Errors are
168 *** ../vim-7.2.319/src/proto/if_mzsch.pro 2009-05-26 22:58:43.000000000 +0200
169 --- src/proto/if_mzsch.pro 2009-12-16 19:01:01.000000000 +0100
172 void mzvim_check_threads __ARGS((void));
173 void mzvim_reset_timer __ARGS((void));
174 void *mzvim_eval_string __ARGS((char_u *str));
175 - struct Scheme_Object *mzvim_apply __ARGS((struct Scheme_Object *, int argc,
176 - struct Scheme_Object **));
177 int mzthreads_allowed __ARGS((void));
178 void mzscheme_main __ARGS((void));
179 /* vim: set ft=c : */
181 *** ../vim-7.2.319/src/version.c 2009-12-16 18:49:09.000000000 +0100
182 --- src/version.c 2009-12-16 18:53:48.000000000 +0100
186 { /* Add new patch number below this line */
192 hundred-and-one symptoms of being an internet addict:
193 38. You wake up at 3 a.m. to go to the bathroom and stop and check your e-mail
194 on the way back to bed.
196 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
197 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
198 \\\ download, build and distribute -- http://www.A-A-P.org ///
199 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///