apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@rkbloom.net
Subject Re: [PATCH] RFC: allow custom hash functions
Date Sun, 18 Apr 2004 12:52:09 GMT

Committed.  Thank you for creating a new test for this as well.  :-D

Ryan

Quoting Ami Ganguli <hse_ami@yahoo.co.uk>:

>  --- 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