summaryrefslogtreecommitdiffstats
path: root/include/zix/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/zix/hash.h')
-rw-r--r--include/zix/hash.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/zix/hash.h b/include/zix/hash.h
index e425b9f..6cd2271 100644
--- a/include/zix/hash.h
+++ b/include/zix/hash.h
@@ -28,14 +28,14 @@ ZIX_BEGIN_DECLS
#if defined(ZIX_HASH_KEY_TYPE)
typedef ZIX_HASH_KEY_TYPE ZixHashKey;
#else
-typedef void ZixHashKey; ///< The type of a key within a record
+typedef void ZixHashKey; ///< The type of a key within a record
#endif
// ZIX_HASH_RECORD_TYPE can be defined to make the API more type-safe
#if defined(ZIX_HASH_RECORD_TYPE)
typedef ZIX_HASH_RECORD_TYPE ZixHashRecord;
#else
-typedef void ZixHashRecord; ///< The type of a hash table record
+typedef void ZixHashRecord; ///< The type of a hash table record
#endif
// ZIX_HASH_SEARCH_DATA_TYPE can be defined to make the API more type-safe
@@ -103,6 +103,7 @@ typedef bool (*ZixKeyEqualFunc)(const ZixHashKey* ZIX_NONNULL a,
@param equal_func A function to test keys for equality.
*/
ZIX_API
+ZIX_NODISCARD
ZixHash* ZIX_ALLOCATED
zix_hash_new(ZixAllocator* ZIX_NULLABLE allocator,
ZixKeyFunc ZIX_NONNULL key_func,