summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-22 03:28:51 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-22 03:28:51 +0000
commit888c6d3b9076500a705ec36899e9227b0fd48998 (patch)
tree7b48cc7d55a552f5a2da86d641304dc9d2f83f00
parentb9157dbc6b046fdfb7376be8b6c12bc9dc83c5c3 (diff)
downloadATCD-888c6d3b9076500a705ec36899e9227b0fd48998.tar.gz
Fixed the problem with #include'ing the server skeleton header of the
another #included idl file. Thanks to Stach (t.stach@inobis.de) for tracking this down.
-rw-r--r--TAO/TAO_IDL/be/be_codegen.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp
index 8fa303c220a..48a14e7be7f 100644
--- a/TAO/TAO_IDL/be/be_codegen.cpp
+++ b/TAO/TAO_IDL/be/be_codegen.cpp
@@ -171,12 +171,12 @@ TAO_CodeGen::start_client_header (const char *fname)
char* idl_name =
idl_global->included_idl_files ()[j];
- // Make a String out of it.
+ // Make a String out of it.
String idl_name_str = idl_name;
// Get the clnt header from the IDL file name.
const char* client_hdr =
- IDL_GlobalData::be_get_client_hdr (&idl_name_str);
+ IDL_GlobalData::be_get_client_hdr (&idl_name_str, 1);
// Sanity check and then print.
if (client_hdr != 0)
@@ -334,6 +334,9 @@ TAO_CodeGen::start_server_header (const char *fname)
// We must include all the skeleton headers corresponding to
// IDL files included by the current IDL file.
+ // We will use the included IDL file names as they appeared
+ // in the original main IDL file, not the one which went
+ // thru CC preprocessor.
for (size_t j = 0;
j < idl_global->n_included_idl_files ();
++j)
@@ -345,12 +348,12 @@ TAO_CodeGen::start_server_header (const char *fname)
String idl_name_str (idl_name);
const char* server_hdr =
- IDL_GlobalData::be_get_server_hdr (&idl_name_str);
+ IDL_GlobalData::be_get_server_hdr (&idl_name_str, 1);
this->server_header_->print ("#include \"%s\"\n",
server_hdr);
}
- // the server header should include the client header
+ // the server header should include the client header
*this->server_header_ << "#include \"" <<
idl_global->be_get_client_hdr_fname (1) << "\"\n\n";