summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-21 22:37:55 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-21 22:37:55 +0000
commit1180c47d15b589f2026871597593548de0e5f9e6 (patch)
treedfb8430d0c652750a74b68c427b172124f4f2f25
parent9454295951b2832d975624d78c1ad9439df1b660 (diff)
downloadATCD-1180c47d15b589f2026871597593548de0e5f9e6.tar.gz
Took care of #includes with <>'s in the idl files.
-rw-r--r--TAO/TAO_IDL/driver/drv_preproc.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp
index 0b38a8f7bcc..6c5a3cb405e 100644
--- a/TAO/TAO_IDL/driver/drv_preproc.cpp
+++ b/TAO/TAO_IDL/driver/drv_preproc.cpp
@@ -399,7 +399,7 @@ DRV_check_for_include (const char* buf)
{
const char* r = buf;
const char* h;
-
+
// Skip initial '#'.
if (*r != '#')
return;
@@ -422,14 +422,19 @@ DRV_check_for_include (const char* buf)
return;
// Next thing is finding the file that has been `#include'd. Skip
- // all the blanks and tabs and reach the startng " character.
- for (; *r != '"'; r++)
+ // all the blanks and tabs and reach the startng " or < character.
+ for (; (*r != '"') && (*r != '<'); r++)
if (*r == '\n' || *r == '\0')
return;
- // Skip this ".
+ // Decide on the end char.
+ char end_char = '"';
+ if (*r == '<')
+ end_char = '>';
+
+ // Skip this " or <.
r++;
-
+
// Store this position.
h = r;
@@ -437,8 +442,8 @@ DRV_check_for_include (const char* buf)
if (*h == '\0')
return;
- // Find the closing " character.
- for (; *r != '"'; r++)
+ // Find the closing " or < character.
+ for (; *r != end_char; r++)
continue;
// Make a new string for this file name.