diff options
| author | Mosder <git@mosder.eu> | 2026-09-28 13:27:35 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-28 13:27:35 +0200 |
| commit | 7a1f842b91af4f916501eaea991b897e3db4c502 (patch) | |
| tree | c2e9c5180a45585ff9e61158a4395ca066050a01 /tests/ds | |
| parent | b79ccf95459e7edb303dabfe3a26e624bd9d8679 (diff) | |
refactor: prefixed compat functions (and added a macro to libc implementations - if they exist), so they do not take reserved names anymore
Diffstat (limited to 'tests/ds')
| -rw-r--r-- | tests/ds/hashmap_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ds/hashmap_tests.c b/tests/ds/hashmap_tests.c index 72965b4..bc1a145 100644 --- a/tests/ds/hashmap_tests.c +++ b/tests/ds/hashmap_tests.c @@ -99,7 +99,7 @@ TEST(str_key) { E *hm = hm_new(.key = HM_STR); char *str = "key"; - char *str2 = strdup(str); + char *str2 = mos_strdup(str); hm_put(hm, str, 69); hm_put(hm, "hey", 420); test_assert(hm_get(hm, str2) == 69, "hm_get got value not from hm_put"); @@ -117,7 +117,7 @@ TEST(ss_key) { E *hm = hm_new(.key = HM_SS); char *str = "key"; - char *str2 = strdup(str); + char *str2 = mos_strdup(str); StringSlice ss = ss_from_str(str); StringSlice ss2 = ss_from_str(str2); hm_put(hm, ss, 69); |
