summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-08-21 16:01:34 -0700
committersteven-na <noreply.github@stvnc.dev>2026-08-21 16:01:34 -0700
commitb844718a1687424b2748608cbb52fb4012417fe5 (patch)
tree7844c634269e25992e9267a6b94467ffe9c7abb4 /src/map.h
parent4b73fa11fbbbd43fe5292bdd9dce4abcbb514318 (diff)
Hashmap usable i think, now with proper 3rd party algorithm
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 3 insertions, 1 deletions
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);