summaryrefslogtreecommitdiff
path: root/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-04-16 16:44:15 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-04-16 16:44:15 +0000
commit92ec0525b494800cf8989ef3c0bb1230f5dda00b (patch)
tree1e7e7901ef62d469a767fb5a8bbb0041d0ec64cd /CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
parentf40d7ec37d13844d384b61d6ebbb70a844526334 (diff)
downloadATCD-92ec0525b494800cf8989ef3c0bb1230f5dda00b.tar.gz
ChangeLogTag: Fri Apr 16 16:41:36 UTC 2010 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp')
-rw-r--r--CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp32
1 files changed, 24 insertions, 8 deletions
diff --git a/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp b/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
index b9a4206665c..d68d42fdcd2 100644
--- a/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
+++ b/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
@@ -154,20 +154,24 @@ idl3_to_idl2_visitor::visit_component (AST_Component *node)
<< IdentifierHelper::try_escape (node->original_local_name ()).c_str ();
AST_Component *base = node->base_component ();
- long nsupports = node->n_supports ();
- *os << " : "
+ *os << be_idt_nl
+ << ": "
<< (base != 0
? IdentifierHelper::orig_sn (base->name ()).c_str ()
- : "Components::CCMObject");
+ : "Components::CCMObject")
+ << be_idt;
+
+ long nsupports = node->n_supports ();
+ AST_Type **sups = node->supports ();
for (long i = 0; i < nsupports; ++i)
{
- *os << ", "
- << IdentifierHelper::orig_sn (node->supports ()[i]->name ()).c_str ();
+ *os << "," << be_nl
+ << IdentifierHelper::orig_sn (sups[i]->name ()).c_str ();
}
- *os << be_nl
+ *os << be_uidt << be_uidt_nl
<< "{" << be_idt;
this->check_id_and_version (node);
@@ -531,7 +535,8 @@ idl3_to_idl2_visitor::visit_home (AST_Home *node)
explicit_name += "Explicit";
*os << be_nl << be_nl
- << "interface " << explicit_name.c_str () << " : ";
+ << "interface " << explicit_name.c_str () << be_idt_nl
+ << ": ";
AST_Home *base = node->base_home ();
@@ -544,8 +549,19 @@ idl3_to_idl2_visitor::visit_home (AST_Home *node)
*os << IdentifierHelper::orig_sn (base->name (), true).c_str ()
<< "Explicit";
}
+
+ *os << be_idt;
- *os << be_nl
+ long nsupports = node->n_supports ();
+ AST_Type **sups = node->supports ();
+
+ for (long i = 0; i < nsupports; ++i)
+ {
+ *os << "," << be_nl
+ << IdentifierHelper::orig_sn (sups[i]->name ()).c_str ();
+ }
+
+ *os << be_uidt << be_uidt_nl
<< "{" << be_idt;
this->check_id_and_version (node);