c-lex.c (cb_file_change): Treat in_system_header as strictly boolean (0 or 1).
authorNeil Booth <neil@daikokuya.demon.co.uk>
Mon, 18 Dec 2000 20:38:35 +0000 (20:38 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 18 Dec 2000 20:38:35 +0000 (20:38 +0000)
* c-lex.c (cb_file_change): Treat in_system_header as strictly
boolean (0 or 1).

From-SVN: r38361

gcc/ChangeLog
gcc/c-lex.c

index 37df328f49379820db70ef2556ba63d6098c940d..0be4dc098b01ee19587a7777d6de71c02445b71b 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-18  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * c-lex.c (cb_file_change): Treat in_system_header as strictly
+       boolean (0 or 1).
+
 2000-12-18  Neil Booth  <neil@daikokuya.demon.co.uk>
 
         * cppmain.c: Update print.lineno with -P.
index 645661d405956d88b81445dfebabaa3886f4118d..4dee1ef45485c6506c0e7fdd109b0687c473d417 100644 (file)
@@ -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?  */