c-lex.c (init_c_lex): If cpp_start_read fails, exit with error status.

* c-lex.c (init_c_lex): If cpp_start_read fails, exit with
	error status.

From-SVN: r37279
This commit is contained in:
Neil Booth 2000-11-06 19:10:05 +00:00 committed by Neil Booth
parent ea33bfc554
commit 2b892489e1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-11-06 Neil Booth <neilb@earthling.net>
* c-lex.c (init_c_lex): If cpp_start_read fails, exit with
error status.
2000-11-06 Neil Booth <neilb@earthling.net>
* tradcpp.c (special_symbol): Assign an null string rather

View File

@ -221,7 +221,7 @@ init_c_lex (filename)
CPP_OPTION (&parse_in, digraphs) = flag_digraphs;
if (! cpp_start_read (&parse_in, filename))
abort ();
exit (FATAL_EXIT_CODE); /* cpplib has emitted an error. */
if (filename == 0 || !strcmp (filename, "-"))
filename = "stdin";