Bug 1201

Summary: tao_idl improperly handles file names with double slashes in the path
Product: TAO Reporter: gduzan
Component: IDL CompilerAssignee: DOC Center Support List (internal) <tao-support>
Status: ASSIGNED ---    
Severity: minor    
Priority: P5    
Version: 1.2.2   
Hardware: x86   
OS: Linux   

Description gduzan 2002-05-08 15:39:30 CDT
This command:

/home/gduzan/work/ACE_wrappers//TAO/TAO_IDL/tao_idl -v -Ge 1
-Wb,export_macro=QUO_Export -Wb,export_include=quo/quo_export.h
-I/home/gduzan/work/quo//idl /home/gduzan/work/quo//idl/quo.idl

(note the double slash between the last "quo" and "idl") generates this quoC.h:
===========================================================================
// -*- C++ -*-
//
// $Id$

// ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
// TAO and the TAO IDL Compiler have been developed by:
//       Center for Distributed Object Computing
//       Washington University
//       St. Louis, MO
//       USA
//       http://www.cs.wustl.edu/~schmidt/doc-center.html
// and
//       Distributed Object Computing Laboratory
//       University of California at Irvine
//       Irvine, CA
//       USA
//       http://doc.ece.uci.edu/
//
// Information about TAO is available at:
//     http://www.cs.wustl.edu/~schmidt/TAO.html

#ifndef _TAO_IDL_QUOC_H_
#define _TAO_IDL_QUOC_H_

#include "tao/corba.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "quo/quo_export.h"
#include "rssC.h"

#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
#endif
#define TAO_EXPORT_MACRO QUO_Export

#if defined (TAO_EXPORT_NESTED_CLASSES)
#  if defined (TAO_EXPORT_NESTED_MACRO)
#    undef TAO_EXPORT_NESTED_MACRO
#  endif /* defined (TAO_EXPORT_NESTED_MACRO) */
#  define TAO_EXPORT_NESTED_MACRO QUO_Export
#endif /* TAO_EXPORT_NESTED_CLASSES */

#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */

#if defined (__BORLANDC__)
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */


#ifndef __ACE_INLINE__


#endif /* __ACE_INLINE__ */


#if defined (__ACE_INLINE__)
#include "quoC.i"
#endif /* defined INLINE */

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */

#if defined (__BORLANDC__)
#pragma option pop
#endif /* __BORLANDC__ */

#endif /* ifndef */
===========================================================================

The other generated files are similarly content-free.

This command:

/home/gduzan/work/ACE_wrappers//TAO/TAO_IDL/tao_idl -v -Ge 1
-Wb,export_macro=QUO_Export -Wb,export_include=quo/quo_export.h
-I/home/gduzan/work/quo//idl /home/gduzan/work/quo/idl/quo.idl

(note the single slash between the last "quo" and "idl") generates the expected
code.
Comment 1 Jeff Parsons 2002-05-16 12:51:46 CDT
Accepted.
Comment 2 Jeff Parsons 2002-05-19 16:06:07 CDT
I think this is a preprocessor issue. The VC++, Sun, and GNU preprocessors all
handle the double slashes with no problem.