From f87e953223b7d498fc5401247952c08ab1e08f93 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sun, 19 Jul 2026 00:46:54 -0700 Subject: rename --- ast.h | 2 +- parser.c | 2 +- scope.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ast.h b/ast.h index bc23a1c..21a4e72 100644 --- a/ast.h +++ b/ast.h @@ -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 { diff --git a/parser.c b/parser.c index 14bbbf5..28e36e3 100644 --- a/parser.c +++ b/parser.c @@ -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, }; diff --git a/scope.h b/scope.h index 5761f54..09a1375 100644 --- a/scope.h +++ b/scope.h @@ -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; -- cgit v1.2.3