typedef union and struct
Posted: Fri Apr 13, 2012 6:47 am
hello
how I can define the following structure in C code to Flowcode.
The following example gives me compile error, missing bracket.
Flowcode1.c(1364): error: missing right brace
typedef union ELINMINT_MESSAGE_SIZE
{
unsigned char SIZE;
struct
{
unsigned SIZE0:1;
unsigned SIZE1:1;
unsigned SIZE2:1;
unsigned SIZE3:1;
unsigned SIZE4:1;
unsigned SIZE5:1;
unsigned SIZE6:1;
unsigned SIZE7:1;
} SIZEbits;
} ELINMINT_MESSAGE_SIZE;
how I can define the following structure in C code to Flowcode.
The following example gives me compile error, missing bracket.
Flowcode1.c(1364): error: missing right brace
typedef union ELINMINT_MESSAGE_SIZE
{
unsigned char SIZE;
struct
{
unsigned SIZE0:1;
unsigned SIZE1:1;
unsigned SIZE2:1;
unsigned SIZE3:1;
unsigned SIZE4:1;
unsigned SIZE5:1;
unsigned SIZE6:1;
unsigned SIZE7:1;
} SIZEbits;
} ELINMINT_MESSAGE_SIZE;