From fcb79ffc40b93d5e0d165e1d001d073c83b8617e Mon Sep 17 00:00:00 2001 From: Sebastian Witte Date: Wed, 8 Jul 2015 07:40:28 +0200 Subject: Implement API function to call functions #2979 Remove static modifier from func_call Move MAX_FUNC_ARGS definnition from eval.c to eval.h --- src/nvim/eval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nvim/eval.c') 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" */ -- cgit