warning: '/*' within comment
D'Arcy J.M. Cain
darcy at druid.uucp
Sat Jun 2 06:04:33 AEST 1990
I have the following in a program I compiled with GNU C 1.36 on a 386
system.
/*
Sample usage:
mkscript src/*.c src/*.h src/makefile man/* readme > dist.txt
*/
This gives me the above mentioned warning. Since I like silent compiles
I modified the code by enclosing the problem line in quotes as follows:
/*
Sample usage:
"mkscript src/*.c src/*.h src/makefile man/* readme > dist.txt"
*/
However I got the same warning. Is there anything in the standard that
allows the compiler to ignore the quotes while inside a comment. After
all, quotes are required to be balanced. It seems to me that it should
work both ways and the compiler should be cognizant of quoted strings
and not look for nested comments within them.
--
D'Arcy J.M. Cain (darcy at druid) | Government:
D'Arcy Cain Consulting | Organized crime with an attitude
West Hill, Ontario, Canada |
(416) 281-6094 |
More information about the Comp.std.c
mailing list