summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/types.h b/types.h
index 5faa096..f7e0658 100644
--- a/types.h
+++ b/types.h
@@ -249,7 +249,8 @@ typedef enum {
TYPE_ARR,
TYPE_PTR,
TYPE_SLICE,
- TYPE_TYPE
+ TYPE_TYPE,
+ TYPE_USER /* user-defined type */
} TypeKind;
typedef enum {
@@ -289,6 +290,9 @@ typedef struct Type {
} arr;
struct Type *ptr;
struct Type *slice;
+ struct {
+ Identifier name;
+ } user;
};
} Type;