From 19235b7127bcf5597fb0436deb45c2e6af5843c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Sep 2021 17:19:12 -0400 Subject: Make ZixAllocator a single flat struct I can never decide between these two patterns for polymorphic objects in C, but this one seems more appropriate here since it's more conducive to inheritance. --- include/zix/hash.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/zix/hash.h') diff --git a/include/zix/hash.h b/include/zix/hash.h index 7ec9f92..9716123 100644 --- a/include/zix/hash.h +++ b/include/zix/hash.h @@ -121,10 +121,10 @@ typedef struct { */ ZIX_API ZixHash* ZIX_ALLOCATED -zix_hash_new(const ZixAllocator* ZIX_NULLABLE allocator, - ZixKeyFunc ZIX_NONNULL key_func, - ZixHashFunc ZIX_NONNULL hash_func, - ZixKeyEqualFunc ZIX_NONNULL equal_func); +zix_hash_new(ZixAllocator* ZIX_NULLABLE allocator, + ZixKeyFunc ZIX_NONNULL key_func, + ZixHashFunc ZIX_NONNULL hash_func, + ZixKeyEqualFunc ZIX_NONNULL equal_func); /// Free `hash` ZIX_API -- cgit v1.2.1