From d2164ac2e761e2d7f8b13fe58cf24320f99c9d11 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 6 Jul 1999 10:07:41 +0000 Subject: [PATCH] c-lex.c (errorcount): Declare it. Tue Jul 6 13:06:01 1999 Dave Brolley * c-lex.c (errorcount): Declare it. (finish_parse): Update errorcount when using CPPLIB. From-SVN: r27954 --- gcc/ChangeLog | 5 +++++ gcc/c-lex.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2adae32..3357330 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 6 13:06:01 1999 Dave Brolley + + * c-lex.c (errorcount): Declare it. + (finish_parse): Update errorcount when using CPPLIB. + 1999-07-06 Bruce Korb * fixinc/inclhack.def(end_else_label): Double the backslash so diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ed825ee..252888d 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -49,6 +49,7 @@ Boston, MA 02111-1307, USA. */ #include "cpplib.h" extern cpp_reader parse_in; extern cpp_options parse_options; +extern int errorcount; #else /* Stream for reading from the input file. */ FILE *finput; @@ -258,6 +259,7 @@ finish_parse () { #if USE_CPPLIB cpp_finish (&parse_in); + errorcount += parse_in.errors; #else fclose (finput); #endif -- 2.7.4