diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-31 22:05:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-31 22:05:04 +0200 |
commit | 38ddf333f6b2806b0ea2dd052ee1cd50dd7f4525 (patch) | |
tree | 5174c1e94e06de25435c40113f6d793eb97659c7 /src/proto | |
parent | 4d4d1cd5c8b61ef0296bd6190ca2a0b2d6d96ba7 (diff) | |
download | vim-git-38ddf333f6b2806b0ea2dd052ee1cd50dd7f4525.tar.gz |
patch 8.2.1329: Vim9: cannot define global function inside :def functionv8.2.1329
Problem: Vim9: cannot define global function inside :def function.
Solution: Assign to global variable instead of local. (closes #6584)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/misc2.pro | 1 | ||||
-rw-r--r-- | src/proto/userfunc.pro | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/misc2.pro b/src/proto/misc2.pro index e1e20aaab..d55fc31c3 100644 --- a/src/proto/misc2.pro +++ b/src/proto/misc2.pro @@ -56,6 +56,7 @@ char_u *vim_strrchr(char_u *string, int c); int vim_isspace(int x); void ga_clear(garray_T *gap); void ga_clear_strings(garray_T *gap); +int ga_copy_strings(garray_T *from, garray_T *to); void ga_init(garray_T *gap); void ga_init2(garray_T *gap, int itemsize, int growsize); int ga_grow(garray_T *gap, int n); diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro index 9c9eb2df7..f30ac2f21 100644 --- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -5,6 +5,7 @@ int get_function_args(char_u **argp, char_u endchar, garray_T *newargs, garray_T char_u *get_lambda_name(void); char_u *register_cfunc(cfunc_T cb, cfunc_free_T cb_free, void *state); int get_lambda_tv(char_u **arg, typval_T *rettv, evalarg_T *evalarg); +void copy_func(char_u *lambda, char_u *global); char_u *deref_func_name(char_u *name, int *lenp, partial_T **partialp, int no_autoload); void emsg_funcname(char *ermsg, char_u *name); int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, evalarg_T *evalarg, funcexe_T *funcexe); |