aboutsummaryrefslogtreecommitdiff
path: root/include/hashmap.h
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-23 11:25:29 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-23 11:25:29 +0200
commitde59dbd1773dff06051b7b604977bcb2803ada4f (patch)
tree60be4de19aa7be4d4d99136c2bfbb824edfa2d90 /include/hashmap.h
parent987a7c553701251d48b11a2243892ecd74ce6c4d (diff)
downloadimp-de59dbd1773dff06051b7b604977bcb2803ada4f.tar.gz
imp-de59dbd1773dff06051b7b604977bcb2803ada4f.zip
[cleanup] ast
Diffstat (limited to 'include/hashmap.h')
-rw-r--r--include/hashmap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hashmap.h b/include/hashmap.h
index 57ebafe..7cc20b1 100644
--- a/include/hashmap.h
+++ b/include/hashmap.h
@@ -7,6 +7,7 @@ typedef struct HashMap *hashmap_t;
/* Hashmap Key Iterator Handle */
typedef struct HashMapKeysIter *hashmap_keys_iter_t;
+
/*
Creates hashmap that maps char* to void*.
Keys are copied, and will be freed when the hashmap is freed.
@@ -31,7 +32,7 @@ void **hashmap_get(hashmap_t map, const char *key);
Inserts element with given key.
If key already exists, the old element is replaced (caller is responsible for freeing beforehand).
*/
-void hashmap_insert(hashmap_t map, const char *key, void *value);
+void hashmap_insert(hashmap_t map, const char *key, void *element);
/*
Deletes element with given key.