From 85ba301f52b1c7e1ad928803b14b6c70776f2235 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 16 Dec 2023 11:47:59 -0500 Subject: use hashmap for compound tag --- src/map.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/map.h (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h new file mode 100644 index 0000000..6672323 --- /dev/null +++ b/src/map.h @@ -0,0 +1,15 @@ +#pragma once + +#include + +typedef struct tag_t tag_t; + +typedef struct { + uint32_t len; + uint32_t capacity; + tag_t *entries; +} map_t; + +void map_init(map_t *map); +void map_free(map_t *map); +void map_put(map_t *map, tag_t *tag); -- cgit v1.2.3-freya