lex.c (errorcount): Declare it.
authorDave Brolley <brolley@cygnus.com>
Tue, 6 Jul 1999 10:08:25 +0000 (10:08 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Tue, 6 Jul 1999 10:08:25 +0000 (06:08 -0400)
1999-07-05  Dave Brolley  <brolley@cygnus.com>
* lex.c (errorcount): Declare it.
(finish_parse): Update errorcount for when using CPPLIB.

From-SVN: r27955

gcc/cp/ChangeLog
gcc/cp/lex.c

index 90011a3b9e0954907bc11de6696e4b6bc7a80d9f..5a2e00cde725e128e7f38018a52c50d9de1601d5 100644 (file)
@@ -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
index 303306a7967d8886d1e46b5109890089acfed8ff..2310345a2b01fb9856de57f41f3702ba9800e6d3 100644 (file)
@@ -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