From ef0cb4dbdc1c036f70f94a905cbacae9be5abf5e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 14 Feb 2026 23:30:18 +0900 Subject: refactor: shallow copy typedef-ed types to remove work-around --- src/ast.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index 79d58d0..0749420 100644 --- a/src/ast.h +++ b/src/ast.h @@ -65,6 +65,7 @@ typedef struct Type { } Type; Type* type_new(TypeKind kind); +Type* type_dup(Type* src); Type* type_new_ptr(Type* base); Type* type_new_array(Type* elem, int size); Type* type_new_static_string(int len); -- cgit v1.3-1-g0d28