Re: [PATCH] Add hash_contains function

2010-02-14 Thread Colin Watson
On Sun, Feb 14, 2010 at 03:02:14PM +0100, Jim Meyering wrote: > Colin Watson wrote: > > I looked at converting man-db to use Gnulib's hash implementation rather > > than its own. One obstacle seems to be that there is one place where > > man-db cares about the difference between a key not being in

Re: [PATCH] Add hash_contains function

2010-02-14 Thread Jim Meyering
Colin Watson wrote: > I looked at converting man-db to use Gnulib's hash implementation rather > than its own. One obstacle seems to be that there is one place where > man-db cares about the difference between a key not being in the hash at > all, and a key being in the hash but with a NULL value

[PATCH] Add hash_contains function

2010-02-13 Thread Colin Watson
I looked at converting man-db to use Gnulib's hash implementation rather than its own. One obstacle seems to be that there is one place where man-db cares about the difference between a key not being in the hash at all, and a key being in the hash but with a NULL value (in Perl syntax, the differe