blob: 6eebde26e064cd1574b90398d45ceb48b73ed26e [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);
7int tv_check_lock(typval_T *tv, char_u *name, int use_gettext);
8void copy_tv(typval_T *from, typval_T *to);
9int typval_compare(typval_T *typ1, typval_T *typ2, exptype_T type, int ic);
10char_u *typval_tostring(typval_T *arg);
11int tv_islocked(typval_T *tv);
12int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive);
13int get_option_tv(char_u **arg, typval_T *rettv, int evaluate);
14int get_number_tv(char_u **arg, typval_T *rettv, int evaluate, int want_string);
15int get_string_tv(char_u **arg, typval_T *rettv, int evaluate);
16int get_lit_string_tv(char_u **arg, typval_T *rettv, int evaluate);
17char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
18int get_env_tv(char_u **arg, typval_T *rettv, int evaluate);
19varnumber_T tv_get_number(typval_T *varp);
20varnumber_T tv_get_number_chk(typval_T *varp, int *denote);
21float_T tv_get_float(typval_T *varp);
22char_u *tv_get_string(typval_T *varp);
23char_u *tv_get_string_buf(typval_T *varp, char_u *buf);
24char_u *tv_get_string_chk(typval_T *varp);
25char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf);
26linenr_T tv_get_lnum(typval_T *argvars);
27linenr_T tv_get_lnum_buf(typval_T *argvars, buf_T *buf);
28buf_T *tv_get_buf(typval_T *tv, int curtab_only);
29char_u *tv_stringify(typval_T *varp, char_u *buf);
30/* vim: set ft=c : */