🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1368

warning: '/*' within comment

#1368
From: D'Arcy J.M. Cain
Date: Fri, 01 Jun 1990 20:04
27 lines
1294 bytes
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@druid)     |   Government:
D'Arcy Cain Consulting             |   Organized crime with an attitude
West Hill, Ontario, Canada         |
(416) 281-6094                     |
Technical Details
Message-ID: <1990Jun1.200433.6919@druid.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!druid!darcy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!druid!darcy
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Newsgroups: comp.std.c
Subject: warning: '/*' within comment
Message-ID: <1990Jun1.200433.6919@druid.uucp>
Date: 1 Jun 90 20:04:33 GMT
Reply-To: darcy@druid.UUCP (D'Arcy J.M. Cain)
Organization: D'Arcy Cain Consulting, West Hill, Ontario
Lines: 27