From 037313ae8d402f62c0685009c82a5347477b1c19 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Wed, 7 Feb 2001 23:13:46 +0000 Subject: [PATCH] cpphash.h (struct spec_nodes): Add n_true and n_false. * cpphash.h (struct spec_nodes): Add n_true and n_false. * cppinit.c (cpp_create_reader): Initialize them. (append_include_chain): cxx_aware arg might be unused. * cppexp.c (lex): In C++ mode, recognize 'true' and 'false' keywords and give them their phase 7 meaning. Pedwarn about this unless '__bool_true_false_are_defined' is defined. * g++.dg/stdbool-if.C: New test. From-SVN: r39530 --- gcc/cpphash.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/cpphash.h b/gcc/cpphash.h index a7f1ad4266e..ddeacac5f7f 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -156,6 +156,8 @@ struct spec_nodes { cpp_hashnode *n_L; /* L"str" */ cpp_hashnode *n_defined; /* defined operator */ + cpp_hashnode *n_true; /* C++ keyword true */ + cpp_hashnode *n_false; /* C++ keyword false */ cpp_hashnode *n__Pragma; /* _Pragma operator */ cpp_hashnode *n__STRICT_ANSI__; /* STDC_0_IN_SYSTEM_HEADERS */ cpp_hashnode *n__CHAR_UNSIGNED__; /* plain char is unsigned */ -- 2.30.2