Mail Archives: djgpp-workers/2005/01/29/13:07:41
Hello.
ams AT ludd DOT ltu DOT se wrote:
> Here's my implementation of hcreate(), hdestroy() and hsearch() plus
> the hash function _hash2v().
>
> Some points:
>
> * I'm adding the functional category "search" to libc's
> documentation. I've put hcreate(), hdestroy() and hsearch() in that
> category. I'll move lfind(), lsearch(), insque() and remque() to that
> catetory if you're ok with the new category.
How about a "data structures" category? insque and remque don't really
seem related to searching.
> * I put the hash function hsearch() uses in posix/search/ and
> <search.h> as its whole reason for being is that hsearch() calls
> it. (Originally it was a static function in hcreate.c but I thought
> that there's no reason for hiding it.) Is that ok, or do you perfer to
> have it somewhere else?
I don't have an opinion on that.
Bye, Rich =]
--
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]
"You can't evaluate a man by logic alone."
-- McCoy, "I, Mudd", Star Trek
- Raw text -