diff options
author | Sebastian Witte <woozletoff@gmail.com> | 2015-07-08 07:40:28 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2015-07-19 17:18:31 +0200 |
commit | fcb79ffc40b93d5e0d165e1d001d073c83b8617e (patch) | |
tree | f4e89af6aea1d5ed2a64a49ea45f8769b590e06a /src/nvim/eval.c | |
parent | fb0ebb2a3a220a2e744efabed82beb08d88e158d (diff) | |
download | rneovim-fcb79ffc40b93d5e0d165e1d001d073c83b8617e.tar.gz rneovim-fcb79ffc40b93d5e0d165e1d001d073c83b8617e.tar.bz2 rneovim-fcb79ffc40b93d5e0d165e1d001d073c83b8617e.zip |
Implement API function to call functions #2979
Remove static modifier from func_call
Move MAX_FUNC_ARGS definnition from eval.c to eval.h
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9957643c8d..b45428e7e7 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -290,7 +290,6 @@ static ufunc_T dumuf; #define FUNCARG(fp, j) ((char_u **)(fp->uf_args.ga_data))[j] #define FUNCLINE(fp, j) ((char_u **)(fp->uf_lines.ga_data))[j] -#define MAX_FUNC_ARGS 20 /* maximum number of function arguments */ #define VAR_SHORT_LEN 20 /* short variable name length */ #define FIXVAR_CNT 12 /* number of fixed variables */ @@ -6867,7 +6866,7 @@ get_func_tv ( * Return FAIL when the function can't be called, OK otherwise. * Also returns OK when an error was encountered while executing the function. */ -static int +int call_func ( char_u *funcname, /* name of the function */ int len, /* length of "name" */ |