diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-12 14:39:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 14:39:47 +0800 |
commit | d4f5e0db3c61a316013cc17739f6e8abc1c5907b (patch) | |
tree | 26815d394348a994820171a9cbc0f27678ff2e89 /src/nvim/eval/userfunc.c | |
parent | 0d9e09bf670724caec9939a7165e25c4abc40291 (diff) | |
parent | a93d29589ae1aab9f5fff11fccbe3ed14cb089ce (diff) | |
download | rneovim-d4f5e0db3c61a316013cc17739f6e8abc1c5907b.tar.gz rneovim-d4f5e0db3c61a316013cc17739f6e8abc1c5907b.tar.bz2 rneovim-d4f5e0db3c61a316013cc17739f6e8abc1c5907b.zip |
Merge pull request #19733 from zeertzjq/vim-8.1.1684
vim-patch:8.1.{1684,1689}: profiling code is spread out
Diffstat (limited to 'src/nvim/eval/userfunc.c')
-rw-r--r-- | src/nvim/eval/userfunc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c index 38a00099bc..72a8c45326 100644 --- a/src/nvim/eval/userfunc.c +++ b/src/nvim/eval/userfunc.c @@ -21,6 +21,7 @@ #include "nvim/insexpand.h" #include "nvim/lua/executor.h" #include "nvim/os/input.h" +#include "nvim/profile.h" #include "nvim/regexp.h" #include "nvim/search.h" #include "nvim/ui.h" @@ -44,7 +45,7 @@ # include "eval/userfunc.c.generated.h" #endif -hashtab_T func_hashtab; +static hashtab_T func_hashtab; // Used by get_func_tv() static garray_T funcargs = GA_EMPTY_INIT_VALUE; @@ -66,6 +67,12 @@ void func_init(void) hash_init(&func_hashtab); } +/// Return the function hash table +hashtab_T *func_tbl_get(void) +{ + return &func_hashtab; +} + /// Get function arguments. static int get_function_args(char_u **argp, char_u endchar, garray_T *newargs, int *varargs, garray_T *default_args, bool skip) |