diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-09-09 10:06:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-09-09 10:06:58 +0000 |
commit | 7ad753cf438ce6229dcf371bd18866ebfbf94148 (patch) | |
tree | a86310e567e11b45c565ace354f5f36e5c9e2d05 /src/eval.c | |
parent | 6f11a4155c777ea459cbaa6d4bb1a0a2c94d3d91 (diff) | |
download | vim-git-7ad753cf438ce6229dcf371bd18866ebfbf94148.tar.gz |
updated for version 7.0-092v7.0.092
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/eval.c b/src/eval.c index 8dc74b9a4..f2abba7b2 100644 --- a/src/eval.c +++ b/src/eval.c @@ -248,17 +248,6 @@ struct funccall_S }; /* - * Struct used to make a list of all arguments used in internal functions. - */ -typedef struct av_list_item_S av_list_item_T; -struct av_list_item_S { - av_list_item_T *avl_next; - typval_T *avl_argvars; -}; - -av_list_item_T *argvars_list = NULL; - -/* * Info used by a ":for" loop. */ typedef struct @@ -6069,7 +6058,6 @@ garbage_collect() int i; funccall_T *fc; int did_free = FALSE; - av_list_item_T *av; #ifdef FEAT_WINDOWS tabpage_T *tp; #endif @@ -6110,11 +6098,6 @@ garbage_collect() set_ref_in_ht(&fc->l_avars.dv_hashtab, copyID); } - /* arguments for internal functions */ - for (av = argvars_list; av != NULL; av = av->avl_next) - for (i = 0; av->avl_argvars[i].v_type != VAR_UNKNOWN; ++i) - set_ref_in_item(&av->avl_argvars[i], copyID); - /* * 2. Go through the list of dicts and free items without the copyID. */ @@ -7558,21 +7541,9 @@ call_func(name, len, rettv, argcount, argvars, firstline, lastline, error = ERROR_TOOMANY; else { - av_list_item_T av_list_item; - - /* Add the arguments to the "argvars_list" to avoid the - * garbage collector not seeing them. This isn't needed - * for user functions, because the arguments are available - * in the a: hashtab. */ - av_list_item.avl_argvars = argvars; - av_list_item.avl_next = argvars_list; - argvars_list = &av_list_item; - argvars[argcount].v_type = VAR_UNKNOWN; functions[i].f_func(argvars, rettv); error = ERROR_NONE; - - argvars_list = av_list_item.avl_next; } } } |