X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/34d37b3e2d05e305469a58166ff21c867c6f610b..0a066775fe988ab36bd72583cf34d14784039fe3:/lib/hash.c diff --git a/lib/hash.c b/lib/hash.c index 573b50a..9dc3469 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -25,6 +25,7 @@ #include "log.h" #include "kvp.h" +/** @brief One entry in a hash table */ struct entry { struct entry *next; /* next entry same key */ size_t h; /* hash of KEY */ @@ -32,6 +33,7 @@ struct entry { void *value; /* value of this entry */ }; +/** @brief A hash table */ struct hash { size_t nslots; /* number of slots */ size_t nitems; /* total number of entries */