diff options
| author | Mosder <git@mosder.eu> | 2026-09-17 12:37:01 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-17 12:37:11 +0200 |
| commit | de163fe7ee64e63d36dd581db16c776831cbead0 (patch) | |
| tree | 57f9861bd63a5479c8ee1d829a00d3b4ab053bba /src/ds/hashmap.c | |
| parent | 33e2e9d8aff7ee16aa5c071df93d6f9c0a37e53f (diff) | |
feat: improved compatibility - removed possible duplicate names, exit tests now create a fork instead of relying on being able to overwrite exit function, made tester only output ASCII escape sequences for colour into a tty
Diffstat (limited to 'src/ds/hashmap.c')
| -rw-r--r-- | src/ds/hashmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ds/hashmap.c b/src/ds/hashmap.c index a983fc2..a08ce70 100644 --- a/src/ds/hashmap.c +++ b/src/ds/hashmap.c @@ -117,15 +117,15 @@ void *mos_hm_new_fn(MosHmNewArgs args) { hdr->n_dead = 0; switch (args.key) { - case DEFAULT: + case MOS_HM_DEFAULT: hdr->hash = NULL; hdr->eq = NULL; break; - case STR: + case MOS_HM_STR: hdr->hash = string_hash; hdr->eq = string_eq; break; - case SS: + case MOS_HM_SS: hdr->hash = slice_hash; hdr->eq = slice_eq; break; |
