OSDN Git Service

* tree.h (DECL_P): New macro.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Feb 1999 15:37:43 +0000 (15:37 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Feb 1999 15:37:43 +0000 (15:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25069 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.h

index 807c694..d079ded 100644 (file)
@@ -1,3 +1,7 @@
+Sun Feb  7 15:37:10 1999  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * tree.h (DECL_P): New macro.
+
 Sun Feb 7 01:15:04 PST 1999 Jeff Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index 859f748..273b102 100644 (file)
@@ -1012,6 +1012,8 @@ struct tree_type
 \f
 /* Define fields and accessors for nodes representing declared names.  */
 
+/* Nonzero if DECL represents a decl.  */
+#define DECL_P(DECL)   (TREE_CODE_CLASS (TREE_CODE (DECL)) == 'd')
 /* This is the name of the object as written by the user.
    It is an IDENTIFIER_NODE.  */
 #define DECL_NAME(NODE) (DECL_CHECK (NODE)->decl.name)