tree.h (IS_EXPR_CODE_CLASS): Use strchr.

* tree.h (IS_EXPR_CODE_CLASS): Use strchr.
        (EXPR_P): New macro.

From-SVN: r72773
This commit is contained in:
Jason Merrill 2003-10-21 18:14:53 -04:00 committed by Jason Merrill
parent 5634cf7242
commit c25d44dd1c
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-10-21 Jason Merrill <jason@redhat.com>
* tree.h (IS_EXPR_CODE_CLASS): Use strchr.
(EXPR_P): New macro.
2003-10-21 Zack Weinberg <zack@codesourcery.com>
* config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.

View File

@ -56,9 +56,11 @@ extern const char tree_code_type[];
/* Returns nonzero iff CLASS is the tree-code class of an
expression. */
#define IS_EXPR_CODE_CLASS(CLASS) \
((CLASS) == '<' || (CLASS) == '1' || (CLASS) == '2' || (CLASS) == 'e' \
|| (CLASS) == 'r' || (CLASS) == 's')
#define IS_EXPR_CODE_CLASS(CLASS) (strchr ("<12ers", (CLASS)) != 0)
/* Returns nonzero iff NODE is an expression of some kind. */
#define EXPR_P(NODE) IS_EXPR_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (NODE)))
/* Number of argument-words in each kind of tree-node. */