aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2001-02-07 23:13:46 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-02-07 23:13:46 +0000
commit037313ae8d402f62c0685009c82a5347477b1c19 (patch)
tree20abf84da4ca6e55a9d6efd804626b0574b72b14 /gcc/cpphash.h
parenta4c6d37356fe4ba2dbbaf0dd72d0bb8c55c6baf5 (diff)
downloadgcc-037313ae8d402f62c0685009c82a5347477b1c19.zip
gcc-037313ae8d402f62c0685009c82a5347477b1c19.tar.gz
gcc-037313ae8d402f62c0685009c82a5347477b1c19.tar.bz2
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
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index a7f1ad4..ddeacac 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 */