From 1b87232aed3022fbfba58c3cc88dcd2eae32dde3 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Tue, 6 Jul 1999 10:08:25 +0000 Subject: [PATCH] lex.c (errorcount): Declare it. 1999-07-05 Dave Brolley * lex.c (errorcount): Declare it. (finish_parse): Update errorcount for when using CPPLIB. From-SVN: r27955 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/lex.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 90011a3b9e0..5a2e00cde72 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-07-05 Dave Brolley + + * lex.c (errorcount): Declare it. + (finish_parse): Update errorcount for when using CPPLIB. + 1999-07-05 Mark Mitchell * cp-tree.h (IS_AGGR_TYPE): Include instantiated template template diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 303306a7967..2310345a2b0 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -111,6 +111,7 @@ char *inline_text_firstobj; extern cpp_reader parse_in; extern cpp_options parse_options; extern unsigned char *yy_cur, *yy_lim; +extern int errorcount; #else FILE *finput; #endif @@ -881,6 +882,7 @@ finish_parse () { #if USE_CPPLIB cpp_finish (&parse_in); + errorcount += parse_in.errors; #else fclose (finput); #endif -- 2.30.2