cp-tree.h (CP_TYPE_CONST_P): Make {0,1}-valued.
authorMark Mitchell <mark@markmitchell.com>
Wed, 4 Nov 1998 21:54:29 +0000 (21:54 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 4 Nov 1998 21:54:29 +0000 (21:54 +0000)
* cp-tree.h (CP_TYPE_CONST_P): Make {0,1}-valued.
(CP_TYPE_VOLATILE_P): Likewise.
(CP_TYPE_RESTRICT_P): Likewise.

From-SVN: r23530

gcc/cp/ChangeLog
gcc/cp/cp-tree.h

index 7228607ec126a601b44e874c6db4bdff193563cc..9bc821c04fc41c5f55cc36fcac3b32ecff2590fa 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 3f246536e017beccbb78a203887e6b8ebe666c6b..e55766f4652733ad8abe2c09e17f5599909d67c6 100644 (file)
@@ -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