summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-24 23:18:16 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-24 23:18:16 +0000
commit51fb143e645d04a4aa050535953e52988de954a3 (patch)
tree02c2daa2a5a640de33354712ca87c02786d903a3
parent7d2f20ebd617942c884666a8c3d9f829f3670958 (diff)
downloadATCD-51fb143e645d04a4aa050535953e52988de954a3.tar.gz
Generates extra enum value equal to 0xFFFFFFFF to ensure that
enums are always 32 bits.
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp5
1 files changed, 4 insertions, 1 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 3ca5ff12115..cc7fbcd1bfa 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
@@ -63,6 +63,9 @@ be_visitor_enum_ch::visit_enum (be_enum *node)
), -1);
}
+ os->indent ();
+ *os << node->local_name ()
+ << "_TAO_ENUM_32BIT_ENFORCER = 0xFFFFFFFF\n";
os->decr_indent ();
*os << "};" << be_nl;
// As per the ORBOS spec, we need the following typedef
@@ -96,7 +99,7 @@ be_visitor_enum_ch::post_process (be_decl *bd)
TAO_OutStream *os = this->ctx_->stream ();
// Am I the last one?
- if (!this->last_node (bd))
+// if (!this->last_node (bd))
*os << "," << be_nl;
return 0;
}