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 ------------ src/scoped_allocator.c | 4 ---- 2 files changed, 16 deletions(-) (limited to 'src') 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; diff --git a/src/scoped_allocator.c b/src/scoped_allocator.c index bd14206..cbf1aad 100644 --- a/src/scoped_allocator.c +++ b/src/scoped_allocator.c @@ -2,11 +2,7 @@ #include "../include/alloc.h" #include -<<<<<<< HEAD -#define ALLOC_NODE_SIZE 4096 -======= #define ALLOC_NODE_SIZE 65536 ->>>>>>> Fixed CHECK_RESULT macro, use scoped allocator int scoped_allocator_node_init(ScopedAllocatorNode *self) { self->data = NULL; -- cgit v1.2.3