From 76d85a10f6cda93eba29dad5372e8160af7289c8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 27 Feb 2019 22:26:35 +0100 Subject: Use multiple threads to parse --- include/buffer.h | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 include/buffer.h (limited to 'include/buffer.h') diff --git a/include/buffer.h b/include/buffer.h deleted file mode 100644 index 5339108..0000000 --- a/include/buffer.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef AMALGAM_BUFFER_H -#define AMALGAM_BUFFER_H - -#include "types.h" -#include "misc.h" - -#define BUFFER_OK 0 -#define BUFFER_ALLOC_FAIL -1 - -typedef struct { - char* data; - usize size; - usize capacity; -} Buffer; - -struct ScopedAllocator; -CHECK_RESULT int buffer_init(Buffer *self, struct ScopedAllocator *allocator); - -CHECK_RESULT int buffer_append(Buffer *self, void *data, usize size); -void* buffer_get(Buffer *self, usize index, usize type_size); - -#endif \ No newline at end of file -- cgit v1.2.3