4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 7.0.092 (after 7.0.082 and 7.0.084)
11 Problem: The list of internal function arguments is obsolete now that
12 garbage collection is only done at the toplevel.
13 Solution: Remove the list of all arguments to internal functions.
17 *** ../vim-7.0.091/src/eval.c Wed Sep 6 22:14:42 2006
18 --- src/eval.c Sat Sep 9 12:00:28 2006
24 - * Struct used to make a list of all arguments used in internal functions.
26 - typedef struct av_list_item_S av_list_item_T;
27 - struct av_list_item_S {
28 - av_list_item_T *avl_next;
29 - typval_T *avl_argvars;
32 - av_list_item_T *argvars_list = NULL;
35 * Info used by a ":for" loop.
51 set_ref_in_ht(&fc->l_avars.dv_hashtab, copyID);
54 - /* arguments for internal functions */
55 - for (av = argvars_list; av != NULL; av = av->avl_next)
56 - for (i = 0; av->avl_argvars[i].v_type != VAR_UNKNOWN; ++i)
57 - set_ref_in_item(&av->avl_argvars[i], copyID);
60 * 2. Go through the list of dicts and free items without the copyID.
65 error = ERROR_TOOMANY;
68 - av_list_item_T av_list_item;
70 - /* Add the arguments to the "argvars_list" to avoid the
71 - * garbage collector not seeing them. This isn't needed
72 - * for user functions, because the arguments are available
73 - * in the a: hashtab. */
74 - av_list_item.avl_argvars = argvars;
75 - av_list_item.avl_next = argvars_list;
76 - argvars_list = &av_list_item;
78 argvars[argcount].v_type = VAR_UNKNOWN;
79 functions[i].f_func(argvars, rettv);
82 - argvars_list = av_list_item.avl_next;
87 *** ../vim-7.0.091/src/version.c Wed Sep 6 22:14:42 2006
88 --- src/version.c Sat Sep 9 12:04:55 2006
92 { /* Add new patch number below this line */
98 "Hegel was right when he said that we learn from history that man can
99 never learn anything from history." (George Bernard Shaw)
101 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
102 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
103 \\\ download, build and distribute -- http://www.A-A-P.org ///
104 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///