summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/scope.h b/scope.h
index 72b342c..4f7ac3a 100644
--- a/scope.h
+++ b/scope.h
@@ -3,6 +3,7 @@
#include "ccc.h"
#include "type.h"
+#include "hashmap.h"
struct storage_location {
enum {
@@ -36,14 +37,8 @@ struct var_def {
};
struct scope {
- struct type_alias** types;
- integral_t type_sz;
- integral_t type_cap;
-
- struct var_def** vars;
- integral_t var_sz;
- integral_t var_cap;
-
+ struct hash_map types;
+ struct hash_map vars;
struct scope* next_out;
integral_t bp_offset;
};