aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-02-02 02:34:19 -0500
committerMustafa Quraish <[email protected]>2022-02-02 02:34:19 -0500
commitae3638402a41f1c75f59aa1da923d6f7ffd058ac (patch)
treed1f985eb73ce3def8aa3caa6220687af71a4d125 /src/ast.h
parentModify how types are stored. (diff)
downloadcup-ae3638402a41f1c75f59aa1da923d6f7ffd058ac.tar.xz
cup-ae3638402a41f1c75f59aa1da923d6f7ffd058ac.zip
Add `size_for_type()` helper instead of hard-coding variable sizes
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 74a8ef8..287f51b 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -71,6 +71,7 @@ typedef struct data_type_node {
} Type;
Type *type_new(DataType type);
+i64 size_for_type(Type *type);
typedef struct {
char *name;