diff options
author | Freya Murphy <freya@freyacat.org> | 2023-12-16 11:47:59 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2023-12-16 11:47:59 -0500 |
commit | 85ba301f52b1c7e1ad928803b14b6c70776f2235 (patch) | |
tree | 28902147b9bf6c393497e21b0cb21c8b957aa3e2 /src/tag.h | |
parent | fix hang on incomplete json ident (diff) | |
download | nbtvis-85ba301f52b1c7e1ad928803b14b6c70776f2235.tar.gz nbtvis-85ba301f52b1c7e1ad928803b14b6c70776f2235.tar.bz2 nbtvis-85ba301f52b1c7e1ad928803b14b6c70776f2235.zip |
use hashmap for compound tag
Diffstat (limited to 'src/tag.h')
-rw-r--r-- | src/tag.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,6 +1,7 @@ #pragma once #include "stream.h" +#include "map.h" #include <stdint.h> #include <stdbool.h> @@ -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; |