hidva/clayout

pretty type name

hidva opened this issue · 0 comments

hidva commented
union u {
	long u_l;
	char u_c;
	long u_b: 2;
	S1 s1;
};

will be translated to

struct HidvaStruct1 {  // #2
  long int l;
  char ch;
} __attribute__((__packed__));


// tyidx=TypeIndex { input_id: 0, typoff: TypeOffset(92) } tyname=::u
union HidvaUnion3 {  // #1
  long int u_l;
  char u_c;
  __u8 __bitfield0[1];  
  struct HidvaStruct1 s1;  // #2
  __u8 __HIDVA_dont_use2[16];
} __attribute__((__packed__));