hash: extend module to deal with non-pointer keys
authorJim Meyering <meyering@redhat.com>
Thu, 1 Jul 2010 21:17:25 +0000 (23:17 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 1 Jul 2010 21:17:25 +0000 (23:17 +0200)
commit5bef1a3537bd22cd8be2bdd4053be617a07b64f1
treefb2ce1951dd5a1b10591c915d09fe9a7bf9b40eb
parent6e9c6242fbc14dea9d90aece11704c527b4eea60
hash: extend module to deal with non-pointer keys

* lib/hash.c (hash_insert0): New interface, much like hash_insert
but that allows insertion of non-pointer entries.
Do not disallow an ENTRY value of NULL.
(hash_insert): This is now just a thin wrapper.  Call hash_insert0.
* lib/hash.h (hash_insert0): Declare.
ChangeLog
lib/hash.c
lib/hash.h