aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-14 23:30:18 +0900
committernsfisis <nsfisis@gmail.com>2026-02-14 23:30:18 +0900
commitef0cb4dbdc1c036f70f94a905cbacae9be5abf5e (patch)
tree39e612997349dd66050fe5820fefc4da65457821 /src/ast.h
parent5a1789c2de30ec503e488ca77d664199a545a04a (diff)
downloadducc-ef0cb4dbdc1c036f70f94a905cbacae9be5abf5e.tar.gz
ducc-ef0cb4dbdc1c036f70f94a905cbacae9be5abf5e.tar.zst
ducc-ef0cb4dbdc1c036f70f94a905cbacae9be5abf5e.zip
refactor: shallow copy typedef-ed types to remove work-around
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h1
1 files changed, 1 insertions, 0 deletions
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);