warning: '/*' within comment
Stephen Clamage
steve at taumet.COM
Tue Jun 5 03:53:27 AEST 1990
In article <1990Jun1.200433.6919 at druid.uucp> darcy at druid.UUCP (D'Arcy J.M. Cain) writes:
>/*
>Sample usage:
> mkscript src/*.c src/*.h src/makefile man/* readme > dist.txt
>*/
>
>This gives me the above mentioned warning.
> [ more about quotes in comments, should they be balanced ]
The standard says (section 3.1.9):
"Except within a character constant, a string literal, or a comment,
the characters /* introduce a comment. The contents of a comment are
examined only to identify multibyte characters and to find the
characters */ that terminated it."
A footnote clarifies that comments do not nest.
Some compilers allow comment nesting, and warn about apparently nested
comments. This is not standard behavior.
--
Steve Clamage, TauMetric Corp, steve at taumet.com
More information about the Comp.std.c
mailing list