diff --git a/util/cpp/preprocess.c b/util/cpp/preprocess.c index 394770c3..fd5fa21e 100644 --- a/util/cpp/preprocess.c +++ b/util/cpp/preprocess.c @@ -122,18 +122,23 @@ preprocess(fn) do { echo(c); LoadChar(c); - if (c == '\\') { - echo(c); - LoadChar(c); - } if (c == '\n') { ++LineNumber; lineno++; + break; } else if (c == EOI) { flush(op-_obuf); return; } + if (c == '\\') { + echo(c); + LoadChar(c); + if (c == '\n') { + ++LineNumber; + lineno++; + } + } } while (c != stopc); echo(c);