Re: Union Type support ?



Hi,

It also occurs in 0.5.3.  Seems to be related to using "default:" in
the union.  Should be easy to fix if it hasn't been already, since
adding:

static const CORBA_unsigned_long zero_int = 0;

to the top of the *-common.c file seems to be all that is needed.  It
may be trying to refer to the zero_int which is defined in orbit.c,
but that one is declared static.


> From: =?euc-kr?B?wOXBvsf2?= <jangjh etri re kr>
> To: orbit-list gnome org
> Subject: Union Type support ?
> Date: Thu, 14 Sep 2000 11:00:10 +0900
> 
> Using ORBit-0.5.1
> 
> four.idl
> =====
> interface Four {
>         union UFixed switch(char) {
>                 case 'a': long x;
>                 case 'b': short y;
>                 default: float z;
>         };
>         UFixed doUFixed(in UFixed inparam, out UFixed outparam, inout UFixed inoutparam);
> }
> 
> Compile step :
>   four-common.c
>   four-common.c:89: `zero_int' undeclared here (not in a function)
>   four-common.c:89: initializer element is not constant
>   four-common.c:89: (near initialization for `anon_sublabels_array15[2]._value')
>   gmake: *** [four-common.o] Error 1
> 
> 
> At ORBit-0.5.1, Union Type Can't support ?

Later,
--Chris
+-------------------------------+---------------------------------+
| Chris S Jones, Intel Corp.    :    chris jones intel com        |
| 2111 N.E. 25th Ave, JF4-354   :    (503) 712-2935               |
| Hillsboro, OR 97124           :    #include <std.disclaimer>    |
+-------------------------------+---------------------------------+




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