diff options
| -rw-r--r-- | ast.h | 2 | ||||
| -rw-r--r-- | parser.c | 2 | ||||
| -rw-r--r-- | scope.h | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -7,7 +7,7 @@ struct stmt_node; struct expr_node; struct type_ref_node { - struct type type; + struct type_ref type; }; struct int_lit_node { @@ -79,7 +79,7 @@ static void parse_type_ref(struct type_ref_node* p_node) { PARSER_PANIC("unknown type name: %s", tok.data.ident); free(tok.data.ident); - p_node->type = (struct type) { + p_node->type = (struct type_ref) { .raw_type = type_def, .ptr_level = 0, }; @@ -21,7 +21,7 @@ struct storage_location { }; }; -struct type { +struct type_ref { const struct type_def* raw_type; unsigned char ptr_level; }; @@ -41,7 +41,7 @@ struct type_def { }; struct var_def { - const struct type* type; + const struct type_ref* type; char* name; struct storage_location loc; const struct type_def* resolved_type; |
