diff options
author | David Robillard <d@drobilla.net> | 2022-10-20 21:34:22 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-21 12:45:39 -0400 |
commit | 2ff624eae24742faf17889f858dbdaa6d4a064ea (patch) | |
tree | 63fff58c10051292e82bb0b031f41d8769e56629 /src/tree.c | |
parent | d072adfbe40e15715e2065f1900f8d5a76491c5f (diff) | |
download | zix-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |