summaryrefslogtreecommitdiffstats
path: root/Hashtable.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-04 23:20:36 +0100
committercgzones <cgzones@googlemail.com>2021-01-06 16:59:28 +0100
commit8fe04b7494fe0b8062e9afe4cf784db7f33bd5cd (patch)
treedd1f0ee3caebe50da4a2db46b0f75819bb6110a4 /Hashtable.c
parent43d5c61884e7cd5229d3be2ae038f5a148742247 (diff)
Hashtable: use more distinct typename for key type
Diffstat (limited to 'Hashtable.c')
-rw-r--r--Hashtable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Hashtable.c b/Hashtable.c
index 1beb2bb2..4f08c162 100644
--- a/Hashtable.c
+++ b/Hashtable.c
@@ -124,7 +124,7 @@ void Hashtable_clear(Hashtable* this) {
assert(Hashtable_isConsistent(this));
}
-static void insert(Hashtable* this, hkey_t key, void* value) {
+static void insert(Hashtable* this, ht_key_t key, void* value) {
unsigned int index = key % this->size;
unsigned int probe = 0;
#ifndef NDEBUG
@@ -194,7 +194,7 @@ void Hashtable_setSize(Hashtable* this, unsigned int size) {
assert(Hashtable_isConsistent(this));
}
-void Hashtable_put(Hashtable* this, hkey_t key, void* value) {
+void Hashtable_put(Hashtable* this, ht_key_t key, void* value) {
assert(Hashtable_isConsistent(this));
assert(this->size > 0);
@@ -211,7 +211,7 @@ void Hashtable_put(Hashtable* this, hkey_t key, void* value) {
assert(this->size > this->items);
}
-void* Hashtable_remove(Hashtable* this, hkey_t key) {
+void* Hashtable_remove(Hashtable* this, ht_key_t key) {
unsigned int index = key % this->size;
unsigned int probe = 0;
#ifndef NDEBUG
@@ -266,7 +266,7 @@ void* Hashtable_remove(Hashtable* this, hkey_t key) {
return res;
}
-void* Hashtable_get(Hashtable* this, hkey_t key) {
+void* Hashtable_get(Hashtable* this, ht_key_t key) {
unsigned int index = key % this->size;
unsigned int probe = 0;
void* res = NULL;

© 2014-2024 Faster IT GmbH | imprint | privacy policy