summaryrefslogtreecommitdiffstats
path: root/src/tree.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-02 16:30:44 -0400
committerDavid Robillard <d@drobilla.net>2022-11-02 17:31:55 -0400
commitdedf8b645ad676e7947c83f320198d43f4341570 (patch)
treed0bb9cf6033437020e8e75aa8f7d6bbe8b4b51c0 /src/tree.c
parent4f454ff117cac82c4ce86fc22d37fd317e925a18 (diff)
downloadzix-dedf8b645ad676e7947c83f320198d43f4341570.tar.gz
zix-dedf8b645ad676e7947c83f320198d43f4341570.tar.bz2
zix-dedf8b645ad676e7947c83f320198d43f4341570.zip
Remove function_types.h
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/tree.c b/src/tree.c
index a362ea8..3c705c6 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -3,7 +3,6 @@
#include "zix/tree.h"
-#include "zix/function_types.h"
#include "zix/status.h"
#include <assert.h>
@@ -11,14 +10,14 @@
typedef struct ZixTreeNodeImpl ZixTreeNode;
struct ZixTreeImpl {
- ZixAllocator* allocator;
- ZixTreeNode* root;
- ZixDestroyFunc destroy;
- const void* destroy_user_data;
- ZixCompareFunc cmp;
- void* cmp_data;
- size_t size;
- bool allow_duplicates;
+ ZixAllocator* allocator;
+ ZixTreeNode* root;
+ ZixTreeDestroyFunc destroy;
+ const void* destroy_user_data;
+ ZixTreeCompareFunc cmp;
+ void* cmp_data;
+ size_t size;
+ bool allow_duplicates;
};
struct ZixTreeNodeImpl {
@@ -53,9 +52,9 @@ zix_tree_noop_destroy(void* const ptr, const void* const user_data)
ZixTree*
zix_tree_new(ZixAllocator* const allocator,
bool allow_duplicates,
- ZixCompareFunc cmp,
+ ZixTreeCompareFunc cmp,
void* cmp_data,
- ZixDestroyFunc destroy,
+ ZixTreeDestroyFunc destroy,
const void* destroy_user_data)
{
ZixTree* t = (ZixTree*)zix_malloc(allocator, sizeof(ZixTree));