Generate line directives that are similar to the ones generated

by the Reiser preprocessor.
This commit is contained in:
ceriel 1987-01-08 12:42:44 +00:00
parent 0c5feb7493
commit cfc9f38ccd

View file

@ -51,7 +51,7 @@ preprocess(fn)
fn = FileName; fn = FileName;
lineno = LineNumber; lineno = LineNumber;
sprint(p, "#line %d \"%s\"\n", LineNumber, sprint(p, "# %d \"%s\"\n", LineNumber,
FileName); FileName);
while (*p) { while (*p) {
echo(*p++); echo(*p++);