From: ceriel Date: Thu, 5 Mar 1987 11:07:16 +0000 (+0000) Subject: Only echo the newlines in comments, no formfeeds, etc, because X-Git-Tag: release-5-5~4510 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=66c5ebf42f10089aea10db2f4fb0bf8e0d48664d;p=ack.git Only echo the newlines in comments, no formfeeds, etc, because you don't know what you are preprocessing. --- diff --git a/util/cpp/preprocess.c b/util/cpp/preprocess.c index d33d17ac8..0fb437862 100644 --- a/util/cpp/preprocess.c +++ b/util/cpp/preprocess.c @@ -92,7 +92,7 @@ preprocess(fn) } for (;;) { LoadChar(c); - if (class(c) == STNL) { + if (c == '\n') { ++LineNumber; ++lineno; echo(c);