Skip to content
Snippets Groups Projects
Commit 396ec32e authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-07-27 15:56:59 by simonmar]

Sigh, didn't work in the  cpp, !literate case.
parent 017841c8
No related merge requests found
......@@ -37,13 +37,15 @@ open(INPIPE, "$Cpp @args - <$file |")
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*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 $_;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment