OSDN Git Service

* cp-tree.h, tree.h: Moved definitions of TREE_VIA_* into tree.h for
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Aug 1992 01:13:34 +0000 (01:13 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Aug 1992 01:13:34 +0000 (01:13 +0000)
        consistency.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1768 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/tree.h

index d8dc82a..7a409a7 100644 (file)
@@ -258,6 +258,15 @@ struct tree_common
    fields from the base class as public.  */
 #define TREE_VIA_PUBLIC(NODE) ((NODE)->common.public_flag)
 
+/* Ditto, for `private' declarations.  */
+#define TREE_VIA_PRIVATE(NODE) ((NODE)->common.private_flag)
+
+/* Nonzero for TREE_LIST node means that the path to the
+   base class is via a `protected' declaration, which preserves
+   protected fields from the base class as protected.
+   OVERLOADED.  */
+#define TREE_VIA_PROTECTED(NODE) ((NODE)->common.static_flag)
+
 /* In any expression, nonzero means it has side effects or reevaluation
    of the whole expression could produce a different value.
    This is set if any subexpression is a function call, a side effect