From 76d85a10f6cda93eba29dad5372e8160af7289c8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 27 Feb 2019 22:26:35 +0100 Subject: Use multiple threads to parse --- include/std/alloc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/std/alloc.h (limited to 'include/std/alloc.h') diff --git a/include/std/alloc.h b/include/std/alloc.h new file mode 100644 index 0000000..6809287 --- /dev/null +++ b/include/std/alloc.h @@ -0,0 +1,14 @@ +#ifndef AMALGAM_ALLOC_H +#define AMALGAM_ALLOC_H + +#include "types.h" +#include "misc.h" + +#define ALLOC_OK 0 +#define ALLOC_FAIL -1 + +CHECK_RESULT int am_malloc(usize size, void **mem); +CHECK_RESULT int am_realloc(void *mem, usize new_size, void **new_mem); +void am_free(void *mem); + +#endif -- cgit v1.2.3