🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Andreas Schott Thu, 18 Jan 1996 00:00
fixincludes and // inside /* */
#6140
Author: Andreas Schott
Date: Thu, 18 Jan 1996 00:00
20 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads