From 5df7f92e715ba764ee57f65d78e73111492bb64c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 20 Mar 2019 18:53:47 +0100 Subject: Add pub keyword, more import stuff, optimize hash map Hash map now stores hash of keys to reduce the number of hash operations. Positive: faster insert/get. Negative: more space required (to store usize hash). --- tests/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/main.c') diff --git a/tests/main.c b/tests/main.c index 2b57bcf..0dfd878 100644 --- a/tests/main.c +++ b/tests/main.c @@ -41,6 +41,7 @@ static CHECK_RESULT int test_hash_map() { return 0; } +/* TODO: Restrict variables in global scope to const */ int main() { amal_compiler compiler; FileScopeReference *file_scope; -- cgit v1.2.3