diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-08-23 18:29:46 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2002-08-23 18:29:46 +0000 |
commit | 3c54afe069ec4bb1e4a9e5f3583b03b2f6fbcd85 (patch) | |
tree | 8d1f5a4c574873c65b50b9a5bde00e37d3381da2 /TAO/TAO_IDL/be/be_visitor_constant | |
parent | 171fea17d81a4bc1fcc8f9c1c0332ab332019edf (diff) | |
download | ATCD-3c54afe069ec4bb1e4a9e5f3583b03b2f6fbcd85.tar.gz |
ChangeLogTag:Fri Aug 23 11:23:07 2002 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_constant')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp index b3b45af834d..3a55d073cc8 100644 --- a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp @@ -18,8 +18,8 @@ // // ============================================================================ -ACE_RCSID (be_visitor_constant, - constant_cs, +ACE_RCSID (be_visitor_constant, + constant_cs, "$Id$") @@ -39,12 +39,12 @@ be_visitor_constant_cs::~be_visitor_constant_cs (void) // visit the Constant_cs node and its scope int -be_visitor_constant_cs::visit_constant (be_constant *node) +be_visitor_constant_cs::visit_constant (be_constant * /* node */) { /* TAO_OutStream *os = this->ctx_->stream (); - if (!node->cli_stub_gen () + if (!node->cli_stub_gen () && !node->imported () && !be_global->gen_inline_constants ()) { @@ -64,7 +64,7 @@ be_visitor_constant_cs::visit_constant (be_constant *node) } *os << ")" << be_nl; - be_module *module = + be_module *module = be_module::narrow_from_scope (node->defined_in ()); if (!module || this->gen_nested_namespace_begin (module) == -1) @@ -106,7 +106,7 @@ be_visitor_constant_cs::visit_constant (be_constant *node) os->indent (); *os << "const "; - + if (node->et () == AST_Expression::EV_enum) { *os << node->enum_full_name (); @@ -115,7 +115,7 @@ be_visitor_constant_cs::visit_constant (be_constant *node) { *os << node->exprtype_to_string (); } - + *os << " " << node->name () << " = " << node->constant_value () << ";\n\n"; |