summaryrefslogtreecommitdiffstats
path: root/src/tree.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-20 21:34:22 -0400
committerDavid Robillard <d@drobilla.net>2022-10-21 12:45:39 -0400
commit2ff624eae24742faf17889f858dbdaa6d4a064ea (patch)
tree63fff58c10051292e82bb0b031f41d8769e56629 /src/tree.c
parentd072adfbe40e15715e2065f1900f8d5a76491c5f (diff)
downloadzix-2ff624eae24742faf17889f858dbdaa6d4a064ea.tar.gz
zix-2ff624eae24742faf17889f858dbdaa6d4a064ea.tar.bz2
zix-2ff624eae24742faf17889f858dbdaa6d4a064ea.zip
Split up common header
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tree.c b/src/tree.c
index 2c66dfc..a362ea8 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -3,7 +3,8 @@
#include "zix/tree.h"
-#include "zix/common.h"
+#include "zix/function_types.h"
+#include "zix/status.h"
#include <assert.h>
@@ -14,7 +15,7 @@ struct ZixTreeImpl {
ZixTreeNode* root;
ZixDestroyFunc destroy;
const void* destroy_user_data;
- ZixComparator cmp;
+ ZixCompareFunc cmp;
void* cmp_data;
size_t size;
bool allow_duplicates;
@@ -52,7 +53,7 @@ zix_tree_noop_destroy(void* const ptr, const void* const user_data)
ZixTree*
zix_tree_new(ZixAllocator* const allocator,
bool allow_duplicates,
- ZixComparator cmp,
+ ZixCompareFunc cmp,
void* cmp_data,
ZixDestroyFunc destroy,
const void* destroy_user_data)