summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
diff options
context:
space:
mode:
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.cpp12
1 files changed, 4 insertions, 8 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 f8b82d6286d..3ca5ff12115 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
@@ -63,11 +63,6 @@ be_visitor_enum_ch::visit_enum (be_enum *node)
), -1);
}
- os->indent ();
- // The following ensures that the underlying enum type
- // is 32 bits
- *os << node->local_name ()
- << "_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF\n";
os->decr_indent ();
*os << "};" << be_nl;
// As per the ORBOS spec, we need the following typedef
@@ -96,12 +91,13 @@ be_visitor_enum_ch::visit_enum (be_enum *node)
}
int
-be_visitor_enum_ch::post_process (be_decl *)
+be_visitor_enum_ch::post_process (be_decl *bd)
{
TAO_OutStream *os = this->ctx_->stream ();
-
- *os << "," << be_nl;
+ // Am I the last one?
+ if (!this->last_node (bd))
+ *os << "," << be_nl;
return 0;
}