aboutsummaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-02-27 22:26:35 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit76d85a10f6cda93eba29dad5372e8160af7289c8 (patch)
treecfec3043ec45a5e83494ec109e87c239dad6cc47 /src/alloc.c
parent8201cd9f40897cf6b8e6973b28a8661108702ab1 (diff)
Use multiple threads to parse
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/alloc.c b/src/alloc.c
deleted file mode 100644
index c9ca7c3..0000000
--- a/src/alloc.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "../include/alloc.h"
-#include <stdlib.h>
-
-int am_malloc(usize size, void **mem) {
- void *allocated_data = malloc(size);
- if(!allocated_data)
- return ALLOC_FAIL;
-
- *mem = allocated_data;
- return ALLOC_OK;
-}
-
-int am_realloc(void *mem, usize new_size, void **new_mem) {
- void *new_allocated_data = realloc(mem, new_size);
- if(!new_allocated_data)
- return ALLOC_FAIL;
-
- *new_mem = new_allocated_data;
- return ALLOC_OK;
-}
-
-void am_free(void *mem) {
- free(mem);
-}
-