Commit 174bcdb9 by Mark Mitchell Committed by Mark Mitchell

cp-tree.h (CP_TYPE_CONST_P): Make {0,1}-valued.

	* cp-tree.h (CP_TYPE_CONST_P): Make {0,1}-valued.
	(CP_TYPE_VOLATILE_P): Likewise.
	(CP_TYPE_RESTRICT_P): Likewise.

From-SVN: r23530
parent 0eadeb15
1998-11-04 Mark Mitchell <mark@markmitchell.com>
* cp-tree.h (CP_TYPE_CONST_P): Make {0,1}-valued.
(CP_TYPE_VOLATILE_P): Likewise.
(CP_TYPE_RESTRICT_P): Likewise.
1998-11-03 Mark Mitchell <mark@markmitchell.com>
* pt.c (tsubst): Use build_index_type, not build_index_2_type.
......
......@@ -546,16 +546,15 @@ enum languages { lang_c, lang_cplusplus, lang_java };
/* Nonzero if this type is const-qualified. */
#define CP_TYPE_CONST_P(NODE) \
(CP_TYPE_QUALS (NODE) & TYPE_QUAL_CONST)
((CP_TYPE_QUALS (NODE) & TYPE_QUAL_CONST) != 0)
/* Nonzero if this type is volatile-qualified. */
#define CP_TYPE_VOLATILE_P(NODE) \
(CP_TYPE_QUALS (NODE) & TYPE_QUAL_VOLATILE)
((CP_TYPE_QUALS (NODE) & TYPE_QUAL_VOLATILE) != 0)
/* Nonzero if this type is restrict-qualified.
FIXME: Does this make sense? */
/* Nonzero if this type is restrict-qualified. */
#define CP_TYPE_RESTRICT_P(NODE) \
(CP_TYPE_QUALS (NODE) & TYPE_QUAL_RESTRICT)
((CP_TYPE_QUALS (NODE) & TYPE_QUAL_RESTRICT) != 0)
/* Nonzero if this type is const-qualified, but not
volatile-qualified. Other qualifiers are ignored. This macro is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment