apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Reducing #ifdef burden on APR applications
Date Sat, 20 Aug 2005 12:59:19 GMT
On Sat, Aug 20, 2005 at 12:29:56PM +0100, Nick Kew wrote:
> When writing APR applications, we sometimes need to make heavy
> use of APR #ifdefs.
> 
> A case in point is mod_dbd, which uses either apr_reslist or a
> single persistent connection according to whether APR_HAS_THREADS.
> As an APR application, this would be greatly simplified if
> apr_reslist fell back to a trivial implementation of a single
> resource in the non-threaded case, sparing the application
> the burden of dealing with it.

I think it would be far far better to make APR ABI-compatible not just 
API-compatible across APR_HAS_THREADS/!APR_HAS_THREADS and define 
ENOTIMPL stubs for everything in the !THREADS case.

joe

Mime
View raw message