summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_interface.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_interface.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp
index a3ef97c7a71..2de82017bef 100644
--- a/TAO/TAO_IDL/be/be_interface.cpp
+++ b/TAO/TAO_IDL/be/be_interface.cpp
@@ -560,14 +560,18 @@ be_interface:: gen_var_out_seq_decls (void)
return;
}
+ const char *lname = this->local_name ();
TAO_OutStream *os = tao_cg->client_header ();
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
+ << "// " << __FILE__ << ":" << __LINE__;
- const char *lname = this->local_name ();
+ // Generate the ifdefined macro for this interface.
+ os->gen_ifdef_macro (this->flat_name (),
+ "odds_n_ends");
- *os << "class " << lname << ";" << be_nl
+ *os << be_nl << be_nl
+ << "class " << lname << ";" << be_nl
<< "typedef " << lname << " *" << lname << "_ptr;" << be_nl
<< "struct tao_" << lname << "_life;" << be_nl
<< "typedef TAO_Objref_Var_T<" << lname << ", tao_"
@@ -601,6 +605,8 @@ be_interface:: gen_var_out_seq_decls (void)
<< "};";
}
+ os->gen_endif ();
+
this->var_out_seq_decls_gen_ = 1;
}