From 8f6d296a23675687177afd697cb28d195252466e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 8 May 2024 12:32:10 +0200 Subject: Add a heap allocator --- include/alloc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/alloc.h b/include/alloc.h index bcee92f..3074b27 100644 --- a/include/alloc.h +++ b/include/alloc.h @@ -22,6 +22,7 @@ typedef struct { [[nodiscard, gnu::returns_nonnull]] void *bufalloc(void *, size_t, size_t); [[nodiscard]] void *bufalloc_noterm(void *, size_t, size_t); +[[nodiscard]] void *heapalloc(void *, void *, size_t, size_t); [[_mlib_pure, _mlib_inline]] static inline arena -- cgit v1.2.3