* tree.h (TYPE_P): New macro.
authorJason Merrill <jason@yorick.cygnus.com>
Sun, 12 Jul 1998 01:29:26 +0000 (01:29 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 12 Jul 1998 01:29:26 +0000 (21:29 -0400)
From-SVN: r21067

gcc/ChangeLog
gcc/tree.h

index 472cbd3cb15b35542ddcafe93f65fb10aff56928..018faf472fc0513775cce9bbb75d6212354410b6 100644 (file)
@@ -1,3 +1,7 @@
+Sun Jul 12 01:27:05 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * tree.h (TYPE_P): New macro.
+
 Sat Jul 11 16:19:48 1998  Mark Mitchell  <mark@markmitchell.com>
 
        * cplus-dem.c (string): Move definition before work_stuff.
index c79270bf2a706180325977bf8790dbc10d1cc173..652dddbd61a44c3d42393ca44d7b3d757f9f4277 100644 (file)
@@ -400,6 +400,10 @@ struct tree_common
 
 #define POINTER_TYPE_P(TYPE) \
   (TREE_CODE (TYPE) == POINTER_TYPE || TREE_CODE (TYPE) == REFERENCE_TYPE)
+
+/* Nonzero if TYPE represents a type.  */
+
+#define TYPE_P(TYPE)   (TREE_CODE_CLASS (TREE_CODE (TYPE)) == 't')
 \f
 /* Define many boolean fields that all tree nodes have.  */