[omniORB] omniidl2 code generation
Stefan Seefeld
seefelds@MAGELLAN.UMontreal.CA
Wed, 09 Jun 1999 16:18:36 +0000
Bruce Visscher wrote:
>
> David Riddoch wrote:
>
> > On Tue, 1 Jun 1999, Stefan Seefeld wrote:
> >
> > > And, while we are at it, I have a little wish list for omniidl2.
> > > I'd like to be able to set with an option the prefix for generated
> > > '#include <Foo.hh>' lines so they become '#include <prefix/Foo.hh>'
> > > when 'prefix' is given as a command line option.
>
> Maybe I'm missing something, but what's wrong with "omniidl2 -Iprefix/"?
the -I flag is used by omniidl2 (the preprocessor called by omniidl2) to
locate the includes in the IDL file. For example if you have
#ifndef _A_idl
#define _A_idl
#include <B.idl>
interface A : A {};
#endif
then 'omniidl2 -Iprefix A.idl' would look in prefix for B.idl. However, it
would generate code such as
#ifndef __A_hh__
#define __A_hh__
#include <B.hh>
....
but I want it to produce an include statement
#include <prefix/B.hh>
by some flag.
Stefan
_______________________________________________________
Stefan Seefeld
Departement de Physique
Universite de Montreal
email: seefelds@magellan.umontreal.ca
_______________________________________________________
...ich hab' noch einen Koffer in Berlin...