1
0
forked from aniani/vim

patch 8.2.1405: Vim9: vim9compile.c is getting too big

Problem:    Vim9: vim9compile.c is getting too big.
Solution:   Split off type code to vim9type.c.
This commit is contained in:
Bram Moolenaar
2020-08-09 15:25:14 +02:00
parent b3ca982407
commit a7cc9e697b
10 changed files with 956 additions and 901 deletions

View File

@@ -1,15 +1,6 @@
/* vim9compile.c */
int check_defined(char_u *p, size_t len, cctx_T *cctx);
void clear_type_list(garray_T *gap);
type_T *typval2type(typval_T *tv, garray_T *type_gap);
type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap);
int check_typval_type(type_T *expected, typval_T *actual_tv);
int check_type(type_T *expected, type_T *actual, int give_msg);
int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2);
char_u *skip_type(char_u *start, int optional);
type_T *parse_type(char_u **arg, garray_T *type_gap);
char *vartype_name(vartype_T type);
char *type_name(type_T *type, char **tofree);
int get_script_item_idx(int sid, char_u *name, int check_writable);
imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx);
imported_T *find_imported_in_script(char_u *name, size_t len, int sid);