From 8fe04b7494fe0b8062e9afe4cf784db7f33bd5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 4 Jan 2021 23:20:36 +0100 Subject: Hashtable: use more distinct typename for key type --- Hashtable.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Hashtable.h') diff --git a/Hashtable.h b/Hashtable.h index 6d934784..698d2cfc 100644 --- a/Hashtable.h +++ b/Hashtable.h @@ -10,12 +10,12 @@ in the source distribution for its full text. #include -typedef unsigned int hkey_t; +typedef unsigned int ht_key_t; -typedef void(*Hashtable_PairFunction)(hkey_t key, void* value, void* userdata); +typedef void(*Hashtable_PairFunction)(ht_key_t key, void* value, void* userdata); typedef struct HashtableItem_ { - hkey_t key; + ht_key_t key; unsigned int probe; void* value; } HashtableItem; @@ -41,11 +41,11 @@ void Hashtable_clear(Hashtable* this); void Hashtable_setSize(Hashtable* this, unsigned int size); -void Hashtable_put(Hashtable* this, hkey_t key, void* value); +void Hashtable_put(Hashtable* this, ht_key_t key, void* value); -void* Hashtable_remove(Hashtable* this, hkey_t key); +void* Hashtable_remove(Hashtable* this, ht_key_t key); -void* Hashtable_get(Hashtable* this, hkey_t key); +void* Hashtable_get(Hashtable* this, ht_key_t key); void Hashtable_foreach(Hashtable* this, Hashtable_PairFunction f, void* userData); -- cgit v1.2.3