bug-gnulib
[Top][All Lists]
Advanced

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

Re: extern-inline: be -Wundef safe in config.h


From: Paul Eggert
Subject: Re: extern-inline: be -Wundef safe in config.h
Date: Fri, 28 Sep 2012 11:31:56 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1

On 09/28/2012 06:21 AM, Eric Blake wrote:
> -Wundef really is anachronistic; it's a shame that people use it.

I think it's a style thing, not an anachronism thing.
Some programmers don't like the style of assuming
that undefined macros evaluate to zero.  They'd
rather diagnose the (all too common) programming error
of misspelled macro names.

I think even K&R C had undefined macros evaluate to 0,
though I couldn't swear to this.



reply via email to

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