summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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
diff --git a/src/lib.c b/lib/lib.c
index e6e691a..e6e691a 100644
--- a/src/lib.c
+++ b/lib/lib.c
diff --git a/src/lib.h b/lib/lib.h
index 35cbc3c..35cbc3c 100644
--- a/src/lib.h
+++ b/lib/lib.h
diff --git a/src/map.c b/lib/map.c
index 0c6d4f2..71300fb 100644
--- a/src/map.c
+++ b/lib/map.c
@@ -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>
diff --git a/src/map.h b/lib/map.h
index 6672323..d2ab6f8 100644
--- a/src/map.h
+++ b/lib/map.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);