diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-14 23:05:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-14 23:05:14 +0100 |
commit | 1735bc988c546cc962c5f94792815b4d7cb79710 (patch) | |
tree | 5d1fcc3e5d0f0d37fa33097c2eacff4cbc2317d4 /src/proto/eval.pro | |
parent | 9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f (diff) | |
download | vim-1735bc988c546cc962c5f94792815b4d7cb79710.zip |
patch 7.4.1559
Problem: Passing cookie to a callback is clumsy.
Solution: Change function() to take arguments and return a partial.
Diffstat (limited to 'src/proto/eval.pro')
-rw-r--r-- | src/proto/eval.pro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/proto/eval.pro b/src/proto/eval.pro index 7035f26e2..dee95c4ed 100644 --- a/src/proto/eval.pro +++ b/src/proto/eval.pro @@ -83,10 +83,11 @@ long get_dict_number(dict_T *d, char_u *key); int string2float(char_u *text, float_T *value); char_u *get_function_name(expand_T *xp, int idx); char_u *get_expr_name(expand_T *xp, int idx); -int call_func(char_u *funcname, int len, typval_T *rettv, int argcount, typval_T *argvars, linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, dict_T *selfdict); +int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typval_T *argvars_in, linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, partial_T *partial, dict_T *selfdict_in); buf_T *buflist_find_by_name(char_u *name, int curtab_only); -int func_call(char_u *name, typval_T *args, dict_T *selfdict, typval_T *rettv); +int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv); void dict_extend(dict_T *d1, dict_T *d2, char_u *action); +void partial_unref(partial_T *pt); void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); float_T vim_round(float_T f); long do_searchpair(char_u *spat, char_u *mpat, char_u *epat, int dir, char_u *skip, int flags, pos_T *match_pos, linenr_T lnum_stop, long time_limit); |