Only echo the newlines in comments, no formfeeds, etc, because
authorceriel <none@none>
Thu, 5 Mar 1987 11:07:16 +0000 (11:07 +0000)
committerceriel <none@none>
Thu, 5 Mar 1987 11:07:16 +0000 (11:07 +0000)
you don't know what you are preprocessing.

util/cpp/preprocess.c

index d33d17a..0fb4378 100644 (file)
@@ -92,7 +92,7 @@ preprocess(fn)
                                        }
                                        for (;;) {
                                                LoadChar(c);
-                                               if (class(c) == STNL) {
+                                               if (c == '\n') {
                                                        ++LineNumber;
                                                        ++lineno;
                                                        echo(c);