aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-02-24 18:29:26 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit204a1cc2b01ed3f18cb3e33bd6aa756d1f99dda8 (patch)
treec51cf47303f852cb910a68bb3255dc3d9b321781
parenta27a3e6ae09e8396584c95a3567b145e86d8bc40 (diff)
Fix rebase error
-rw-r--r--src/buffer.c12
-rw-r--r--src/scoped_allocator.c4
2 files changed, 0 insertions, 16 deletions
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 <assert.h>
-<<<<<<< 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;