chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/configuration.c, lib/home.c: Introduce environment variables.
[disorder]
/
lib
/
hash.c
diff --git
a/lib/hash.c
b/lib/hash.c
index 573b50aa91b9a235294a0e59338ccb474f8a0faa..9dc346950680a2d83eb7d439ac3a0d7419437e5e 100644
(file)
--- a/
lib/hash.c
+++ b/
lib/hash.c
@@
-25,6
+25,7
@@
#include "log.h"
#include "kvp.h"
#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 */
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 */
};
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 */
struct hash {
size_t nslots; /* number of slots */
size_t nitems; /* total number of entries */