diff options
| author | ame <[email protected]> | 2024-03-11 14:02:12 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-03-11 14:02:12 -0500 |
| commit | 2a3575134b386b60bafbf59d6475cf45ded7d4e3 (patch) | |
| tree | 36570aa190e64b57c69c10e0cf0e3c1eb880bc92 /src/types/map.h | |
| parent | 05ae1fc2fef778138bb3a136340dd923ca9687a0 (diff) | |
hashing fixes
Diffstat (limited to 'src/types/map.h')
| -rw-r--r-- | src/types/map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/types/map.h b/src/types/map.h index cb8fed2..efa6d65 100644 --- a/src/types/map.h +++ b/src/types/map.h @@ -10,6 +10,7 @@ typedef struct { void* value; str* key; uint64_t hash; + int used; } melem_t; typedef struct { @@ -19,7 +20,7 @@ typedef struct { } map_t; map_t* map_init(); -void map_set(map_t*, char*, void*); +void map_set(map_t**, char*, void*); void* map_get(map_t* , char*); int map_geti(map_t* , char*); void map_remove(map_t* p, char* key, enum free_type free); |
