diff options
author | Dave Brolley <brolley@cygnus.com> | 1999-07-06 10:08:25 +0000 |
---|---|---|
committer | Dave Brolley <brolley@gcc.gnu.org> | 1999-07-06 06:08:25 -0400 |
commit | 1b87232aed3022fbfba58c3cc88dcd2eae32dde3 (patch) | |
tree | ea4d47b696619c393a1a155718fc6966185c2aa3 | |
parent | d2164ac2e761e2d7f8b13fe58cf24320f99c9d11 (diff) | |
download | gcc-1b87232aed3022fbfba58c3cc88dcd2eae32dde3.zip gcc-1b87232aed3022fbfba58c3cc88dcd2eae32dde3.tar.gz gcc-1b87232aed3022fbfba58c3cc88dcd2eae32dde3.tar.bz2 |
lex.c (errorcount): Declare it.
1999-07-05 Dave Brolley <brolley@cygnus.com>
* lex.c (errorcount): Declare it.
(finish_parse): Update errorcount for when using CPPLIB.
From-SVN: r27955
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/lex.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 90011a3..5a2e00c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-07-05 Dave Brolley <brolley@cygnus.com> + + * lex.c (errorcount): Declare it. + (finish_parse): Update errorcount for when using CPPLIB. + 1999-07-05 Mark Mitchell <mark@codesourcery.com> * cp-tree.h (IS_AGGR_TYPE): Include instantiated template template diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 303306a..2310345 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 |