Commit 2b892489 by Neil Booth Committed by Neil Booth

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
parent ea33bfc5
2000-11-06 Neil Booth <neilb@earthling.net> 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 * tradcpp.c (special_symbol): Assign an null string rather
than writing to an unallocated buffer. than writing to an unallocated buffer.
......
...@@ -221,7 +221,7 @@ init_c_lex (filename) ...@@ -221,7 +221,7 @@ init_c_lex (filename)
CPP_OPTION (&parse_in, digraphs) = flag_digraphs; CPP_OPTION (&parse_in, digraphs) = flag_digraphs;
if (! cpp_start_read (&parse_in, filename)) if (! cpp_start_read (&parse_in, filename))
abort (); exit (FATAL_EXIT_CODE); /* cpplib has emitted an error. */
if (filename == 0 || !strcmp (filename, "-")) if (filename == 0 || !strcmp (filename, "-"))
filename = "stdin"; filename = "stdin";
......
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