xref: /vim-8.2.3635/src/proto/eval.pro (revision 1a928c20)
1/* eval.c */
2varnumber_T num_divide(varnumber_T n1, varnumber_T n2);
3varnumber_T num_modulus(varnumber_T n1, varnumber_T n2);
4void eval_init(void);
5void eval_clear(void);
6int eval_to_bool(char_u *arg, int *error, char_u **nextcmd, int skip);
7int eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv);
8int eval_expr_to_bool(typval_T *expr, int *error);
9char_u *eval_to_string_skip(char_u *arg, char_u **nextcmd, int skip);
10int skip_expr(char_u **pp);
11char_u *eval_to_string(char_u *arg, char_u **nextcmd, int convert);
12char_u *eval_to_string_safe(char_u *arg, char_u **nextcmd, int use_sandbox);
13varnumber_T eval_to_number(char_u *expr);
14typval_T *eval_expr(char_u *arg, char_u **nextcmd);
15int call_vim_function(char_u *func, int argc, typval_T *argv, typval_T *rettv);
16varnumber_T call_func_retnr(char_u *func, int argc, typval_T *argv);
17void *call_func_retstr(char_u *func, int argc, typval_T *argv);
18void *call_func_retlist(char_u *func, int argc, typval_T *argv);
19int eval_foldexpr(char_u *arg, int *cp);
20char_u *get_lval(char_u *name, typval_T *rettv, lval_T *lp, int unlet, int skip, int flags, int fne_flags);
21void clear_lval(lval_T *lp);
22void set_var_lval(lval_T *lp, char_u *endp, typval_T *rettv, int copy, int is_const, char_u *op);
23void *eval_for_line(char_u *arg, int *errp, char_u **nextcmdp, int skip);
24int next_for_item(void *fi_void, char_u *arg);
25void free_for_info(void *fi_void);
26void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx);
27int pattern_match(char_u *pat, char_u *text, int ic);
28int eval0(char_u *arg, typval_T *rettv, char_u **nextcmd, int evaluate);
29int eval1(char_u **arg, typval_T *rettv, int evaluate);
30int get_option_tv(char_u **arg, typval_T *rettv, int evaluate);
31char_u *partial_name(partial_T *pt);
32void partial_unref(partial_T *pt);
33int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive);
34int get_copyID(void);
35int garbage_collect(int testing);
36int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack);
37int set_ref_in_dict(dict_T *d, int copyID);
38int set_ref_in_list(list_T *ll, int copyID);
39int set_ref_in_list_items(list_T *l, int copyID, ht_stack_T **ht_stack);
40int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack);
41char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int composite_val);
42char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
43char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
44char_u *string_quote(char_u *str, int function);
45int string2float(char_u *text, float_T *value);
46pos_T *var2fpos(typval_T *varp, int dollar_lnum, int *fnum);
47int list2fpos(typval_T *arg, pos_T *posp, int *fnump, colnr_T *curswantp);
48int get_env_len(char_u **arg);
49int get_id_len(char_u **arg);
50int get_name_len(char_u **arg, char_u **alias, int evaluate, int verbose);
51char_u *find_name_end(char_u *arg, char_u **expr_start, char_u **expr_end, int flags);
52int eval_isnamec(int c);
53int eval_isnamec1(int c);
54int handle_subscript(char_u **arg, typval_T *rettv, int evaluate, int verbose, char_u *start_leader, char_u **end_leaderp);
55typval_T *alloc_tv(void);
56typval_T *alloc_string_tv(char_u *s);
57void free_tv(typval_T *varp);
58void clear_tv(typval_T *varp);
59void init_tv(typval_T *varp);
60varnumber_T tv_get_number(typval_T *varp);
61varnumber_T tv_get_number_chk(typval_T *varp, int *denote);
62float_T tv_get_float(typval_T *varp);
63char_u *tv_get_string(typval_T *varp);
64char_u *tv_get_string_buf(typval_T *varp, char_u *buf);
65char_u *tv_get_string_chk(typval_T *varp);
66char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf);
67void copy_tv(typval_T *from, typval_T *to);
68int item_copy(typval_T *from, typval_T *to, int deep, int copyID);
69void ex_echo(exarg_T *eap);
70void ex_echohl(exarg_T *eap);
71int get_echo_attr(void);
72void ex_execute(exarg_T *eap);
73char_u *find_option_end(char_u **arg, int *opt_flags);
74void last_set_msg(sctx_T script_ctx);
75int typval_compare(typval_T *typ1, typval_T *typ2, exptype_T type, int ic);
76char_u *typval_tostring(typval_T *arg);
77char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, typval_T *expr, char_u *flags);
78/* vim: set ft=c : */
79