apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ami Ganguli <hse_...@yahoo.co.uk>
Subject Re: [PATCH] RFC: allow custom hash functions
Date Sat, 17 Apr 2004 21:39:35 GMT
 --- Ami Ganguli <hse_ami@yahoo.co.uk> wrote: 
 >Small problem... the APR_HASH_KEY_STRING case
> requires that we find the key length.

Here's a new patch.  

 - Added "apr_hashfunc_default", the default hash
function.

 - Changed the hash function signature so that, when
passed a klen of APR_HASH_KEY_STRING, it can return
the correct key length:

   typedef unsigned int (*apr_hashfunc_t)(
      const char *key, 
      apr_ssize_t *klen
      );

Not sure I like this, but maybe it's the best
alternative.

... Ami.



	
	
		
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
Mime
View raw message