X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=entity_t.h;h=401b8b6c013077e45b5a144b78d20c55d8bc208d;hb=09964a9e87be1ddf585aef762a0042feff30ce87;hp=2f4e892d253f68ed81a4591f2c75f858ea9784d6;hpb=1a47a352dc074585e56b11a6e1e693e8ece6b5be;p=cparser diff --git a/entity_t.h b/entity_t.h index 2f4e892..401b8b6 100644 --- a/entity_t.h +++ b/entity_t.h @@ -290,16 +290,16 @@ union entity_t { compound_member_t compound_member; }; -#define DECLARATION_KIND_CASES \ - case ENTITY_FUNCTION: \ - case ENTITY_VARIABLE: \ - case ENTITY_PARAMETER: \ - case ENTITY_COMPOUND_MEMBER: +#define DECLARATION_KIND_CASES \ + ENTITY_FUNCTION: \ + case ENTITY_VARIABLE: \ + case ENTITY_PARAMETER: \ + case ENTITY_COMPOUND_MEMBER static inline bool is_declaration(const entity_t *entity) { switch(entity->kind) { - DECLARATION_KIND_CASES + case DECLARATION_KIND_CASES: return true; default: return false; @@ -312,4 +312,6 @@ entity_t *allocate_entity_zero(entity_kind_t, entity_namespace_t, symbol_t*); elf_visibility_tag_t get_elf_visibility_from_string(const char *string); +entity_t *skip_unnamed_bitfields(entity_t*); + #endif