summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-31 13:25:58 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-31 13:25:58 +0000
commit4faee4462ac506b29e340926f3e5248a8679a2e7 (patch)
tree7d2f9d2f06d6fb96fbc8fc3a13f0331018f0ad68
parent15114b5d90ffdb42c9000ed4a9a232462fab6fba (diff)
downloadATCD-4faee4462ac506b29e340926f3e5248a8679a2e7.tar.gz
ChangeLogTag: Tue Aug 31 8:15:00 1999 Michael Kircher <Michael.Kircher@mchp.siemens.de>
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface.cpp83
1 files changed, 41 insertions, 42 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
index ea19e6a6b7b..a3ddb9ac7c5 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
@@ -543,52 +543,51 @@ be_visitor_interface::visit_operation (be_operation *node)
// AMI Call back code generation.
//
- // Return if AMI call back is not enabled.
- if (idl_global->ami_call_back () != I_TRUE)
+ // Only if AMI callbacks are enabled.
+ if (idl_global->ami_call_back () == I_TRUE)
{
- return 0;
- }
- // Generate AMI <sendc_> method, for this operation, if you are
- // doing client header.
-
- switch (this->ctx_->state ())
- {
- case TAO_CodeGen::TAO_INTERFACE_CH:
- ctx.state (TAO_CodeGen::TAO_AMI_OPERATION_CH);
- break;
-
- case TAO_CodeGen::TAO_INTERFACE_CS:
- ctx.state (TAO_CodeGen::TAO_AMI_OPERATION_CS);
- break;
-
- default:
- // We dont have to do anything for the other cases.
- return 0;
- }
-
- // Grab the appropriate visitor.
- visitor = tao_cg->make_visitor (&ctx);
- if (!visitor)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) be_visitor_interface::"
- "visit_operation - "
- "NUL visitor\n"),
- -1);
+ // Generate AMI <sendc_> method, for this operation, if you are
+ // doing client header.
+
+ switch (this->ctx_->state ())
+ {
+ case TAO_CodeGen::TAO_INTERFACE_CH:
+ ctx.state (TAO_CodeGen::TAO_AMI_OPERATION_CH);
+ break;
+
+ case TAO_CodeGen::TAO_INTERFACE_CS:
+ ctx.state (TAO_CodeGen::TAO_AMI_OPERATION_CS);
+ break;
+
+ default:
+ // We dont have to do anything for the other cases.
+ return 0;
+ }
+
+ // Grab the appropriate visitor.
+ visitor = tao_cg->make_visitor (&ctx);
+ if (!visitor)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_interface::"
+ "visit_operation - "
+ "NUL visitor\n"),
+ -1);
+ }
+
+ // Visit the node using this visitor
+ if (node->accept (visitor) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_interface::"
+ "visit_operation - "
+ "failed to accept visitor\n"),
+ -1);
+ }
+ delete visitor;
}
- // Visit the node using this visitor
- if (node->accept (visitor) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) be_visitor_interface::"
- "visit_operation - "
- "failed to accept visitor\n"),
- -1);
- }
- delete visitor;
-
return 0;
}