From b844718a1687424b2748608cbb52fb4012417fe5 Mon Sep 17 00:00:00 2001 From: steven-na Date: Fri, 21 Aug 2026 16:01:34 -0700 Subject: Hashmap usable i think, now with proper 3rd party algorithm --- src/map.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index b99a306..6678ddd 100644 --- a/src/map.h +++ b/src/map.h @@ -4,7 +4,9 @@ #include "smrt_arena.h" // Hashmap structure that stores u8* keys and void* values. -// API: map_create, map_insert, map_delete, map_lookoop +// API: map_create, map_insert, map_delete, map_lookup +// There is no map_destroy. It is allocated on the arena +// Uses a5hash to hash keys. typedef struct _map_t* map_t; map_t map_create(smrt_arena_t *arena, u64 table_size); -- cgit v1.2.3