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 21:21:38 GMT
On Mon, Jan 17, 2005 at 01:48:38PM +0000, Julian Foad wrote:
> 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".

Hmm, true. I suppose apr_hash_count could be used as a callback for some
other function, or something like that, maybe that's too extreme a view
on compatibility though... not sure...

joe

Mime
View raw message