diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-01-29 00:31:40 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-01-29 00:31:40 +0000 |
commit | ba74976d0dd9ded2532129af66f4ca8918043e7e (patch) | |
tree | 7ce4c6fb8755f4721574f97476c397c3a4d68e98 /TAO/TAO_IDL/driver | |
parent | 1accea3f4a01f983472556b532e02bc8f034a48b (diff) | |
download | ATCD-ba74976d0dd9ded2532129af66f4ca8918043e7e.tar.gz |
ChangeLogTag: Wed Jan 28 17:53:27 2004 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL/driver')
-rw-r--r-- | TAO/TAO_IDL/driver/drv_preproc.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp index f6b48515efe..dd53bb736c0 100644 --- a/TAO/TAO_IDL/driver/drv_preproc.cpp +++ b/TAO/TAO_IDL/driver/drv_preproc.cpp @@ -503,6 +503,8 @@ DRV_check_for_include (const char* buf) // we don't want to generate header includes for that. if (ACE_OS::strcmp (file_name, "orb.idl") == 0) { + // However, we do want to generate includes for the + // .pidl files that it contains. DRV_get_orb_idl_includes (); } else @@ -518,24 +520,17 @@ DRV_get_orb_idl_includes (void) orb_idl_path += "/orb.idl"; FILE *fd = ACE_OS::fopen (orb_idl_path.fast_rep (), "r"); - static char buf[LINEBUF_SIZE + 1]; - char *s = 0; - -// while ((s = fgets (buf, LINEBUF_SIZE, fd)) && !feof (fd)) while (DRV_get_line (fd)) { - // We really need to know whether this line is a "#include - // ...". If so, we would like to separate the "file name" and - // keep that in the idl_global. We need them to produce - // "#include's in the stubs and skeletons. -// DRV_check_for_include (buf); + // Find the included .pidl files and add them to + // the included IDL file list. DRV_check_for_include (drv_line); } ACE_OS::fclose (fd); } -// Copy from stdin to a file +// Copy to a file. static void DRV_copy_input (FILE *fin, char *fn, |