summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2026-07-18 23:38:59 -0700
committerCarson Fleming <cflems@cflems.net>2026-07-18 23:38:59 -0700
commit1e712cf04567c48100526f9a3a0f796497168268 (patch)
tree28a1676d36620500578d1a386d8d0b976637ce9f /scope.h
parentfeb1cac139ca5aa2ba76ac6a0a318bced03d8638 (diff)
downloadccc-1e712cf04567c48100526f9a3a0f796497168268.tar.gz
type system surely
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scope.h b/scope.h
index 19561e0..5761f54 100644
--- a/scope.h
+++ b/scope.h
@@ -21,6 +21,11 @@ struct storage_location {
};
};
+struct type {
+ const struct type_def* raw_type;
+ unsigned char ptr_level;
+};
+
struct type_key {
char* name;
unsigned char how_long;
@@ -36,6 +41,7 @@ struct type_def {
};
struct var_def {
+ const struct type* type;
char* name;
struct storage_location loc;
const struct type_def* resolved_type;