From b6861148021df1682f424d3ce8e8051b80889b03 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Tue, 4 Aug 2026 23:52:08 -0400 Subject: unify hashmap type --- scope.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'scope.h') 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; }; -- cgit v1.2.3