Imported Upstream version 8.0.586
[platform/upstream/vim.git] / src / proto / eval.pro
1 /* eval.c */
2 void eval_init(void);
3 void eval_clear(void);
4 void set_internal_string_var(char_u *name, char_u *value);
5 int var_redir_start(char_u *name, int append);
6 void var_redir_str(char_u *value, int value_len);
7 void var_redir_stop(void);
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);
12 int eval_to_bool(char_u *arg, int *error, char_u **nextcmd, int skip);
13 char_u *eval_to_string_skip(char_u *arg, char_u **nextcmd, int skip);
14 int skip_expr(char_u **pp);
15 char_u *eval_to_string(char_u *arg, char_u **nextcmd, int convert);
16 char_u *eval_to_string_safe(char_u *arg, char_u **nextcmd, int use_sandbox);
17 varnumber_T eval_to_number(char_u *expr);
18 list_T *eval_spell_expr(char_u *badword, char_u *expr);
19 int get_spellword(list_T *list, char_u **pp);
20 typval_T *eval_expr(char_u *arg, char_u **nextcmd);
21 int call_vim_function(char_u *func, int argc, char_u **argv, int safe, int str_arg_only, typval_T *rettv);
22 varnumber_T call_func_retnr(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);
25 int eval_foldexpr(char_u *arg, int *cp);
26 void ex_let(exarg_T *eap);
27 void list_hashtable_vars(hashtab_T *ht, char_u *prefix, int empty, int *first);
28 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 *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 void free_for_info(void *fi_void);
33 void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx);
34 void ex_unlet(exarg_T *eap);
35 void ex_lockvar(exarg_T *eap);
36 int do_unlet(char_u *name, int forceit);
37 void del_menutrans_vars(void);
38 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 eval1(char_u **arg, typval_T *rettv, int evaluate);
41 int get_option_tv(char_u **arg, typval_T *rettv, int evaluate);
42 char_u *partial_name(partial_T *pt);
43 void partial_unref(partial_T *pt);
44 int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive);
45 int get_copyID(void);
46 int garbage_collect(int testing);
47 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack);
48 int set_ref_in_list(list_T *l, int copyID, ht_stack_T **ht_stack);
49 int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack);
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);
51 char_u *echo_string(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);
53 char_u *string_quote(char_u *str, int function);
54 int string2float(char_u *text, float_T *value);
55 pos_T *var2fpos(typval_T *varp, int dollar_lnum, int *fnum);
56 int list2fpos(typval_T *arg, pos_T *posp, int *fnump, colnr_T *curswantp);
57 int get_id_len(char_u **arg);
58 int get_name_len(char_u **arg, char_u **alias, int evaluate, int verbose);
59 char_u *find_name_end(char_u *arg, char_u **expr_start, char_u **expr_end, int flags);
60 int eval_isnamec(int c);
61 int eval_isnamec1(int c);
62 void set_vim_var_nr(int idx, varnumber_T val);
63 varnumber_T get_vim_var_nr(int idx);
64 char_u *get_vim_var_str(int idx);
65 list_T *get_vim_var_list(int idx);
66 void set_vim_var_char(int c);
67 void set_vcount(long count, long count1, int set_prevcount);
68 void set_vim_var_string(int idx, char_u *val, int len);
69 void set_vim_var_list(int idx, list_T *val);
70 void set_vim_var_dict(int idx, dict_T *val);
71 void set_reg_var(int c);
72 char_u *v_exception(char_u *oldval);
73 char_u *v_throwpoint(char_u *oldval);
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);
76 int handle_subscript(char_u **arg, typval_T *rettv, int evaluate, int verbose);
77 typval_T *alloc_tv(void);
78 void free_tv(typval_T *varp);
79 void clear_tv(typval_T *varp);
80 void init_tv(typval_T *varp);
81 varnumber_T get_tv_number(typval_T *varp);
82 varnumber_T get_tv_number_chk(typval_T *varp, int *denote);
83 float_T get_tv_float(typval_T *varp);
84 char_u *get_tv_string(typval_T *varp);
85 char_u *get_tv_string_buf(typval_T *varp, char_u *buf);
86 char_u *get_tv_string_chk(typval_T *varp);
87 char_u *get_tv_string_buf_chk(typval_T *varp, char_u *buf);
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);
90 hashtab_T *find_var_ht(char_u *name, char_u **varname);
91 char_u *get_var_value(char_u *name);
92 void new_script_vars(scid_T id);
93 void init_var_dict(dict_T *dict, dictitem_T *dict_var, int scope);
94 void unref_var_dict(dict_T *dict);
95 void vars_clear(hashtab_T *ht);
96 void vars_clear_ext(hashtab_T *ht, int free_val);
97 void set_var(char_u *name, typval_T *tv, int copy);
98 int var_check_ro(int flags, char_u *name, int use_gettext);
99 int var_check_fixed(int flags, char_u *name, int use_gettext);
100 int var_check_func_name(char_u *name, int new_var);
101 int valid_varname(char_u *varname);
102 int tv_check_lock(int lock, char_u *name, int use_gettext);
103 void copy_tv(typval_T *from, typval_T *to);
104 int item_copy(typval_T *from, typval_T *to, int deep, int copyID);
105 void get_user_input(typval_T *argvars, typval_T *rettv, int inputdialog, int secret);
106 void ex_echo(exarg_T *eap);
107 void ex_echohl(exarg_T *eap);
108 void ex_execute(exarg_T *eap);
109 win_T *find_win_by_nr(typval_T *vp, tabpage_T *tp);
110 win_T *find_tabwin(typval_T *wvp, typval_T *tvp);
111 void getwinvar(typval_T *argvars, typval_T *rettv, int off);
112 void setwinvar(typval_T *argvars, typval_T *rettv, int off);
113 char_u *autoload_name(char_u *name);
114 int script_autoload(char_u *name, int reload);
115 int read_viminfo_varlist(vir_T *virp, int writing);
116 void write_viminfo_varlist(FILE *fp);
117 int store_session_globals(FILE *fd);
118 void last_set_msg(scid_T scriptID);
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_inrange(typval_T *argvars);
125 void assert_bool(typval_T *argvars, int isTrue);
126 void assert_report(typval_T *argvars);
127 void assert_exception(typval_T *argvars);
128 void assert_fails(typval_T *argvars);
129 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);
130 int modify_fname(char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen);
131 char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, typval_T *expr, char_u *flags);
132 void filter_map(typval_T *argvars, typval_T *rettv, int map);
133 /* vim: set ft=c : */