diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-07 23:13:46 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-07 23:13:46 +0000 |
commit | 528671b39f72afff75c304168b27b5665634e1d2 (patch) | |
tree | 20abf84da4ca6e55a9d6efd804626b0574b72b14 | |
parent | 810295ed9bb77d96e4fc59479d7e7e4d390a6212 (diff) | |
download | gcc-528671b39f72afff75c304168b27b5665634e1d2.tar.gz |
* 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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39530 138bc75d-0d04-0410-961f-82ee72b054a4
-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 */ |