summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ktrans/hash.h
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-07-17 17:51:11 +0000
committerJacob Moody <moody@posixcafe.org>2022-07-17 17:51:11 +0000
commit0ec0154bc9da3c0b48f2f2cae08347129a8ec3d4 (patch)
treede865c2f18c3042f8f77bffc20e81d9dbfc67f9f /sys/src/cmd/ktrans/hash.h
parent23620b2e70e9de0ce31c6f4f21926a044c5deabc (diff)
ktrans: don't leak on conflicting jisho lines
Tidy up the hash interface to make cleanup a bit more explicit vs non cleanup.
Diffstat (limited to 'sys/src/cmd/ktrans/hash.h')
-rw-r--r--sys/src/cmd/ktrans/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/ktrans/hash.h b/sys/src/cmd/ktrans/hash.h
index 66e9e78db..bf9daa8c6 100644
--- a/sys/src/cmd/ktrans/hash.h
+++ b/sys/src/cmd/ktrans/hash.h
@@ -16,8 +16,8 @@ struct Hmap {
Hmap* hmapalloc(int nbuckets, int size);
int hmapget(Hmap *h, char *key, void *dst);
-int hmapset(Hmap **h, char *key, void *new, void *old);
+int hmaprepl(Hmap **h, char *key, void *new, void *old, int freekeys);
+int hmapupd(Hmap **h, char *key, void *new);
int hmapdel(Hmap *h, char *key, void *dst, int freekey);
-void hmapfree(Hmap *h, int freekeys);
char* hmapkey(Hmap *h, char *key);
void hmapreset(Hmap *h, int freekeys);