From 7043a93eba78a37460b66abcabf3707022bd0181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 4 Jan 2021 23:21:54 +0100 Subject: Hashtable: hide implementation of Hashtable and HashtableItem --- Hashtable.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Hashtable.c') diff --git a/Hashtable.c b/Hashtable.c index 4f08c162..8dd5cffd 100644 --- a/Hashtable.c +++ b/Hashtable.c @@ -19,6 +19,20 @@ in the source distribution for its full text. #include "XUtils.h" +typedef struct HashtableItem_ { + ht_key_t key; + unsigned int probe; + void* value; +} HashtableItem; + +struct Hashtable_ { + unsigned int size; + HashtableItem* buckets; + unsigned int items; + bool owner; +}; + + #ifndef NDEBUG static void Hashtable_dump(const Hashtable* this) { -- cgit v1.2.3