From 71b10c1c765196a771ce05216395d6b78892a735 Mon Sep 17 00:00:00 2001 From: Quinn Stephens Date: Sun, 3 Nov 2024 16:53:16 -0500 Subject: [compiler] More small refactoring Signed-off-by: Quinn Stephens --- include/hashmap.h | 1 + include/parser/type.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') 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 #include #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 */ -- cgit v1.2.3