projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1999-07-27 15:56:59 by simonmar]
[ghc-hetmet.git]
/
ghc
/
utils
/
hscpp
/
hscpp.prl
diff --git
a/ghc/utils/hscpp/hscpp.prl
b/ghc/utils/hscpp/hscpp.prl
index
a45ebba
..
e56ef26
100644
(file)
--- a/
ghc/utils/hscpp/hscpp.prl
+++ b/
ghc/utils/hscpp/hscpp.prl
@@
-37,13
+37,15
@@
open(INPIPE, "$Cpp @args - <$file |")
while (<INPIPE>) {
# line directives come in flavo[u]rs:
while (<INPIPE>) {
# line directives come in flavo[u]rs:
-# s/^#\s*line\s+\d+$/\{\-# LINE \-\}/; IGNORE THIS ONE FOR NOW
- s/^#\s*line\s+(\d+)\s+(\".+\")$/\{\-# LINE \1 \2 \-\}/;
- s/^#\s*(\d+)\s+(\".*\").*/\{\-# LINE \1 \2 \-\}/;
+ s/^#\s*line\s+(\d+)\s+(\"\")$//;
s/^#\s*(\d+)\s+(\"\").*//; # these are a result of our using stdin in
# the $(CPP) command line above.
s/^#\s*(\d+)\s+(\"\").*//; # these are a result of our using stdin in
# the $(CPP) command line above.
+# s/^#\s*line\s+\d+$/\{\-# LINE \-\}/; IGNORE THIS ONE FOR NOW
+ s/^#\s*line\s+(\d+)\s+(\".+\")$/\{\-# LINE \1 \2 \-\}/;
+ s/^#\s*(\d+)\s+(\".*\").*/\{\-# LINE \1 \2 \-\}/;
+
print $_;
}
print $_;
}