* 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 472cbd3..018faf4 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 c79270b..652dddb 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.  */