diff options
| author | Carson Fleming <cflems@cflems.net> | 2026-07-19 00:46:54 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2026-07-19 00:46:54 -0700 |
| commit | f87e953223b7d498fc5401247952c08ab1e08f93 (patch) | |
| tree | cf7283266ce3c5308e223621402e0a35ae05bb9a | |
| parent | ef09e8385119abaf5038fe00d897b2a676326e81 (diff) | |
| download | ccc-f87e953223b7d498fc5401247952c08ab1e08f93.tar.gz | |
rename
| -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; |
