summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL
diff options
context:
space:
mode:
authorAdam Mitz <mitza@objectcomputing.com>2022-06-24 15:13:50 -0600
committerAdam Mitz <mitza@objectcomputing.com>2022-06-24 16:19:38 -0500
commit8dcfa002061c49db6327e3c68fbc587e58bebe05 (patch)
treea18886ce370b81696071eb47cc63845b14e53b91 /TAO/TAO_IDL
parent08e0bea4963a50fa756a4f7dda53e68e2d8278c5 (diff)
downloadATCD-8dcfa002061c49db6327e3c68fbc587e58bebe05.tar.gz
Merge pull request #1864 from mitza-oci/g++12
GCC 12 (cherry picked from commit 94d132b173807bb55f8c7481a57a523b4f07ba7e) # Conflicts: # .github/workflows/linux.yml # .github/workflows/macosx.yml # TAO/NEWS # TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r--TAO/TAO_IDL/be/be_global.cpp21
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp11
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp5
-rw-r--r--TAO/TAO_IDL/be_include/be_global.h12
22 files changed, 88 insertions, 62 deletions
diff --git a/TAO/TAO_IDL/be/be_global.cpp b/TAO/TAO_IDL/be/be_global.cpp
index b72217adcc4..1906f5dd346 100644
--- a/TAO/TAO_IDL/be/be_global.cpp
+++ b/TAO/TAO_IDL/be/be_global.cpp
@@ -62,6 +62,8 @@ BE_GlobalData::BE_GlobalData (void)
stripped_filename_ (0),
core_versioning_begin_ (core_versioned_ns_begin),
core_versioning_end_ (core_versioned_ns_end),
+ anyops_versioning_begin_ (core_versioning_begin_ + "namespace CORBA {\n"),
+ anyops_versioning_end_ ("\n}" + core_versioning_end_),
versioning_begin_ (),
versioning_end_ (),
versioning_include_ (),
@@ -1150,6 +1152,9 @@ BE_GlobalData::versioning_end (const char * s)
this->core_versioning_begin_ =
this->versioning_end_ + // Yes, "end".
core_versioned_ns_begin;
+
+ this->anyops_versioning_begin_ =
+ this->core_versioning_begin_ + "namespace CORBA {\n";
}
void
@@ -1164,7 +1169,8 @@ BE_GlobalData::versioning_begin (const char * s)
core_versioned_ns_end
+ this->versioning_begin_; // Yes, "begin".
- // Yes, "begin".
+ this->anyops_versioning_end_ =
+ "\n}" + this->core_versioning_end_;
}
const char *
@@ -1179,6 +1185,18 @@ BE_GlobalData::core_versioning_end (void) const
return this->core_versioning_end_.c_str ();
}
+const char *
+BE_GlobalData::anyops_versioning_begin () const
+{
+ return this->anyops_versioning_begin_.c_str ();
+}
+
+const char *
+BE_GlobalData::anyops_versioning_end () const
+{
+ return this->anyops_versioning_end_.c_str ();
+}
+
// Set the client_hdr_ending.
void
BE_GlobalData::client_hdr_ending (const char* s)
@@ -3743,4 +3761,3 @@ BE_GlobalData::parse_args (long &i, char **av)
idl_global->parse_args_exit (1);
}
}
-
diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp
index 407755fac1b..c4d01707a17 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp
@@ -35,14 +35,14 @@ be_visitor_array_any_op_ch::visit_array (be_array *node)
TAO_INSERT_COMMENT (os);
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
<< "_forany &);" << be_nl;
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << "_forany &);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
node->cli_hdr_any_op_gen (1);
return 0;
diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp
index ce41642eb0a..d0ce00355f0 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp
@@ -34,8 +34,6 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
TAO_INSERT_COMMENT (os);
- *os << be_global->core_versioning_begin () << be_nl;
-
// Since we don't generate CDR stream operators for types that
// explicitly contain a local interface (at some level), we
// must override these Any template class methods to avoid
@@ -44,6 +42,8 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
// type is inserted into an Any and then marshaled.
if (node->is_local ())
{
+ *os << be_global->core_versioning_begin () << be_nl;
+
*os << be_nl_2
<< "namespace TAO" << be_nl
<< "{" << be_idt_nl
@@ -68,8 +68,12 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
<< "return false;" << be_uidt_nl
<< "}" << be_uidt_nl
<< "}";
+
+ *os << be_global->core_versioning_end () << be_nl;
}
+ *os << be_global->anyops_versioning_begin () << be_nl;
+
// If this is non-zero, we want to call its tc_name()
// for the TypeCode to pass to the Any operator impls.
be_typedef *td = this->ctx_->tdef ();
@@ -111,7 +115,7 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
<< ");" << be_uidt << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
node->cli_stub_any_op_gen (1);
return 0;
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp
index 00dbd55a087..ccf480df8d1 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp
@@ -78,7 +78,7 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
// Generate the Any <<= and >>= operators.
*os << be_nl_2
@@ -87,7 +87,7 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << " &);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp
index 0fbc1b65fd1..3c180a5f653 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp
@@ -132,7 +132,7 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
// Generate the Any <<= and >>= operator declarations
// Any <<= and >>= operators.
@@ -163,7 +163,7 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
<< be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp
index fecd1a54a11..bc58dc68abf 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp
@@ -79,7 +79,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << be_nl_2
<< macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
@@ -89,7 +89,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
@@ -204,4 +204,3 @@ be_visitor_exception_any_op_ch::visit_union (be_union *node)
return 0;
}
-
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp
index 3b82f48df28..ebe351e28df 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp
@@ -188,7 +188,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
// Copying insertion operator.
@@ -240,7 +240,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
<< be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
index 1e8d9c4391a..b611fbf78ec 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
@@ -89,7 +89,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
<< "_ptr); // copying" << be_nl;
@@ -98,7 +98,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << "_ptr &);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
@@ -133,4 +133,3 @@ be_visitor_interface_any_op_ch::visit_connector (
{
return this->visit_interface (node);
}
-
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
index c97c127ddbe..01ac21f6f24 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
@@ -191,7 +191,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << be_nl_2
<< "/// Copying insertion." << be_nl
@@ -235,7 +235,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
<< be_uidt << be_uidt << be_uidt_nl
<< "}" << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
@@ -267,4 +267,3 @@ be_visitor_interface_any_op_cs::visit_connector (
{
return this->visit_interface (node);
}
-
diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
index b2aae3dd716..a33e33dddae 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
@@ -86,7 +86,7 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd (
<< "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << macro << " void"
<< " operator<<= (::CORBA::Any &, " << node->name ()
@@ -98,7 +98,7 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd (
<< " operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
index 495bda7b593..885e45f43d4 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
@@ -123,7 +123,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
// Generate the Any <<= and >>= operators.
*os << macro
@@ -147,7 +147,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
<< name.c_str ()
<< " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
index 7a504a0fc62..016d0105506 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
@@ -267,7 +267,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
// Copying insertion.
*os << be_nl
@@ -318,7 +318,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
index 21d32abdd2f..8b932ea33a6 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
@@ -83,16 +83,16 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
- *os << macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
+ *os << macro << " void operator<<= (::CORBA::Any &, const ::" << node->name ()
<< " &); // copying version" << be_nl;
- *os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
+ *os << macro << " void operator<<= (::CORBA::Any &, ::" << node->name ()
<< "*); // noncopying version" << be_nl;
- *os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const "
+ *os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const ::"
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
@@ -187,4 +187,3 @@ be_visitor_structure_any_op_ch::visit_enum (be_enum *node)
return 0;
}
-
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp
index 3b9892a40a5..3f3785a5889 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp
@@ -159,19 +159,19 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
// Copying insertion.
*os << "/// Copying insertion." << be_nl
<< "void operator<<= (" << be_idt_nl
<< "::CORBA::Any &_tao_any," << be_nl
- << "const " << node->name () << " &_tao_elem)"
+ << "const ::" << node->name () << " &_tao_elem)"
<< be_uidt_nl
<< "{" << be_idt_nl
- << "TAO::Any_Dual_Impl_T<" << node->name () << ">::insert_copy ("
+ << "TAO::Any_Dual_Impl_T< ::" << node->name () << ">::insert_copy ("
<< be_idt_nl
<< "_tao_any," << be_nl
- << node->name () << "::_tao_any_destructor," << be_nl
+ << "::" << node->name () << "::_tao_any_destructor," << be_nl
<< node->tc_name () << "," << be_nl
<< "_tao_elem);"
<< be_uidt << be_uidt_nl
@@ -181,13 +181,13 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
*os << "/// Non-copying insertion." << be_nl
<< "void operator<<= (" << be_idt_nl
<< "::CORBA::Any &_tao_any," << be_nl
- << node->name () << " *_tao_elem)"
+ << "::" << node->name () << " *_tao_elem)"
<< be_uidt_nl
<< "{" << be_idt_nl
- << "TAO::Any_Dual_Impl_T<" << node->name () << ">::insert ("
+ << "TAO::Any_Dual_Impl_T< ::" << node->name () << ">::insert ("
<< be_idt_nl
<< "_tao_any," << be_nl
- << node->name () << "::_tao_any_destructor," << be_nl
+ << "::" << node->name () << "::_tao_any_destructor," << be_nl
<< node->tc_name () << "," << be_nl
<< "_tao_elem);"
<< be_uidt << be_uidt_nl
@@ -197,19 +197,19 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
*os << "/// Extraction to const pointer." << be_nl
<< "::CORBA::Boolean operator>>= (" << be_idt_nl
<< "const ::CORBA::Any &_tao_any," << be_nl
- << "const " << node->name () << " *&_tao_elem)"
+ << "const ::" << node->name () << " *&_tao_elem)"
<< be_uidt_nl
<< "{" << be_idt_nl
- << "return TAO::Any_Dual_Impl_T<" << node->name () << ">::extract ("
+ << "return TAO::Any_Dual_Impl_T< ::" << node->name () << ">::extract ("
<< be_idt_nl
<< "_tao_any," << be_nl
- << node->name () << "::_tao_any_destructor," << be_nl
+ << "::" << node->name () << "::_tao_any_destructor," << be_nl
<< node->tc_name () << "," << be_nl
<< "_tao_elem);"
<< be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp
index 13ac66f5b08..100507da35f 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp
@@ -82,7 +82,7 @@ be_visitor_union_any_op_ch::visit_union (be_union *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
<< " &); // copying version" << be_nl;
@@ -91,7 +91,7 @@ be_visitor_union_any_op_ch::visit_union (be_union *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
@@ -206,4 +206,3 @@ be_visitor_union_any_op_ch::visit_structure (be_structure *node)
return 0;
}
-
diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
index d42c997170d..1fd9a744eb8 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
@@ -155,7 +155,7 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
}
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
// Copying insertion.
*os << "/// Copying insertion." << be_nl
@@ -205,7 +205,7 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
<< be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
index b321c7dc49a..19f8a3d3a0f 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
@@ -83,7 +83,7 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node)
<< "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
<< " *); // copying" << be_nl;
@@ -94,7 +94,7 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
index a48f5875801..11b502eef6e 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
@@ -136,7 +136,7 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
<< "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << "/// Copying insertion." << be_nl
<< "void" << be_nl
@@ -181,7 +181,7 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}" << be_nl_2;
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
index 6178dacbd7e..cf127017c60 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
@@ -83,7 +83,7 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node)
<< "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
<< " *); // copying" << be_nl;
@@ -94,7 +94,7 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
@@ -110,4 +110,3 @@ be_visitor_valuetype_any_op_ch::visit_eventtype (be_eventtype *node)
{
return this->visit_valuetype (node);
}
-
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
index 99fe595abb7..c11b6c90c7c 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
@@ -146,7 +146,7 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
<< "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << "/// Copying insertion." << be_nl
<< "void" << be_nl
@@ -199,7 +199,7 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}" << be_nl_2;
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
index 6ab9b5a5021..9340099a378 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
@@ -96,7 +96,7 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd (
*os << "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
+ *os << be_global->anyops_versioning_begin () << be_nl;
*os << macro << " void"
<< " operator<<= ( ::CORBA::Any &, " << node->name ()
@@ -108,7 +108,7 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd (
<< " operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
+ *os << be_global->anyops_versioning_end () << be_nl;
if (module != 0)
{
*os << "\n\n#endif";
@@ -123,4 +123,3 @@ be_visitor_valuetype_fwd_any_op_ch::visit_eventtype_fwd (be_eventtype_fwd *node)
{
return this->visit_valuetype_fwd (node);
}
-
diff --git a/TAO/TAO_IDL/be_include/be_global.h b/TAO/TAO_IDL/be_include/be_global.h
index b7f5e351666..82991fabf8b 100644
--- a/TAO/TAO_IDL/be_include/be_global.h
+++ b/TAO/TAO_IDL/be_include/be_global.h
@@ -437,6 +437,12 @@ public:
/// related code.
const char * core_versioning_end (void) const;
+ /// Get text that opens a "versioned" namespace for CORBA::Any operators
+ const char *anyops_versioning_begin () const;
+
+ /// Get text that closes a "versioned" namespace for CORBA::Any operators
+ const char *anyops_versioning_end () const;
+
// = Set and get methods for different file name endings.
/// Set the client_hdr_ending.
@@ -981,6 +987,12 @@ private:
/// orbsvcs related code.
ACE_CString core_versioning_end_;
+ /// Text that opens a "versioned" namespace for CORBA::Any operators
+ ACE_CString anyops_versioning_begin_;
+
+ /// Text that closes a "versioned" namespace for CORBA::Any operators
+ ACE_CString anyops_versioning_end_;
+
/// Text that opens a "versioned" namespace.
ACE_CString versioning_begin_;