summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-08-25 20:09:37 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-08-25 20:09:37 +0000
commit1a9e78e6f5f5d584df04b51cadc26607d121c807 (patch)
treeadc5c690dc891130d81a2b5ef50fd4d02c9cfd5e
parent41d734e0f18f24c311799941b6cf558a49ae6201 (diff)
downloadATCD-1a9e78e6f5f5d584df04b51cadc26607d121c807.tar.gz
ChangeLogTag: Sun Aug 25 15:07:05 2002 Jeff Parsons <parsons@cs.wustl.edu>
-rw-r--r--TAO/ChangeLog6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp5
2 files changed, 9 insertions, 2 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 4af94322c6b..afa4ac8b432 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,9 @@
+Sun Aug 25 15:07:05 2002 Jeff Parsons <parsons@cs.wustl.edu>
+
+ * TAO_IDL/be/be_visitor_constant/constant_ch.cpp:
+
+ Moved the placement of the generated "const" modifier.
+
Sat Aug 24 22:47:22 2002 Christopher Kohlhoff <chris@kohlhoff.com>
* examples/POA/Loader/Servant_Activator.cpp:
diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
index c3ec5bc9c2a..67099d736cc 100644
--- a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
@@ -58,6 +58,8 @@ be_visitor_constant_ch::visit_constant (be_constant *node)
if (! node->is_nested ()
|| node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
+ *os << "const ";
+
if (node->et () == AST_Expression::EV_enum)
{
*os << node->enum_full_name ();
@@ -67,8 +69,7 @@ be_visitor_constant_ch::visit_constant (be_constant *node)
*os << node->exprtype_to_string ();
}
- *os << " const "
- << node->local_name () << " = "
+ *os << " " << node->local_name () << " = "
<< node->constant_value ();
}
// We are nested inside an interface or a valuetype.