ALIGNOF_CORBA_* defines



At the moment I am compiling ORBit (0.5.7) on OpenStep.
I do not like the configure scripts so I am creating
all the automatically created files by hand.

If I look at the global config.h file that the
configure script spits out I notice the following block
defines:

#define ALIGNOF_CORBA_BOOLEAN 1
...
#define ALIGNOF_CORBA_DOUBLE 4
...
#define ALIGNOF_CORBA_POINTER 4


I don't know what the maning of these defines
is, but if I compare it with the CORBA GIOP specification
I see that that asks for

type       alignment

BOOLEAN       	1
DOUBLE          8 !!!!  (NOT EQUAL TO 4)

So my question is, is this a bug? Or is the meaning
of ALIGNOF_CORBA_* not what I think it is?

(It seems however that changing the 4 --> 8 fixes
my problem with sending back and forth doubles between
two different machines).

Wim Oudshoorn.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]