Re: [RFC] USE_ and HAVE_ definitions

From: Kinkie <gkinkie_at_gmail.com>
Date: Sun, 29 Mar 2009 09:36:59 +0200

On Sun, Mar 29, 2009 at 8:04 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>
> At present we have a little bit of a mess with the configure.in defined
>  macros.
>
> 1) defined or undefined.
>  For coding:     #ifdef  or   #ifndef
>  Combined form:  #if defined(X) && defined(Y) ...
>
> 2) always defined.
>  For coding:     #if X
>  Combined form:  #if X && Y ...
>
> I'm thinking the HAVE_ should be method (1) and the USE_ should be method
> (2).
>
> Do we already have a formal policy somewhere I've missed?

Not that I know of.

> If we don't, Opinions on what to adopt?

What you suggest seems reasonable, if nothing else for clarity.

-- 
    /kinkie
Received on Sun Mar 29 2009 - 07:37:13 MDT

This archive was generated by hypermail 2.2.0 : Sun Mar 29 2009 - 12:00:04 MDT