bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Re: config.h inclusion


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: config.h inclusion
Date: Wed, 14 Sep 2005 22:48:32 +0200
User-agent: KMail/1.5

Ralf Wildenhues wrote:
> Thinking out loud, `#if HAVE*' vs. `#ifdef HAVE*' also could be
> uniformized for other values of `*' .. not sure it's worth the effort.

If we were to do this, then towards #if, not towards #ifdef.

$ grep '# *if HAVE_' *.h *.c | wc -l
    429
$ grep '# *ifdef HAVE_' *.h *.c | wc -l
    197

The reason is that some *.m4 files need to define HAVE_FOOBAR to 0 when foobar
is absent; this is useful for using HAVE_FOOBAR as a C expression. But
we don't want to have to think about the difference between "#if HAVE_" and
"#ifdef HAVE_". So the choice is to canonicalize on "#if HAVE_".

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]