From 4f454ff117cac82c4ce86fc22d37fd317e925a18 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Nov 2022 16:24:08 -0400 Subject: Relax nullability constraints for Tree values --- include/zix/tree.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/zix') diff --git a/include/zix/tree.h b/include/zix/tree.h index 939385b..8114c97 100644 --- a/include/zix/tree.h +++ b/include/zix/tree.h @@ -32,7 +32,7 @@ ZixTree* ZIX_ALLOCATED zix_tree_new(ZixAllocator* ZIX_NULLABLE allocator, bool allow_duplicates, ZixCompareFunc ZIX_NONNULL cmp, - void* ZIX_NULLABLE cmp_data, + void* ZIX_UNSPECIFIED cmp_data, ZixDestroyFunc ZIX_NULLABLE destroy, const void* ZIX_NULLABLE destroy_user_data); @@ -50,7 +50,7 @@ zix_tree_size(const ZixTree* ZIX_NONNULL t); ZIX_API ZixStatus zix_tree_insert(ZixTree* ZIX_NONNULL t, - void* ZIX_NULLABLE e, + void* ZIX_UNSPECIFIED e, ZixTreeIter* ZIX_NULLABLE* ZIX_NULLABLE ti); /// Remove the item pointed at by `ti` from `t` @@ -66,12 +66,12 @@ zix_tree_remove(ZixTree* ZIX_NONNULL t, ZixTreeIter* ZIX_NONNULL ti); ZIX_API ZixStatus zix_tree_find(const ZixTree* ZIX_NONNULL t, - const void* ZIX_NULLABLE e, + const void* ZIX_UNSPECIFIED e, ZixTreeIter* ZIX_NULLABLE* ZIX_NONNULL ti); /// Return the data associated with the given tree item ZIX_PURE_API -void* ZIX_NULLABLE +void* ZIX_UNSPECIFIED zix_tree_get(const ZixTreeIter* ZIX_NULLABLE ti); /// Return an iterator to the first (smallest) element in `t` -- cgit v1.2.1