apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: apr_hash_count should accept a const hash?
Date Mon, 17 Jan 2005 11:57:44 GMT
On Mon, Jan 17, 2005 at 11:40:33AM +0000, Julian Foad wrote:
> /**
>  * Get the number of key/value pairs in the hash table.
>  * @param ht The hash table
>  * @return The number of key/value pairs in the hash table.
>  */
> APR_DECLARE(unsigned int) apr_hash_count(apr_hash_t *ht);
> 
> 
> Any reason not to take a pointer to a "const" apr_hash_t?
> 
> If we can't fix this right away due to the possibility of binary 
> incompatibility on some systems, where is the best place to file this 
> enhancement until such time as it can be done?

It can't be changed for source compatibility reasons at least; but yes,
it seems like a good idea - I added this to STATUS along with the other
things which I had noted already... thanks.

Regards,

joe

Mime
View raw message