Mercurial > vim
comparison src/proto/evalvars.pro @ 17922:4d63d47d87ef v8.1.1957
patch 8.1.1957: more code can be moved to evalvars.c
Commit: https://github.com/vim/vim/commit/da6c03342117fb7f4a8110bd9e8627b612a05a64
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 1 16:01:30 2019 +0200
patch 8.1.1957: more code can be moved to evalvars.c
Problem: More code can be moved to evalvars.c.
Solution: Move code to where it fits better. (Yegappan Lakshmanan,
closes #4883)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Sep 2019 16:15:03 +0200 |
parents | e4d3b6c466d4 |
children | 46f95606b9ec |
comparison
equal
deleted
inserted
replaced
17921:14be395d672c | 17922:4d63d47d87ef |
---|---|
1 /* evalvars.c */ | 1 /* evalvars.c */ |
2 void evalvars_init(void); | 2 void evalvars_init(void); |
3 void evalvars_clear(void); | 3 void evalvars_clear(void); |
4 int garbage_collect_globvars(int copyID); | |
4 int garbage_collect_vimvars(int copyID); | 5 int garbage_collect_vimvars(int copyID); |
5 int garbage_collect_scriptvars(int copyID); | 6 int garbage_collect_scriptvars(int copyID); |
6 void set_internal_string_var(char_u *name, char_u *value); | 7 void set_internal_string_var(char_u *name, char_u *value); |
8 int eval_charconvert(char_u *enc_from, char_u *enc_to, char_u *fname_from, char_u *fname_to); | |
9 int eval_printexpr(char_u *fname, char_u *args); | |
10 void eval_diff(char_u *origfile, char_u *newfile, char_u *outfile); | |
11 void eval_patch(char_u *origfile, char_u *difffile, char_u *outfile); | |
7 void prepare_vimvar(int idx, typval_T *save_tv); | 12 void prepare_vimvar(int idx, typval_T *save_tv); |
8 void restore_vimvar(int idx, typval_T *save_tv); | 13 void restore_vimvar(int idx, typval_T *save_tv); |
9 void ex_let(exarg_T *eap); | 14 void ex_let(exarg_T *eap); |
10 void ex_const(exarg_T *eap); | 15 void ex_const(exarg_T *eap); |
11 int ex_let_vars(char_u *arg_start, typval_T *tv, int copy, int semicolon, int var_count, int is_const, char_u *op); | 16 int ex_let_vars(char_u *arg_start, typval_T *tv, int copy, int semicolon, int var_count, int is_const, char_u *op); |
12 char_u *skip_var_list(char_u *arg, int *var_count, int *semicolon); | 17 char_u *skip_var_list(char_u *arg, int *var_count, int *semicolon); |
13 void list_hashtable_vars(hashtab_T *ht, char *prefix, int empty, int *first); | 18 void list_hashtable_vars(hashtab_T *ht, char *prefix, int empty, int *first); |
14 void ex_unlet(exarg_T *eap); | 19 void ex_unlet(exarg_T *eap); |
15 void ex_lockvar(exarg_T *eap); | 20 void ex_lockvar(exarg_T *eap); |
16 int do_unlet(char_u *name, int forceit); | 21 int do_unlet(char_u *name, int forceit); |
22 void del_menutrans_vars(void); | |
17 char_u *get_user_var_name(expand_T *xp, int idx); | 23 char_u *get_user_var_name(expand_T *xp, int idx); |
24 char *get_var_special_name(int nr); | |
25 dict_T *get_globvar_dict(void); | |
26 hashtab_T *get_globvar_ht(void); | |
27 dict_T *get_vimvar_dict(void); | |
18 void set_vim_var_type(int idx, vartype_T type); | 28 void set_vim_var_type(int idx, vartype_T type); |
19 void set_vim_var_nr(int idx, varnumber_T val); | 29 void set_vim_var_nr(int idx, varnumber_T val); |
20 typval_T *get_vim_var_tv(int idx); | 30 typval_T *get_vim_var_tv(int idx); |
21 varnumber_T get_vim_var_nr(int idx); | 31 varnumber_T get_vim_var_nr(int idx); |
22 char_u *get_vim_var_str(int idx); | 32 char_u *get_vim_var_str(int idx); |
42 void new_script_vars(scid_T id); | 52 void new_script_vars(scid_T id); |
43 void init_var_dict(dict_T *dict, dictitem_T *dict_var, int scope); | 53 void init_var_dict(dict_T *dict, dictitem_T *dict_var, int scope); |
44 void unref_var_dict(dict_T *dict); | 54 void unref_var_dict(dict_T *dict); |
45 void vars_clear(hashtab_T *ht); | 55 void vars_clear(hashtab_T *ht); |
46 void vars_clear_ext(hashtab_T *ht, int free_val); | 56 void vars_clear_ext(hashtab_T *ht, int free_val); |
47 void delete_var(hashtab_T *ht, hashitem_T *hi); | |
48 void set_var(char_u *name, typval_T *tv, int copy); | 57 void set_var(char_u *name, typval_T *tv, int copy); |
49 void set_var_const(char_u *name, typval_T *tv, int copy, int is_const); | 58 void set_var_const(char_u *name, typval_T *tv, int copy, int is_const); |
50 int var_check_ro(int flags, char_u *name, int use_gettext); | 59 int var_check_ro(int flags, char_u *name, int use_gettext); |
51 int var_check_fixed(int flags, char_u *name, int use_gettext); | 60 int var_check_fixed(int flags, char_u *name, int use_gettext); |
52 int var_check_func_name(char_u *name, int new_var); | 61 int var_check_func_name(char_u *name, int new_var); |
53 int var_check_lock(int lock, char_u *name, int use_gettext); | 62 int var_check_lock(int lock, char_u *name, int use_gettext); |
54 int valid_varname(char_u *varname); | 63 int valid_varname(char_u *varname); |
55 void reset_v_option_vars(void); | 64 void reset_v_option_vars(void); |
56 void assert_error(garray_T *gap); | 65 void assert_error(garray_T *gap); |
57 int var_exists(char_u *var); | 66 int var_exists(char_u *var); |
67 int var_redir_start(char_u *name, int append); | |
68 void var_redir_str(char_u *value, int value_len); | |
69 void var_redir_stop(void); | |
58 void f_gettabvar(typval_T *argvars, typval_T *rettv); | 70 void f_gettabvar(typval_T *argvars, typval_T *rettv); |
59 void f_gettabwinvar(typval_T *argvars, typval_T *rettv); | 71 void f_gettabwinvar(typval_T *argvars, typval_T *rettv); |
60 void f_getwinvar(typval_T *argvars, typval_T *rettv); | 72 void f_getwinvar(typval_T *argvars, typval_T *rettv); |
61 void f_getbufvar(typval_T *argvars, typval_T *rettv); | 73 void f_getbufvar(typval_T *argvars, typval_T *rettv); |
62 void f_settabvar(typval_T *argvars, typval_T *rettv); | 74 void f_settabvar(typval_T *argvars, typval_T *rettv); |