Mercurial > vim
comparison src/proto/eval.pro @ 8538:c337c813c64d v7.4.1559
commit https://github.com/vim/vim/commit/1735bc988c546cc962c5f94792815b4d7cb79710
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 14 23:05:14 2016 +0100
patch 7.4.1559
Problem: Passing cookie to a callback is clumsy.
Solution: Change function() to take arguments and return a partial.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 14 Mar 2016 23:15:05 +0100 |
parents | 485d4d8a97f6 |
children | 63dc856bd13d |
comparison
equal
deleted
inserted
replaced
8537:cc20abebafa3 | 8538:c337c813c64d |
---|---|
81 char_u *get_dict_string(dict_T *d, char_u *key, int save); | 81 char_u *get_dict_string(dict_T *d, char_u *key, int save); |
82 long get_dict_number(dict_T *d, char_u *key); | 82 long get_dict_number(dict_T *d, char_u *key); |
83 int string2float(char_u *text, float_T *value); | 83 int string2float(char_u *text, float_T *value); |
84 char_u *get_function_name(expand_T *xp, int idx); | 84 char_u *get_function_name(expand_T *xp, int idx); |
85 char_u *get_expr_name(expand_T *xp, int idx); | 85 char_u *get_expr_name(expand_T *xp, int idx); |
86 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); | 86 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); |
87 buf_T *buflist_find_by_name(char_u *name, int curtab_only); | 87 buf_T *buflist_find_by_name(char_u *name, int curtab_only); |
88 int func_call(char_u *name, typval_T *args, dict_T *selfdict, typval_T *rettv); | 88 int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv); |
89 void dict_extend(dict_T *d1, dict_T *d2, char_u *action); | 89 void dict_extend(dict_T *d1, dict_T *d2, char_u *action); |
90 void partial_unref(partial_T *pt); | |
90 void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); | 91 void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); |
91 float_T vim_round(float_T f); | 92 float_T vim_round(float_T f); |
92 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); | 93 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); |
93 void set_vim_var_nr(int idx, long val); | 94 void set_vim_var_nr(int idx, long val); |
94 long get_vim_var_nr(int idx); | 95 long get_vim_var_nr(int idx); |