summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/include/ast_union.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/TAO_IDL/include/ast_union.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/TAO_IDL/include/ast_union.h')
-rw-r--r--TAO/TAO_IDL/include/ast_union.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/TAO/TAO_IDL/include/ast_union.h b/TAO/TAO_IDL/include/ast_union.h
index 062e540e9a8..84f73d481d5 100644
--- a/TAO/TAO_IDL/include/ast_union.h
+++ b/TAO/TAO_IDL/include/ast_union.h
@@ -53,8 +53,8 @@ Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR
Sun, Sun Microsystems and the Sun logo are trademarks or registered
trademarks of Sun Microsystems, Inc.
-SunSoft, Inc.
-2550 Garcia Avenue
+SunSoft, Inc.
+2550 Garcia Avenue
Mountain View, California 94043
NOTE:
@@ -79,12 +79,12 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
/*
** DEPENDENCIES: ast_concrete_type.hh, utl_scope.hh, ast_union_branch.hh,
-** ast_union_label.hh, utl_scoped_name.hh, utl_strlist.hh
+** ast_union_label.hh, utl_scoped_name.hh, utl_strlist.hh
**
** USE: Included from ast.hh
*/
-class AST_Union : public virtual AST_Structure
+class AST_Union : public virtual AST_Structure
{
public:
// Operations
@@ -104,39 +104,39 @@ public:
DEF_NARROW_FROM_SCOPE(AST_Union);
// AST Dumping
- virtual void dump(ostream &);
+ virtual void dump(ostream &);
private:
// Data
- AST_ConcreteType *pd_disc_type; // Discriminator type
- AST_Expression::ExprType pd_udisc_type; // Its expression type
+ AST_ConcreteType *pd_disc_type; // Discriminator type
+ AST_Expression::ExprType pd_udisc_type; // Its expression type
/* Convention: udisc_type == EV_any denotes an enum value */
// Operations
// Look up a branch by node pointer
- AST_UnionBranch *lookup_branch(AST_UnionBranch *branch);
+ AST_UnionBranch *lookup_branch(AST_UnionBranch *branch);
// Look up the branch with the "default" label
- AST_UnionBranch *lookup_default();
+ AST_UnionBranch *lookup_default();
// Look up a branch given a branch with a label. This is used to
// check for duplicate labels
- AST_UnionBranch *lookup_label(AST_UnionBranch *b);
+ AST_UnionBranch *lookup_label(AST_UnionBranch *b);
// Look up a union branch given an enumerator. This is used to
// check for duplicate enum labels
- AST_UnionBranch *lookup_enum(AST_UnionBranch *b);
+ AST_UnionBranch *lookup_enum(AST_UnionBranch *b);
private:
friend int tao_yyparse();
// Scope Management Protocol
- virtual AST_Union *fe_add_union(AST_Union *u);
- virtual AST_UnionBranch *fe_add_union_branch(AST_UnionBranch *b);
- virtual AST_Structure *fe_add_structure(AST_Structure *s);
- virtual AST_Enum *fe_add_enum(AST_Enum *e);
- virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v);
+ virtual AST_Union *fe_add_union(AST_Union *u);
+ virtual AST_UnionBranch *fe_add_union_branch(AST_UnionBranch *b);
+ virtual AST_Structure *fe_add_structure(AST_Structure *s);
+ virtual AST_Enum *fe_add_enum(AST_Enum *e);
+ virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v);
};