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
_______________________________________________
bug-gnulib mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnulib