From 2a2222f7c4b2b483a5a2011fbce310dff832ef20 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Mon, 8 Aug 2022 13:19:50 +0000 Subject: [PATCH] Revert "cpp: do not pass #error into output stream, warn about it and exit non-0" This reverts commit ee5767d8ae3d6170524b1e6d36c529ca23514e54. --- src/cpp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cpp.c b/src/cpp.c index 93db7e9..54ec1ee 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -988,8 +988,8 @@ for (;;) { } else if (np == pragmaloc) { /* pragma */ while (*inp != '\n') /* pass text */ p = cotoken(p); -#ifdef EXIT_ON_ERROR } else if (np == errorloc) { /* error */ +#ifdef EXIT_ON_ERROR if (trulvl > 0) { char ebuf[BUFFERSIZ]; @@ -1008,6 +1008,9 @@ for (;;) { pperror(ebuf); exit(exfail); } +#else + while (*inp != '\n') /* pass text */ + p = cotoken(p); #endif } else if (np==lneloc) {/* line */ if (flslvl==0 && pflag==0) {