diff options
author | Eric Blake <ebb9@byu.net> | 2009-06-17 21:04:55 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-06-17 22:23:18 -0600 |
commit | f414a5002a73de9ea44dc4f81e0ecbbc26deb07f (patch) | |
tree | ffaf1aea0cad650920cd43f3e2b8af2ef48e0512 /lib/hash.h | |
parent | 14092765ada78e9ef99572192a6fd1c39ea03834 (diff) | |
download | gnulib-f414a5002a73de9ea44dc4f81e0ecbbc26deb07f.tar.gz |
hash: minor cleanups
* lib/hash.h (hash_entry): Make opaque, by moving...
* lib/hash.c (hash_entry): ...here.
(hash_insert): Clarify restrictions on what can be inserted.
(hash_get_next): Clarify when it is safe to remove an element
during traversal.
(check_tuning): Skip verification when tuning is known safe.
(hash_initialize): Clarify restrictions on tuning.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'lib/hash.h')
-rw-r--r-- | lib/hash.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/hash.h b/lib/hash.h index 2834bd2c0b..c1e60ca10f 100644 --- a/lib/hash.h +++ b/lib/hash.h @@ -42,12 +42,6 @@ typedef bool (*Hash_comparator) (const void *, const void *); typedef void (*Hash_data_freer) (void *); typedef bool (*Hash_processor) (void *, void *); -struct hash_entry - { - void *data; - struct hash_entry *next; - }; - struct hash_tuning { /* This structure is mainly used for `hash_initialize', see the block |