diff options
author | Quinn Stephens <quinn@osmora.org> | 2024-11-03 16:53:16 -0500 |
---|---|---|
committer | Quinn Stephens <quinn@osmora.org> | 2024-11-03 16:53:16 -0500 |
commit | 71b10c1c765196a771ce05216395d6b78892a735 (patch) | |
tree | ea88735919caebb6500d0b3ae78820c083048e25 /include | |
parent | 388025e5a7d2d7997926c6a9af8767ca9ccb12bf (diff) |
[compiler] More small refactoring
Signed-off-by: Quinn Stephens <quinn@osmora.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hashmap.h | 1 | ||||
-rw-r--r-- | include/parser/type.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/hashmap.h b/include/hashmap.h index 26dfc61..3663754 100644 --- a/include/hashmap.h +++ b/include/hashmap.h @@ -29,6 +29,7 @@ hashmap_remove(struct hashmap_entry *entry) void hashmap_add(struct hashmap *map, struct hashmap_entry *entry); struct hashmap_entry *hashmap_find(struct hashmap *map, hash_t hash); +void hashmap_free_entries(struct hashmap *map); void hashmap_init(struct hashmap *map); #endif /* !_HASHMAP_H */ diff --git a/include/parser/type.h b/include/parser/type.h index 6a939ab..b4c16cb 100644 --- a/include/parser/type.h +++ b/include/parser/type.h @@ -7,6 +7,7 @@ #ifndef _PARSER_TYPE_H #define _PARSER_TYPE_H +#include <stdbool.h> #include <stddef.h> #include "hashmap.h" #include "parser.h" @@ -53,5 +54,6 @@ struct type { }; void parse_type(struct parser *ctx); +bool parse_type_ref(struct parser *ctx, struct type **typ_out, int *n_ptrs_out); #endif /* !_PARSER_TYPE_H */ |