diff options
author | chelf <chelf@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-17 02:37:23 +0000 |
---|---|---|
committer | chelf <chelf@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-17 02:37:23 +0000 |
commit | 51444f0d6cc406e37f802123bb38208bc3c66ab7 (patch) | |
tree | 0de1cb8ed60b2da04d155bdb3c2d0ec60c45632c /gcc/c-common.h | |
parent | edb5e81d85e5f0f3396fee13a4662c5221a464ca (diff) | |
download | gcc-51444f0d6cc406e37f802123bb38208bc3c66ab7.tar.gz |
* c-common.c (c_tree_code_type): New array.
(c_tree_code_length): Likewise.
(c_tree_code_name): Likewise.
(add_c_tree_codes): New function.
* c-common.h (add_c_tree_codes): Declare.
(enum c_tree_code): New enum.
* c-lex.c (init_parse): Added call to add_c_tree_codes.
* cp/cp-tree.h (enum cplus_tree_code): Changed __DUMMY to
CP_DUMMY_TREE_CODE. Remove #include "c-common.def".
* cp/lex.c (cplus_tree_code_type[]): Removed #include "c-common.def".
(cplus_tree_code_length[]): Likewise.
(cplus_tree_code_name[]): Likewise.
(init_parse): Added call to add_c_tree_codes. Changed
LAST_AND_UNUSED_TREE_CODE to LAST_C_TREE_CODE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34577 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 4b5cb97760a..81a5127dbf4 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -246,3 +246,16 @@ extern tree simple_type_promotes_to PARAMS ((tree)); function ended. */ #define STMT_LINENO_FOR_FN_P(NODE) \ (TREE_LANG_FLAG_2 ((NODE))) + + +#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) SYM, + +enum c_tree_code { + C_DUMMY_TREE_CODE = LAST_AND_UNUSED_TREE_CODE, +#include "c-common.def" + LAST_C_TREE_CODE +}; + +#undef DEFTREECODE + +extern void add_c_tree_codes PARAMS ((void)); |