[project @ 1999-07-29 09:08:26 by simonmar]
authorsimonmar <unknown>
Thu, 29 Jul 1999 09:08:26 +0000 (09:08 +0000)
committersimonmar <unknown>
Thu, 29 Jul 1999 09:08:26 +0000 (09:08 +0000)
The hscpp saga continues, this time mysterious 2's are appearing in my
files.

ghc/utils/hscpp/hscpp.prl

index 5c08b9b..fb1bf46 100644 (file)
@@ -37,7 +37,7 @@ open(INPIPE, "$Cpp @args - <$file |")
 while (<INPIPE>) {
 
     s/^#\s*line\s+(\d+)\s+\"\"$/\{\-# LINE \1 \"$file\" \-\}/;
-    s/^#\s*(\d+)\s+\"\"/\{\-# LINE \1 \"$file\" \-\}/;
+    s/^#\s*(\d+)\s+\"\".*/\{\-# LINE \1 \"$file\" \-\}/;
 
 # line directives come in flavo[u]rs: