xref: /vim-8.2.3635/src/proto/eval.pro (revision 4c295027)
1/* eval.c */
2varnumber_T num_divide(varnumber_T n1, varnumber_T n2, int *failed);
3varnumber_T num_modulus(varnumber_T n1, varnumber_T n2, int *failed);
4void eval_init(void);
5void eval_clear(void);
6void fill_evalarg_from_eap(evalarg_T *evalarg, exarg_T *eap, int skip);
7int eval_to_bool(char_u *arg, int *error, exarg_T *eap, int skip);
8int eval_expr_valid_arg(typval_T *tv);
9int eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv);
10int eval_expr_to_bool(typval_T *expr, int *error);
11char_u *eval_to_string_skip(char_u *arg, exarg_T *eap, int skip);
12int skip_expr(char_u **pp, evalarg_T *evalarg);
13int skip_expr_concatenate(char_u **arg, char_u **start, char_u **end, evalarg_T *evalarg);
14char_u *typval2string(typval_T *tv, int convert);
15char_u *eval_to_string_eap(char_u *arg, int convert, exarg_T *eap);
16char_u *eval_to_string(char_u *arg, int convert);
17char_u *eval_to_string_safe(char_u *arg, int use_sandbox);
18varnumber_T eval_to_number(char_u *expr);
19typval_T *eval_expr(char_u *arg, exarg_T *eap);
20int call_vim_function(char_u *func, int argc, typval_T *argv, typval_T *rettv);
21varnumber_T call_func_retnr(char_u *func, int argc, typval_T *argv);
22int call_func_noret(char_u *func, int argc, typval_T *argv);
23void *call_func_retstr(char_u *func, int argc, typval_T *argv);
24void *call_func_retlist(char_u *func, int argc, typval_T *argv);
25int eval_foldexpr(char_u *arg, int *cp);
26char_u *get_lval(char_u *name, typval_T *rettv, lval_T *lp, int unlet, int skip, int flags, int fne_flags);
27void clear_lval(lval_T *lp);
28void set_var_lval(lval_T *lp, char_u *endp, typval_T *rettv, int copy, int flags, char_u *op, int var_idx);
29void *eval_for_line(char_u *arg, int *errp, exarg_T *eap, evalarg_T *evalarg);
30void skip_for_lines(void *fi_void, evalarg_T *evalarg);
31int next_for_item(void *fi_void, char_u *arg);
32void free_for_info(void *fi_void);
33void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx);
34int pattern_match(char_u *pat, char_u *text, int ic);
35char_u *eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext);
36char_u *eval_next_line(evalarg_T *evalarg);
37char_u *skipwhite_and_linebreak(char_u *arg, evalarg_T *evalarg);
38void clear_evalarg(evalarg_T *evalarg, exarg_T *eap);
39int eval0(char_u *arg, typval_T *rettv, exarg_T *eap, evalarg_T *evalarg);
40int eval1(char_u **arg, typval_T *rettv, evalarg_T *evalarg);
41void eval_addblob(typval_T *tv1, typval_T *tv2);
42int eval_addlist(typval_T *tv1, typval_T *tv2);
43int eval_leader(char_u **arg, int vim9);
44int check_can_index(typval_T *rettv, int evaluate, int verbose);
45void f_slice(typval_T *argvars, typval_T *rettv);
46int eval_index_inner(typval_T *rettv, int is_range, typval_T *var1, typval_T *var2, int exclusive, char_u *key, int keylen, int verbose);
47char_u *partial_name(partial_T *pt);
48void partial_unref(partial_T *pt);
49int get_copyID(void);
50int garbage_collect(int testing);
51int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack);
52int set_ref_in_dict(dict_T *d, int copyID);
53int set_ref_in_list(list_T *ll, int copyID);
54int set_ref_in_list_items(list_T *l, int copyID, ht_stack_T **ht_stack);
55int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack);
56char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int composite_val);
57char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
58char_u *string_quote(char_u *str, int function);
59int string2float(char_u *text, float_T *value);
60int buf_byteidx_to_charidx(buf_T *buf, int lnum, int byteidx);
61int buf_charidx_to_byteidx(buf_T *buf, int lnum, int charidx);
62pos_T *var2fpos(typval_T *varp, int dollar_lnum, int *fnum, int charcol);
63int list2fpos(typval_T *arg, pos_T *posp, int *fnump, colnr_T *curswantp, int charcol);
64int get_env_len(char_u **arg);
65int get_id_len(char_u **arg);
66int get_name_len(char_u **arg, char_u **alias, int evaluate, int verbose);
67char_u *find_name_end(char_u *arg, char_u **expr_start, char_u **expr_end, int flags);
68int eval_isnamec(int c);
69int eval_isnamec1(int c);
70int eval_isdictc(int c);
71int handle_subscript(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose);
72int item_copy(typval_T *from, typval_T *to, int deep, int copyID);
73void echo_one(typval_T *rettv, int with_space, int *atstart, int *needclr);
74void ex_echo(exarg_T *eap);
75void ex_echohl(exarg_T *eap);
76int get_echo_attr(void);
77void ex_execute(exarg_T *eap);
78char_u *find_option_end(char_u **arg, int *opt_flags);
79void last_set_msg(sctx_T script_ctx);
80char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, typval_T *expr, char_u *flags);
81/* vim: set ft=c : */
82