comparison src/proto/userfunc.pro @ 30291:61a688be1899 v9.0.0481

patch 9.0.0481: in :def function all closures in loop get the same variables Commit: https://github.com/vim/vim/commit/8fa745e7be3a791ac25f93ef0227bbc48ade8a37 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 16 19:04:24 2022 +0100 patch 9.0.0481: in :def function all closures in loop get the same variables Problem: In a :def function all closures in a loop get the same variables. Solution: Use a separate list of variables for LOADOUTER and STOREOUTER. Not copied at end of loop yet.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Sep 2022 20:15:03 +0200
parents 0fe61fa4e5d1
children fc0830246f49
comparison
equal deleted inserted replaced
30290:e5d24015e8c5 30291:61a688be1899
14 ufunc_T *find_func(char_u *name, int is_global); 14 ufunc_T *find_func(char_u *name, int is_global);
15 int func_is_global(ufunc_T *ufunc); 15 int func_is_global(ufunc_T *ufunc);
16 int func_requires_g_prefix(ufunc_T *ufunc); 16 int func_requires_g_prefix(ufunc_T *ufunc);
17 int func_name_refcount(char_u *name); 17 int func_name_refcount(char_u *name);
18 void func_clear_free(ufunc_T *fp, int force); 18 void func_clear_free(ufunc_T *fp, int force);
19 int copy_func(char_u *lambda, char_u *global, ectx_T *ectx); 19 int copy_lambda_to_global_func(char_u *lambda, char_u *global, short loop_var_idx, short loop_var_count, ectx_T *ectx);
20 int funcdepth_increment(void); 20 int funcdepth_increment(void);
21 void funcdepth_decrement(void); 21 void funcdepth_decrement(void);
22 int funcdepth_get(void); 22 int funcdepth_get(void);
23 void funcdepth_restore(int depth); 23 void funcdepth_restore(int depth);
24 funccall_T *create_funccal(ufunc_T *fp, typval_T *rettv); 24 funccall_T *create_funccal(ufunc_T *fp, typval_T *rettv);