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/tag.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/tag.h') diff --git a/src/tag.h b/src/tag.h index d0033a5..81d1950 100644 --- a/src/tag.h +++ b/src/tag.h @@ -1,6 +1,7 @@ #pragma once #include "stream.h" +#include "map.h" #include #include @@ -46,10 +47,7 @@ typedef union { int32_t size; struct tag_t *tags; } list; - struct { - int32_t size; - struct tag_t *tags; - } compound; + map_t compound; struct { int32_t size; int32_t *data; -- cgit v1.2.3-freya