diff options
author | Benjamin Chelf <chelf@codesourcery.com> | 2000-06-17 02:37:23 +0000 |
---|---|---|
committer | Ben Chelf <chelf@gcc.gnu.org> | 2000-06-16 19:37:23 -0700 |
commit | c7d87c0a58af4fb6906179301c48b89210be835e (patch) | |
tree | 0de1cb8ed60b2da04d155bdb3c2d0ec60c45632c /gcc/c-common.h | |
parent | cf6d5133a14cca405a9d527dc966b8d15415e8e7 (diff) | |
download | gcc-c7d87c0a58af4fb6906179301c48b89210be835e.zip gcc-c7d87c0a58af4fb6906179301c48b89210be835e.tar.gz gcc-c7d87c0a58af4fb6906179301c48b89210be835e.tar.bz2 |
c-common.c (c_tree_code_type): New array.
* 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.
From-SVN: r34577
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 4b5cb97..81a5127 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)); |