stage1 优化代码 完成16测试
This commit is contained in:
@@ -79,6 +79,7 @@ spl_type_info_t *spl_type_union(const char *name);
|
||||
spl_type_info_t *spl_type_enum(const char *name);
|
||||
void spl_type_add_field(spl_type_info_t *st, const char *name, spl_type_info_t *ftype);
|
||||
void spl_type_add_variant(spl_type_info_t *et, const char *name, spl_type_info_t *dtype);
|
||||
void spl_type_add_method(spl_type_info_t *t, const char *name, int func_idx);
|
||||
void spl_type_compute_layout(spl_type_info_t *t);
|
||||
usize spl_type_size(spl_type_info_t *t);
|
||||
usize spl_type_slot_count(spl_type_info_t *t);
|
||||
@@ -161,6 +162,7 @@ typedef struct {
|
||||
int current_func_idx;
|
||||
spl_type_info_t *current_ret_type;
|
||||
int current_local_slot; /* next free local slot */
|
||||
const char *current_type_name; /* name of type whose body we're parsing (for method short-name lookup) */
|
||||
|
||||
/* Loop context for break/continue */
|
||||
int in_loop;
|
||||
|
||||
Reference in New Issue
Block a user