diff options
author | David Robillard <d@drobilla.net> | 2021-09-10 20:11:47 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-09-10 20:54:28 -0400 |
commit | 731ce39ef6fa35f64c19947bdb1719028478fdb9 (patch) | |
tree | 87304c55061fc9cd0ab1c3007a78eff44de137dc /include/zix/btree.h | |
parent | 904c1b4d699aeb1ce170f0cd996a01d2d06812e3 (diff) | |
download | zix-731ce39ef6fa35f64c19947bdb1719028478fdb9.tar.gz zix-731ce39ef6fa35f64c19947bdb1719028478fdb9.tar.bz2 zix-731ce39ef6fa35f64c19947bdb1719028478fdb9.zip |
Add custom allocator support
Diffstat (limited to 'include/zix/btree.h')
-rw-r--r-- | include/zix/btree.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/zix/btree.h b/include/zix/btree.h index 3979084..9c67dda 100644 --- a/include/zix/btree.h +++ b/include/zix/btree.h @@ -17,6 +17,7 @@ #ifndef ZIX_BTREE_H #define ZIX_BTREE_H +#include "zix/allocator.h" #include "zix/attributes.h" #include "zix/common.h" @@ -88,7 +89,9 @@ static const ZixBTreeIter zix_btree_end_iter = { */ ZIX_API ZixBTree* ZIX_ALLOCATED -zix_btree_new(ZixComparator ZIX_NONNULL cmp, const void* ZIX_NULLABLE cmp_data); +zix_btree_new(const ZixAllocator* ZIX_NULLABLE allocator, + ZixComparator ZIX_NONNULL cmp, + const void* ZIX_NULLABLE cmp_data); /** Free `t` and all the nodes it contains. |