diff options
author | Zack Weinberg <zack@wolery.stanford.edu> | 2001-02-07 23:13:46 +0000 |
---|---|---|
committer | Zack Weinberg <zack@wolery.stanford.edu> | 2001-02-07 23:13:46 +0000 |
commit | 3a81aa792faef13eb1184607f1a535dc59cef812 (patch) | |
tree | 20abf84da4ca6e55a9d6efd804626b0574b72b14 /gcc | |
parent | 3e8620615cea26287e46a5c7ee47a602f32ce07f (diff) |
* 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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@39530 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cpphash.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |