Mercurial > vim
comparison src/proto/eval.pro @ 9571:5eaa708ab50d v7.4.2063
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 17 22:13:49 2016 +0200
patch 7.4.2063
Problem: eval.c is still too big.
Solution: Split off internal functions to evalfunc.c.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Jul 2016 22:30:06 +0200 |
parents | 86af4a48c00a |
children | bf204ab1ce7d |
comparison
equal
deleted
inserted
replaced
9570:695186e11daa | 9571:5eaa708ab50d |
---|---|
23 void *call_func_retstr(char_u *func, int argc, char_u **argv, int safe); | 23 void *call_func_retstr(char_u *func, int argc, char_u **argv, int safe); |
24 void *call_func_retlist(char_u *func, int argc, char_u **argv, int safe); | 24 void *call_func_retlist(char_u *func, int argc, char_u **argv, int safe); |
25 int eval_foldexpr(char_u *arg, int *cp); | 25 int eval_foldexpr(char_u *arg, int *cp); |
26 void ex_let(exarg_T *eap); | 26 void ex_let(exarg_T *eap); |
27 void list_hashtable_vars(hashtab_T *ht, char_u *prefix, int empty, int *first); | 27 void list_hashtable_vars(hashtab_T *ht, char_u *prefix, int empty, int *first); |
28 int check_changedtick(char_u *arg); | |
28 char_u *get_lval(char_u *name, typval_T *rettv, lval_T *lp, int unlet, int skip, int flags, int fne_flags); | 29 char_u *get_lval(char_u *name, typval_T *rettv, lval_T *lp, int unlet, int skip, int flags, int fne_flags); |
29 void clear_lval(lval_T *lp); | 30 void clear_lval(lval_T *lp); |
30 void *eval_for_line(char_u *arg, int *errp, char_u **nextcmdp, int skip); | 31 void *eval_for_line(char_u *arg, int *errp, char_u **nextcmdp, int skip); |
31 int next_for_item(void *fi_void, char_u *arg); | 32 int next_for_item(void *fi_void, char_u *arg); |
32 void free_for_info(void *fi_void); | 33 void free_for_info(void *fi_void); |
36 int do_unlet(char_u *name, int forceit); | 37 int do_unlet(char_u *name, int forceit); |
37 void del_menutrans_vars(void); | 38 void del_menutrans_vars(void); |
38 char_u *get_user_var_name(expand_T *xp, int idx); | 39 char_u *get_user_var_name(expand_T *xp, int idx); |
39 int eval0(char_u *arg, typval_T *rettv, char_u **nextcmd, int evaluate); | 40 int eval0(char_u *arg, typval_T *rettv, char_u **nextcmd, int evaluate); |
40 int eval1(char_u **arg, typval_T *rettv, int evaluate); | 41 int eval1(char_u **arg, typval_T *rettv, int evaluate); |
42 int get_option_tv(char_u **arg, typval_T *rettv, int evaluate); | |
41 void partial_unref(partial_T *pt); | 43 void partial_unref(partial_T *pt); |
42 int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive); | 44 int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive); |
43 int get_copyID(void); | 45 int get_copyID(void); |
44 int garbage_collect(int testing); | 46 int garbage_collect(int testing); |
45 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack); | 47 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack); |
48 char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int dict_val); | 50 char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int dict_val); |
49 char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); | 51 char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); |
50 char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); | 52 char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); |
51 char_u *string_quote(char_u *str, int function); | 53 char_u *string_quote(char_u *str, int function); |
52 int string2float(char_u *text, float_T *value); | 54 int string2float(char_u *text, float_T *value); |
53 char_u *get_function_name(expand_T *xp, int idx); | 55 pos_T *var2fpos(typval_T *varp, int dollar_lnum, int *fnum); |
54 char_u *get_expr_name(expand_T *xp, int idx); | 56 int list2fpos(typval_T *arg, pos_T *posp, int *fnump, colnr_T *curswantp); |
55 int find_internal_func(char_u *name); | |
56 int call_internal_func(char_u *name, int argcount, typval_T *argvars, typval_T *rettv); | |
57 buf_T *buflist_find_by_name(char_u *name, int curtab_only); | |
58 void execute_redir_str(char_u *value, int value_len); | |
59 void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); | |
60 float_T vim_round(float_T f); | |
61 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); | |
62 char_u *get_callback(typval_T *arg, partial_T **pp); | |
63 void free_callback(char_u *callback, partial_T *partial); | |
64 int get_id_len(char_u **arg); | 57 int get_id_len(char_u **arg); |
58 int get_name_len(char_u **arg, char_u **alias, int evaluate, int verbose); | |
65 char_u *find_name_end(char_u *arg, char_u **expr_start, char_u **expr_end, int flags); | 59 char_u *find_name_end(char_u *arg, char_u **expr_start, char_u **expr_end, int flags); |
66 int eval_isnamec(int c); | 60 int eval_isnamec(int c); |
67 int eval_isnamec1(int c); | 61 int eval_isnamec1(int c); |
68 void set_vim_var_nr(int idx, varnumber_T val); | 62 void set_vim_var_nr(int idx, varnumber_T val); |
69 varnumber_T get_vim_var_nr(int idx); | 63 varnumber_T get_vim_var_nr(int idx); |
76 void set_vim_var_dict(int idx, dict_T *val); | 70 void set_vim_var_dict(int idx, dict_T *val); |
77 void set_reg_var(int c); | 71 void set_reg_var(int c); |
78 char_u *v_exception(char_u *oldval); | 72 char_u *v_exception(char_u *oldval); |
79 char_u *v_throwpoint(char_u *oldval); | 73 char_u *v_throwpoint(char_u *oldval); |
80 char_u *set_cmdarg(exarg_T *eap, char_u *oldarg); | 74 char_u *set_cmdarg(exarg_T *eap, char_u *oldarg); |
75 int get_var_tv(char_u *name, int len, typval_T *rettv, dictitem_T **dip, int verbose, int no_autoload); | |
81 int handle_subscript(char_u **arg, typval_T *rettv, int evaluate, int verbose); | 76 int handle_subscript(char_u **arg, typval_T *rettv, int evaluate, int verbose); |
82 typval_T *alloc_tv(void); | 77 typval_T *alloc_tv(void); |
83 void free_tv(typval_T *varp); | 78 void free_tv(typval_T *varp); |
84 void clear_tv(typval_T *varp); | 79 void clear_tv(typval_T *varp); |
80 void init_tv(typval_T *varp); | |
85 varnumber_T get_tv_number(typval_T *varp); | 81 varnumber_T get_tv_number(typval_T *varp); |
86 varnumber_T get_tv_number_chk(typval_T *varp, int *denote); | 82 varnumber_T get_tv_number_chk(typval_T *varp, int *denote); |
83 float_T get_tv_float(typval_T *varp); | |
87 char_u *get_tv_string(typval_T *varp); | 84 char_u *get_tv_string(typval_T *varp); |
88 char_u *get_tv_string_buf(typval_T *varp, char_u *buf); | 85 char_u *get_tv_string_buf(typval_T *varp, char_u *buf); |
89 char_u *get_tv_string_chk(typval_T *varp); | 86 char_u *get_tv_string_chk(typval_T *varp); |
90 char_u *get_tv_string_buf_chk(typval_T *varp, char_u *buf); | 87 char_u *get_tv_string_buf_chk(typval_T *varp, char_u *buf); |
91 dictitem_T *find_var(char_u *name, hashtab_T **htp, int no_autoload); | 88 dictitem_T *find_var(char_u *name, hashtab_T **htp, int no_autoload); |
89 dictitem_T *find_var_in_ht(hashtab_T *ht, int htname, char_u *varname, int no_autoload); | |
92 char_u *get_var_value(char_u *name); | 90 char_u *get_var_value(char_u *name); |
93 void new_script_vars(scid_T id); | 91 void new_script_vars(scid_T id); |
94 void init_var_dict(dict_T *dict, dictitem_T *dict_var, int scope); | 92 void init_var_dict(dict_T *dict, dictitem_T *dict_var, int scope); |
95 void unref_var_dict(dict_T *dict); | 93 void unref_var_dict(dict_T *dict); |
96 void vars_clear(hashtab_T *ht); | 94 void vars_clear(hashtab_T *ht); |
97 void vars_clear_ext(hashtab_T *ht, int free_val); | 95 void vars_clear_ext(hashtab_T *ht, int free_val); |
96 void set_var(char_u *name, typval_T *tv, int copy); | |
98 int var_check_ro(int flags, char_u *name, int use_gettext); | 97 int var_check_ro(int flags, char_u *name, int use_gettext); |
98 int var_check_fixed(int flags, char_u *name, int use_gettext); | |
99 int var_check_func_name(char_u *name, int new_var); | 99 int var_check_func_name(char_u *name, int new_var); |
100 int valid_varname(char_u *varname); | 100 int valid_varname(char_u *varname); |
101 int tv_check_lock(int lock, char_u *name, int use_gettext); | 101 int tv_check_lock(int lock, char_u *name, int use_gettext); |
102 void copy_tv(typval_T *from, typval_T *to); | 102 void copy_tv(typval_T *from, typval_T *to); |
103 int item_copy(typval_T *from, typval_T *to, int deep, int copyID); | 103 int item_copy(typval_T *from, typval_T *to, int deep, int copyID); |
104 void get_user_input(typval_T *argvars, typval_T *rettv, int inputdialog, int secret); | |
104 void ex_echo(exarg_T *eap); | 105 void ex_echo(exarg_T *eap); |
105 void ex_echohl(exarg_T *eap); | 106 void ex_echohl(exarg_T *eap); |
106 void ex_execute(exarg_T *eap); | 107 void ex_execute(exarg_T *eap); |
108 win_T *find_win_by_nr(typval_T *vp, tabpage_T *tp); | |
109 win_T *find_tabwin(typval_T *wvp, typval_T *tvp); | |
110 void getwinvar(typval_T *argvars, typval_T *rettv, int off); | |
111 void setwinvar(typval_T *argvars, typval_T *rettv, int off); | |
107 char_u *autoload_name(char_u *name); | 112 char_u *autoload_name(char_u *name); |
108 int script_autoload(char_u *name, int reload); | 113 int script_autoload(char_u *name, int reload); |
109 int read_viminfo_varlist(vir_T *virp, int writing); | 114 int read_viminfo_varlist(vir_T *virp, int writing); |
110 void write_viminfo_varlist(FILE *fp); | 115 void write_viminfo_varlist(FILE *fp); |
111 int store_session_globals(FILE *fd); | 116 int store_session_globals(FILE *fd); |
112 void last_set_msg(scid_T scriptID); | 117 void last_set_msg(scid_T scriptID); |
113 void ex_oldfiles(exarg_T *eap); | 118 void ex_oldfiles(exarg_T *eap); |
114 void reset_v_option_vars(void); | 119 void reset_v_option_vars(void); |
120 void prepare_assert_error(garray_T *gap); | |
121 void assert_error(garray_T *gap); | |
122 void assert_equal_common(typval_T *argvars, assert_type_T atype); | |
123 void assert_match_common(typval_T *argvars, assert_type_T atype); | |
124 void assert_bool(typval_T *argvars, int isTrue); | |
125 void assert_exception(typval_T *argvars); | |
126 void assert_fails(typval_T *argvars); | |
127 void fill_assert_error(garray_T *gap, typval_T *opt_msg_tv, char_u *exp_str, typval_T *exp_tv, typval_T *got_tv, assert_type_T atype); | |
115 int modify_fname(char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen); | 128 int modify_fname(char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen); |
116 char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, char_u *flags); | 129 char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, char_u *flags); |
130 void filter_map(typval_T *argvars, typval_T *rettv, int map); | |
117 /* vim: set ft=c : */ | 131 /* vim: set ft=c : */ |