aboutsummaryrefslogtreecommitdiff
path: root/lib/alloc/heapalloc.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-09 02:48:06 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-09 02:48:06 +0200
commit085b77730a553ce9769fcc76b68772dbde564004 (patch)
tree328ae4f715300cb5c028ad0e7ffc2e13a5c9c72a /lib/alloc/heapalloc.c
parent20fa17a5f2a286f44bdafff6dc4bb58e7667fe46 (diff)
Add custom allocator support to u8upper()
Diffstat (limited to 'lib/alloc/heapalloc.c')
-rw-r--r--lib/alloc/heapalloc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/alloc/heapalloc.c b/lib/alloc/heapalloc.c
deleted file mode 100644
index 0a698f0..0000000
--- a/lib/alloc/heapalloc.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <stdlib.h>
-
-#include "alloc.h"
-
-void *
-heapalloc(void *, void *ptr, size_t, size_t new)
-{
- if (new > 0)
- return realloc(ptr, new);
- free(ptr);
- return nullptr;
-}