aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib.h b/lib.h
index 19196f4..bf6181b 100644
--- a/lib.h
+++ b/lib.h
@@ -29,13 +29,9 @@ void print_error(const char *handle, size_t row, size_t column,
typedef struct Buffer
{
const char *name;
- u64 size, capacity;
+ u64 size;
u8 data[];
} buffer_t;
buffer_t *buffer_init_str(const char *name, const char *str, size_t str_size);
-bool buffer_ensure(buffer_t **buffer, u64 expected);
-bool buffer_ensure_relative(buffer_t **buffer, u64 expected);
-bool buffer_append(buffer_t **buffer, u8 datum);
-bool buffer_append_bytes(buffer_t **buffer, u8 *data, u64 size);
#endif