On Fri, Apr 16, 2010 at 11:38:41AM +0100, Philip Martin wrote:
> Julian Foad <julian.f...@wandisco.com> writes:
> > Just write "arr->nelts = 0;" (which is the entire body of
> > apr_array_clear()) and don't introduce an ifdef.

I'm a bit sceptical.
Do we really want to rely on implementation details like
"arr->nelts = 0" in the APR code? We don't even do this in our own code.

> I agree that we don't want #if like that in the main code.  Put it in
> one of our private header files if you want to use it.

I can make a private macro or function for this, sure.

Stefan

Reply via email to