[Top][All Lists]
[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
- Re: config.h inclusion, (continued)
- Re: config.h inclusion, Paul Eggert, 2005/09/13
- Re: config.h inclusion, Ralf Wildenhues, 2005/09/14
- Re: config.h inclusion, Paul Eggert, 2005/09/15
- Re: config.h inclusion, Ralf Wildenhues, 2005/09/16
- Re: config.h inclusion, Paul Eggert, 2005/09/19
- Re: config.h inclusion, Ralf Wildenhues, 2005/09/21
- Re: [bug-gnulib] Re: config.h inclusion,
Bruno Haible <=
- Re: config.h inclusion, Paul Eggert, 2005/09/14