From: Neil Booth Date: Mon, 18 Dec 2000 20:38:35 +0000 (+0000) Subject: c-lex.c (cb_file_change): Treat in_system_header as strictly boolean (0 or 1). X-Git-Tag: prereleases/libstdc++-2.92~2148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=665ad67835723e4ffcd91c52acfe96bf695209d5;p=thirdparty%2Fgcc.git c-lex.c (cb_file_change): Treat in_system_header as strictly boolean (0 or 1). * c-lex.c (cb_file_change): Treat in_system_header as strictly boolean (0 or 1). From-SVN: r38361 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37df328f4937..0be4dc098b01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-12-18 Neil Booth + + * c-lex.c (cb_file_change): Treat in_system_header as strictly + boolean (0 or 1). + 2000-12-18 Neil Booth * cppmain.c: Update print.lineno with -P. diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 645661d40595..4dee1ef45485 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -230,7 +230,6 @@ cb_file_change (pfile, fc) cpp_reader *pfile ATTRIBUTE_UNUSED; const cpp_file_change *fc; { - /* Do the actions implied by the preceding numbers. */ if (fc->reason == FC_ENTER) { /* Don't stack the main buffer on the input stack. */ @@ -284,7 +283,7 @@ cb_file_change (pfile, fc) } update_header_times (fc->to.filename); - in_system_header = fc->sysp; + in_system_header = fc->sysp != 0; input_filename = fc->to.filename; lineno = fc->to.lineno; /* Do we need this? */