summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_root/root.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_root/root.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root.cpp56
1 files changed, 11 insertions, 45 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root.cpp b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
index 5847b489aa0..e02566fca6d 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
@@ -159,9 +159,7 @@ int be_visitor_root::visit_root (be_root *node)
// *ASG* - this is a tempoaray hack soln so that our CDR operators get
// generated in the *.i file rather than the *.cpp file
- if (this->ctx_->state () != TAO_CodeGen::TAO_ROOT_CI
- && this->ctx_->state () != TAO_CodeGen::TAO_ROOT_IH
- && this->ctx_->state () != TAO_CodeGen::TAO_ROOT_IS)
+ if (this->ctx_->state () != TAO_CodeGen::TAO_ROOT_CI && this->ctx_->state () != TAO_CodeGen::TAO_ROOT_IH && this->ctx_->state () != TAO_CodeGen::TAO_ROOT_IS)
{
visitor = tao_cg->make_visitor (&ctx);
if (!visitor)
@@ -197,13 +195,11 @@ int be_visitor_root::visit_root (be_root *node)
ctx.state (TAO_CodeGen::TAO_ROOT_CDR_OP_CH);
break;
case TAO_CodeGen::TAO_ROOT_CI:
- ctx.state (TAO_CodeGen::TAO_ROOT_CDR_OP_CI);
- break;
- case TAO_CodeGen::TAO_ROOT_CS:
ctx.state (TAO_CodeGen::TAO_ROOT_CDR_OP_CS);
break;
case TAO_CodeGen::TAO_ROOT_SH:
case TAO_CodeGen::TAO_ROOT_IH:
+ case TAO_CodeGen::TAO_ROOT_CS:
case TAO_CodeGen::TAO_ROOT_SI:
case TAO_CodeGen::TAO_ROOT_SS:
case TAO_CodeGen::TAO_ROOT_IS:
@@ -347,9 +343,6 @@ be_visitor_root::visit_enum (be_enum *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_ENUM_CDR_OP_CS);
break;
@@ -426,9 +419,6 @@ be_visitor_root::visit_exception (be_exception *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_EXCEPTION_CDR_OP_CS);
break;
@@ -519,9 +509,6 @@ be_visitor_root::visit_interface (be_interface *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_INTERFACE_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_INTERFACE_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_INTERFACE_CDR_OP_CS);
break;
@@ -579,22 +566,20 @@ be_visitor_root::visit_interface_fwd (be_interface_fwd *node)
case TAO_CodeGen::TAO_ROOT_CI:
ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CI);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
- ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CDR_OP_CS);
+ ctx.state (TAO_CodeGen::TAO_INTERFACE_FWD_CDR_OP_CI);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
case TAO_CodeGen::TAO_ROOT_ANY_OP_CH:
case TAO_CodeGen::TAO_ROOT_ANY_OP_CS:
+ case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
+ case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
case TAO_CodeGen::TAO_ROOT_CS:
case TAO_CodeGen::TAO_ROOT_SH:
case TAO_CodeGen::TAO_ROOT_SI:
case TAO_CodeGen::TAO_ROOT_SS:
- case TAO_CodeGen::TAO_ROOT_IS:
- case TAO_CodeGen::TAO_ROOT_IH:
- return 0; // nothing to be done
+ case TAO_CodeGen::TAO_ROOT_IS:
+ case TAO_CodeGen::TAO_ROOT_IH:
+ return 0; // nothing to be done
default:
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -657,9 +642,6 @@ be_visitor_root::visit_valuetype (be_valuetype *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_VALUETYPE_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_VALUETYPE_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_VALUETYPE_CDR_OP_CS);
break;
@@ -725,17 +707,13 @@ be_visitor_root::visit_valuetype_fwd (be_valuetype_fwd *node)
case TAO_CodeGen::TAO_ROOT_CI:
ctx.state (TAO_CodeGen::TAO_VALUETYPE_FWD_CI);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
- ctx.state (TAO_CodeGen::TAO_VALUETYPE_FWD_CDR_OP_CH);
- break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_VALUETYPE_FWD_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
- ctx.state (TAO_CodeGen::TAO_VALUETYPE_FWD_CDR_OP_CS);
+ ctx.state (TAO_CodeGen::TAO_VALUETYPE_FWD_CDR_OP_CI);
break;
case TAO_CodeGen::TAO_ROOT_ANY_OP_CH:
case TAO_CodeGen::TAO_ROOT_ANY_OP_CS:
+ case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
+ case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
case TAO_CodeGen::TAO_ROOT_CS:
case TAO_CodeGen::TAO_ROOT_SH:
case TAO_CodeGen::TAO_ROOT_SI:
@@ -826,9 +804,6 @@ be_visitor_root::visit_module (be_module *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_MODULE_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_MODULE_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_MODULE_CDR_OP_CS);
break;
@@ -898,9 +873,6 @@ be_visitor_root::visit_structure (be_structure *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_STRUCT_CDR_OP_CS);
break;
@@ -976,9 +948,6 @@ be_visitor_root::visit_union (be_union *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_UNION_CDR_OP_CS);
break;
@@ -1054,9 +1023,6 @@ be_visitor_root::visit_typedef (be_typedef *node)
case TAO_CodeGen::TAO_ROOT_CDR_OP_CH:
ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CH);
break;
- case TAO_CodeGen::TAO_ROOT_CDR_OP_CI:
- ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CI);
- break;
case TAO_CodeGen::TAO_ROOT_CDR_OP_CS:
ctx.state (TAO_CodeGen::TAO_TYPEDEF_CDR_OP_CS);
break;