]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cpphash.h
cpphash.h (struct spec_nodes): Add n_true and n_false.
authorZack Weinberg <zack@gcc.gnu.org>
Wed, 7 Feb 2001 23:13:46 +0000 (23:13 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 7 Feb 2001 23:13:46 +0000 (23:13 +0000)
commit037313ae8d402f62c0685009c82a5347477b1c19
tree20abf84da4ca6e55a9d6efd804626b0574b72b14
parenta4c6d37356fe4ba2dbbaf0dd72d0bb8c55c6baf5
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