struct anonymous_t
{
int b1 : 1;
int b2 : 1;
int b3 : 1;
int b4 : 1;
int b5 : 4;
int resv : 24;
};
typedef union ctrl_u
{ int u32;
struct anonymous_t; /* anonymous struct */
} T_CTRL;
int main ()
{
T_CTRL reg;
reg.b6 = 0; /* cant complete reg.b6 */
return 0;
}
there is an old topic files many years ago,
https://community.slickedit.com/index.php/topic,1973.msg8272.html#msg8272but this issue still not fixed in my version SlickEdit Pro 2018 (v23.0.0.10 64-bit)
there are lots of header file is created automatically by digital design tool;
this union is used to access register bit;
it's very convenient to use reg.b1 instread of reg.xxx.b1;
most important , this anonymous struct is supported by stand C:
why slickedit not support?