[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: hash api is clumsy

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-10-06 00:26:20 CEST

On Wed, Oct 04, 2000 at 07:20:12PM -0500, Jim Blandy wrote:
> Greg, I've found an annoying quirk in the APR hash table interface.
> Would it be possible to get this changed?

Sure, stuff like this can be changed. There aren't too many consumers of the
hash interface (yet) in APR/Apache. We're using them quite a bit in SVN, but
I have noticed that people aren't using 0 for the length much(??).

>...
> It would be nicer if apr_hash_{set,get} used a length of -1 to
> indicate that the key is is a null-terminated string. That's a
> nonsensical length, whereas zero is something that does come up.

Well, a zero-length key is awfully strange. When does that happen?

I'm quite willing to make this change, but I'd like to understand the
scenario a bit more.

thx!
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:10 2006

This is an archived mail posted to the Subversion Dev mailing list.