Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Feb 2003 23:31:12 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Munish Chopra <mchopra@engmail.uwaterloo.ca>
Cc:        freebsd-current@freebsd.org
Subject:   Re: C conformance.
Message-ID:  <3E475540.41AD46E4@mindspring.com>
References:  <20030210043037.GA33669@opiate.thirteenandtwo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Munish Chopra wrote:
> >It is an ANSI compliant preprocessor directive.  Please use an ANSI
> >compliant compiler.
> 
> I'd also be curious to know in which version of the ANSI standard you
> have found #warning. I certainly doesn't appear in mine.

I said that the use of the directive was compliant, not that the
directive was standardized.

As to the version of the standard, try ANSI X3J11, unless you have
a different online version of the standards document available for
public use that you want to point me at to language-lawyer to prove
that the preprocessor should not be doing syntax checking on statements
that are indicated by preprocessor statements to not be compiled.

What does the compiler you are using do when I say:

	#ifdef absurd_token
	absurd_token
	#endif

or

	#ifdef absurd_token
	#absurd_token
	#endif

Neither one of these should cause a warning with an ANSI X3J11
compliant compiler or preprocessor, or an ISO C-99 compliant
compiler or preprocessor, for that matter.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E475540.41AD46E4>