From 204a1cc2b01ed3f18cb3e33bd6aa756d1f99dda8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 24 Feb 2019 18:29:26 +0100 Subject: Fix rebase error --- src/buffer.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index 490418a..ad50771 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -10,19 +10,7 @@ int buffer_init(Buffer *self, ScopedAllocator *allocator, usize initial_capacity return scoped_allocator_alloc(self->allocator, initial_capacity, (void**)&self->data); } -<<<<<<< HEAD -void buffer_deinit(Buffer *self) { - am_free(self->data); - self->data = NULL; - self->size = 0; - self->capacity = 0; -} - -static CHECK_RESULT int buffer_ensure_capacity_for(Buffer *self, usize size) { - usize capacity; -======= static CHECK_RESULT int buffer_ensure_capacity_for(Buffer *self, usize size) { ->>>>>>> Fixed CHECK_RESULT macro, use scoped allocator void *new_mem; int alloc_result; usize new_capacity; -- cgit v1.2.3