apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: Sun forte compiler warnings
Date Fri, 13 Sep 2002 21:37:56 GMT
On Fri, Sep 13, 2002 at 02:34:49PM -0700, Greg Stein wrote:
> The #if logic is awfully hair. I'd recommend creating some internal symbols
> that describe the semantics of what you're checking for.
> 
> For example:
> 
> #if !defined(SOMETHING) && !defined(OR_OTHER)
> #define NO_SHARED_MEM
> #endif
> ...
> 
> #ifdef NO_SHARED_MEM
> ...

I considered that, but thought that might cause some confusion if we
ever need to add more symbols to the set, but on second thought it's
probably not a big deal even if we do.

I'll work on something cleaner this afternoon.

-aaron

Mime
View raw message