diff options
| author | Carson Fleming <cflems@cflems.net> | 2026-08-04 23:52:08 -0400 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2026-08-04 23:52:08 -0400 |
| commit | b6861148021df1682f424d3ce8e8051b80889b03 (patch) | |
| tree | d36a8dc9853ba7eddd58acf814a1caf9c0e1acfa /scope.h | |
| parent | ebe7f44385c4be54afd2993d54ce6352f612f9fa (diff) | |
| download | ccc-b6861148021df1682f424d3ce8e8051b80889b03.tar.gz | |
unify hashmap type
Diffstat (limited to 'scope.h')
| -rw-r--r-- | scope.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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; }; |
