diff options
| author | Mustafa Quraish <[email protected]> | 2022-02-02 02:34:19 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-02-02 02:34:19 -0500 |
| commit | ae3638402a41f1c75f59aa1da923d6f7ffd058ac (patch) | |
| tree | d1f985eb73ce3def8aa3caa6220687af71a4d125 /src/ast.h | |
| parent | Modify how types are stored. (diff) | |
| download | cup-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |