Commit 1b87232a by Dave Brolley Committed by Dave Brolley

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
parent d2164ac2
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> 1999-07-05 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (IS_AGGR_TYPE): Include instantiated template template * cp-tree.h (IS_AGGR_TYPE): Include instantiated template template
......
...@@ -111,6 +111,7 @@ char *inline_text_firstobj; ...@@ -111,6 +111,7 @@ char *inline_text_firstobj;
extern cpp_reader parse_in; extern cpp_reader parse_in;
extern cpp_options parse_options; extern cpp_options parse_options;
extern unsigned char *yy_cur, *yy_lim; extern unsigned char *yy_cur, *yy_lim;
extern int errorcount;
#else #else
FILE *finput; FILE *finput;
#endif #endif
...@@ -881,6 +882,7 @@ finish_parse () ...@@ -881,6 +882,7 @@ finish_parse ()
{ {
#if USE_CPPLIB #if USE_CPPLIB
cpp_finish (&parse_in); cpp_finish (&parse_in);
errorcount += parse_in.errors;
#else #else
fclose (finput); fclose (finput);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment