4 * @brief Generic hashset functions
5 * @author Matthias Braun
9 /* You have to specialize this header by defining HashSet, HashSetIterator and
16 #define HashSetEntry ValueType
18 typedef struct HashSetEntry {
25 typedef struct HashSet HashSet;
26 typedef struct HashSetIterator HashSetIterator;
30 HashSetEntry *entries;
32 size_t enlarge_threshold;
33 size_t shrink_threshold;
38 unsigned entries_version;
40 #ifdef ADDITIONAL_DATA
45 struct HashSetIterator {
46 HashSetEntry *current_bucket;
50 unsigned entries_version;