diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-24 20:47:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-24 20:47:38 +0000 |
commit | e7f4abd38b6e05100c699900c8f87281e363beb2 (patch) | |
tree | badec536bcfe024c7214b18fcce1fa58e5315f80 /src/proto/userfunc.pro | |
parent | 73a024209cbfbd5b39a2e974084d807c6131e2ed (diff) | |
download | vim-git-e7f4abd38b6e05100c699900c8f87281e363beb2.tar.gz |
patch 8.2.3889: duplicate code for translating script-local function namev8.2.3889
Problem: Duplicate code for translating script-local function name.
Solution: Move the code to get_scriptlocal_funcname(). (Yegappan Lakshmanan,
closes #9393)
Diffstat (limited to 'src/proto/userfunc.pro')
-rw-r--r-- | src/proto/userfunc.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro index bb3814352..0320f09d3 100644 --- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -35,6 +35,7 @@ int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typva char_u *printable_func_name(ufunc_T *fp); char_u *trans_function_name(char_u **pp, int *is_global, int skip, int flags, funcdict_T *fdp, partial_T **partial, type_T **type); char_u *untrans_function_name(char_u *name); +char_u *get_scriptlocal_funcname(char_u *funcname); char_u *save_function_name(char_u **name, int *is_global, int skip, int flags, funcdict_T *fudi); void list_functions(regmatch_T *regmatch); ufunc_T *define_function(exarg_T *eap, char_u *name_arg); |