Article View: gnu.gcc.bug
Article #6140fixincludes and // inside /* */
From: Andreas Schott
Date: Thu, 18 Jan 1996 00:00
Date: Thu, 18 Jan 1996 00:00
20 lines
1110 bytes
1110 bytes
There is a problem in fixincludes because of the sed-line (282)
/\/\/[^*]/ s|//\(.*\)$|/*\1*/|
This may create nested comments:
/* a // b */
is translated to
/* a /* b */*/
For one-line constructs this is avoidable, but
/* a
b // c
d */
is quite complicated to be catched, I assume.
The question is, is this considered to be a feature or a bug?
Andreas Schott.
----------------------------------------------------------------
http://www.rzg.mpg.de/~ays | :-O Wissen ist Macht!
email: schott@rzg.mpg.de | 8-( Ich wei"s nichts.
phone/fax: +49 89 3299-2180/1301 | ;-> Macht auch nichts.
Technical Details
Message-ID:
<Pine.SOL.3.91.960118121857.486J-100000@schrott.rzg.mpg.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,c592d147b0351c8b,start X-Google-Attributes: gid113d02,public From: ays@rzg.mpg.DE (Andreas Schott) Subject: fixincludes and // inside /* */ Date: 1996/01/18 Message-ID: <Pine.SOL.3.91.960118121857.486J-100000@schrott.rzg.mpg.de> X-Deja-AN: 135956833 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.bug