apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Foad <julianf...@btopenworld.com>
Subject Re: apr_hash_count should accept a const hash?
Date Mon, 17 Jan 2005 13:48:38 GMT
Joe Orton wrote:
> On Mon, Jan 17, 2005 at 11:40:33AM +0000, Julian Foad wrote:
>>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,

What's the source compatibility problem?  All existing source code that uses 
this would still compile and work the same if we added "const".

> it seems like a good idea - I added this to STATUS along with the other
> things which I had noted already... thanks.

Thanks.

- Julian

Mime
View raw message