diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp index 11ece6e78d2..888c585b085 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp @@ -175,8 +175,7 @@ be_visitor_typedef_ch::visit_array (be_array *node) } else { - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Base type is simply an alias to an array node. Simply output the // required typedefs. @@ -286,8 +285,7 @@ be_visitor_typedef_ch::visit_enum (be_enum *node) } } - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // typedef the type and the _slice type. *os << "typedef " << bt->nested_type_name (scope) @@ -317,8 +315,7 @@ be_visitor_typedef_ch::visit_interface (be_interface *node) bt = node; } - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Typedef the object. *os << "typedef " << bt->nested_type_name (scope) << " " @@ -366,8 +363,7 @@ be_visitor_typedef_ch::visit_predefined_type (be_predefined_type *node) bt = node; } - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Typedef the type. *os << "typedef " << bt->nested_type_name (scope) @@ -400,8 +396,7 @@ be_visitor_typedef_ch::visit_string (be_string *node) be_typedef *tdef = this->ctx_->tdef (); be_decl *scope = this->ctx_->scope ()->decl (); - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); if (node->width () == (long) sizeof (char)) { @@ -459,8 +454,7 @@ be_visitor_typedef_ch::visit_sequence (be_sequence *node) } else { - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Typedef the type. *os << "typedef " << bt->nested_type_name (scope) @@ -506,8 +500,7 @@ be_visitor_typedef_ch::visit_structure (be_structure *node) } } - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Typedef the type. *os << "typedef " << bt->nested_type_name (scope) @@ -552,8 +545,7 @@ be_visitor_typedef_ch::visit_union (be_union *node) } } - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Typedef the type. *os << "typedef " << bt->nested_type_name (scope) @@ -585,8 +577,7 @@ be_visitor_typedef_ch::visit_valuebox (be_valuebox *node) bt = node; } - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Typedef the object. *os << "typedef " << bt->nested_type_name (scope) << " " @@ -621,8 +612,7 @@ be_visitor_typedef_ch::visit_valuetype (be_valuetype *node) bt = node; } - *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl - << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; + TAO_INSERT_COMMENT (os); // Typedef the object. *os << "typedef " << bt->nested_type_name (scope) << " " |