diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-09-25 16:25:39 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-09-25 16:25:39 +0000 |
commit | 74e496c02eed5efc93bff0d14b2e39ac63f996d7 (patch) | |
tree | d8c088424cc4d957360cb3b13bfc4f0d2ae21dfa /TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp | |
parent | c7acd0e9fc7ae6e83664ca0022ee1e58d798954d (diff) | |
download | ATCD-74e496c02eed5efc93bff0d14b2e39ac63f996d7.tar.gz |
ChangeLogTag: Wed Sep 25 11:12:59 2002 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp index 61cae521526..d7384b3666c 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp @@ -53,7 +53,7 @@ be_visitor_enum_ch::visit_enum (be_enum *node) // Comma to be generated by the scope visitor. this->ctx_->comma (1); - *os << "// TAO_IDL - Generated from" << be_nl + *os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl; *os << "enum " << node->local_name () << be_nl; @@ -74,13 +74,10 @@ be_visitor_enum_ch::visit_enum (be_enum *node) // As per the ORBOS spec, we need the following typedef *os << "typedef " << node->local_name () << " &" << node->local_name () - << "_out;" << be_nl << be_nl; + << "_out;"; - if (!node->is_local ()) + if (be_global->tc_support ()) { - // By using a visitor to declare and define the TypeCode, we have - // the added advantage to conditionally not generate any code. This - // will be based on the command line options. This is still TO-DO. be_visitor_context ctx (*this->ctx_); ctx.state (TAO_CodeGen::TAO_TYPECODE_DECL); be_visitor_typecode_decl visitor (&ctx); |