Its only use was causing code duplication in the AST printer anyway.
Everybody else already uses compound.
return;
case ENTITY_STRUCT:
print_string("struct ");
- print_string(entity->base.symbol->string);
- if (entity->structe.complete) {
- print_string(" ");
- print_compound_definition(&entity->structe);
- }
- print_string(";");
- return;
+ goto print_compound;
case ENTITY_UNION:
print_string("union ");
+print_compound:
print_string(entity->base.symbol->string);
- if (entity->unione.complete) {
+ if (entity->compound.complete) {
print_string(" ");
- print_compound_definition(&entity->unione);
+ print_compound_definition(&entity->compound);
}
print_string(";");
return;
union entity_t {
entity_kind_t kind;
entity_base_t base;
- compound_t structe;
- compound_t unione;
compound_t compound;
enum_t enume;
enum_value_t enum_value;