xref: /vim-8.2.3635/src/proto/typval.pro (revision 5dfe4674)
1/* 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);
7varnumber_T tv_get_number(typval_T *varp);
8varnumber_T tv_get_number_chk(typval_T *varp, int *denote);
9varnumber_T tv_get_bool(typval_T *varp);
10varnumber_T tv_get_bool_chk(typval_T *varp, int *denote);
11float_T tv_get_float(typval_T *varp);
12int check_for_string_arg(typval_T *args, int idx);
13int check_for_nonempty_string_arg(typval_T *args, int idx);
14int check_for_opt_string_arg(typval_T *args, int idx);
15int check_for_number_arg(typval_T *args, int idx);
16int check_for_opt_number_arg(typval_T *args, int idx);
17int check_for_float_or_nr_arg(typval_T *args, int idx);
18int check_for_bool_arg(typval_T *args, int idx);
19int check_for_opt_bool_arg(typval_T *args, int idx);
20int check_for_blob_arg(typval_T *args, int idx);
21int check_for_list_arg(typval_T *args, int idx);
22int check_for_opt_list_arg(typval_T *args, int idx);
23int check_for_dict_arg(typval_T *args, int idx);
24int check_for_opt_dict_arg(typval_T *args, int idx);
25int check_for_chan_or_job_arg(typval_T *args, int idx);
26int check_for_opt_chan_or_job_arg(typval_T *args, int idx);
27int check_for_job_arg(typval_T *args, int idx);
28int check_for_opt_job_arg(typval_T *args, int idx);
29int check_for_string_or_number_arg(typval_T *args, int idx);
30int check_for_buffer_arg(typval_T *args, int idx);
31int check_for_opt_buffer_arg(typval_T *args, int idx);
32int check_for_lnum_arg(typval_T *args, int idx);
33int check_for_opt_lnum_arg(typval_T *args, int idx);
34int check_for_opt_string_or_number_arg(typval_T *args, int idx);
35int check_for_string_or_blob_arg(typval_T *args, int idx);
36int check_for_string_or_list_arg(typval_T *args, int idx);
37int check_for_opt_string_or_list_arg(typval_T *args, int idx);
38int check_for_string_or_dict_arg(typval_T *args, int idx);
39int check_for_string_or_number_or_list_arg(typval_T *args, int idx);
40int check_for_opt_string_or_number_or_list_arg(typval_T *args, int idx);
41int check_for_string_or_list_or_dict_arg(typval_T *args, int idx);
42int check_for_list_or_blob_arg(typval_T *args, int idx);
43int check_for_list_or_dict_arg(typval_T *args, int idx);
44int check_for_list_or_dict_or_blob_arg(typval_T *args, int idx);
45int check_for_opt_buffer_or_dict_arg(typval_T *args, int idx);
46char_u *tv_get_string(typval_T *varp);
47char_u *tv_get_string_strict(typval_T *varp);
48char_u *tv_get_string_buf(typval_T *varp, char_u *buf);
49char_u *tv_get_string_chk(typval_T *varp);
50char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf);
51char_u *tv_get_string_buf_chk_strict(typval_T *varp, char_u *buf, int strict);
52char_u *tv_stringify(typval_T *varp, char_u *buf);
53int tv_check_lock(typval_T *tv, char_u *name, int use_gettext);
54void copy_tv(typval_T *from, typval_T *to);
55int typval_compare(typval_T *typ1, typval_T *typ2, exprtype_T type, int ic);
56char_u *typval_tostring(typval_T *arg, int quotes);
57int tv_islocked(typval_T *tv);
58int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive);
59int eval_option(char_u **arg, typval_T *rettv, int evaluate);
60int eval_number(char_u **arg, typval_T *rettv, int evaluate, int want_string);
61int eval_string(char_u **arg, typval_T *rettv, int evaluate);
62int eval_lit_string(char_u **arg, typval_T *rettv, int evaluate);
63char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
64int eval_env_var(char_u **arg, typval_T *rettv, int evaluate);
65linenr_T tv_get_lnum(typval_T *argvars);
66linenr_T tv_get_lnum_buf(typval_T *argvars, buf_T *buf);
67buf_T *tv_get_buf(typval_T *tv, int curtab_only);
68buf_T *tv_get_buf_from_arg(typval_T *tv);
69/* vim: set ft=c : */
70