From de59dbd1773dff06051b7b604977bcb2803ada4f Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Fri, 23 May 2025 11:25:29 +0200 Subject: [cleanup] ast --- include/hashmap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/hashmap.h') 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. -- cgit v1.2.3