aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-08 12:32:10 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-08 12:32:10 +0200
commit8f6d296a23675687177afd697cb28d195252466e (patch)
treed678a6cf14e5faa59c2b22459300e6d3477bb0ef /include
parent30e8e14cba8b278cbb15ff74d9447482e828b7aa (diff)
Add a heap allocator
Diffstat (limited to 'include')
-rw-r--r--include/alloc.h1
1 files changed, 1 insertions, 0 deletions
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