blob: 3bc2f2c5e5da92f23b96f9c86d313fe35af90f30 [file] [log] [blame]
Bram Moolenaar367d59e2020-05-30 17:06:14 +02001/* typval.c */
2typval_T *alloc_tv(void);
3typval_T *alloc_string_tv(char_u *s);
4void free_tv(typval_T *varp);
5void clear_tv(typval_T *varp);
6void init_tv(typval_T *varp);
Bram Moolenaar367d59e2020-05-30 17:06:14 +02007varnumber_T tv_get_number(typval_T *varp);
8varnumber_T tv_get_number_chk(typval_T *varp, int *denote);
9float_T tv_get_float(typval_T *varp);
10char_u *tv_get_string(typval_T *varp);
11char_u *tv_get_string_buf(typval_T *varp, char_u *buf);
12char_u *tv_get_string_chk(typval_T *varp);
13char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf);
Bram Moolenaar9a78e6d2020-07-01 18:29:55 +020014char_u *tv_stringify(typval_T *varp, char_u *buf);
15int tv_check_lock(typval_T *tv, char_u *name, int use_gettext);
16void copy_tv(typval_T *from, typval_T *to);
17int typval_compare(typval_T *typ1, typval_T *typ2, exptype_T type, int ic);
18char_u *typval_tostring(typval_T *arg);
19int tv_islocked(typval_T *tv);
20int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive);
21int eval_option(char_u **arg, typval_T *rettv, int evaluate);
22int eval_number(char_u **arg, typval_T *rettv, int evaluate, int want_string);
23int eval_string(char_u **arg, typval_T *rettv, int evaluate);
24int eval_lit_string(char_u **arg, typval_T *rettv, int evaluate);
25char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
26int eval_env_var(char_u **arg, typval_T *rettv, int evaluate);
Bram Moolenaar367d59e2020-05-30 17:06:14 +020027linenr_T tv_get_lnum(typval_T *argvars);
28linenr_T tv_get_lnum_buf(typval_T *argvars, buf_T *buf);
29buf_T *tv_get_buf(typval_T *tv, int curtab_only);
Bram Moolenaar367d59e2020-05-30 17:06:14 +020030/* vim: set ft=c : */