diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lib.c (renamed from src/lib.c) | 0 | ||||
-rw-r--r-- | lib/lib.h (renamed from src/lib.h) | 0 | ||||
-rw-r--r-- | lib/map.c (renamed from src/map.c) | 5 | ||||
-rw-r--r-- | lib/map.h (renamed from src/map.h) | 6 | ||||
-rw-r--r-- | lib/stream.c (renamed from src/stream.c) | 0 | ||||
-rw-r--r-- | lib/stream.h (renamed from src/stream.h) | 2 |
6 files changed, 6 insertions, 7 deletions
@@ -1,7 +1,8 @@ -#include "map.h" #include "lib.h" -#include "tag.h" +#include "nbt.h" +#include "map.h" +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -2,14 +2,14 @@ #include <stdint.h> -typedef struct tag_t tag_t; +struct tag_t; typedef struct { uint32_t len; uint32_t capacity; - tag_t *entries; + struct 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); +void map_put(map_t *map, struct tag_t *tag); diff --git a/src/stream.c b/lib/stream.c index 6780d02..6780d02 100644 --- a/src/stream.c +++ b/lib/stream.c diff --git a/src/stream.h b/lib/stream.h index 7dc5407..d9a05ce 100644 --- a/src/stream.h +++ b/lib/stream.h @@ -7,8 +7,6 @@ typedef struct { FILE *__file; bool __alloc; - char peakbuf[16]; - int peakamt; } stream_t; stream_t stream_open(const char *path, const char* mode); |