From dedf8b645ad676e7947c83f320198d43f4341570 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Nov 2022 16:30:44 -0400 Subject: Remove function_types.h --- src/tree.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/tree.c') 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 @@ -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)); -- cgit v1.2.1