remove more unnecessary XXX_INVALID constants
[cparser] / entity_t.h
index a543a89..8c770ea 100644 (file)
@@ -28,8 +28,7 @@
 #include "builtins.h"
 
 typedef enum {
-       ENTITY_INVALID,
-       ENTITY_VARIABLE,
+       ENTITY_VARIABLE = 1,
        ENTITY_COMPOUND_MEMBER,
        ENTITY_PARAMETER,
        ENTITY_FUNCTION,
@@ -46,8 +45,7 @@ typedef enum {
 typedef unsigned char entity_kind_t;
 
 typedef enum namespace_tag_t {
-       NAMESPACE_INVALID,
-       NAMESPACE_NORMAL,
+       NAMESPACE_NORMAL = 1,
        NAMESPACE_TAG,
        NAMESPACE_LABEL
 } namespace_tag_t;
@@ -210,6 +208,8 @@ struct compound_member_t {
        declaration_t  base;
        il_size_t      offset;     /**< the offset of this member in the compound */
        unsigned char  bit_offset; /**< extra bit offset for bitfield members */
+       unsigned char  bit_size;   /**< bitsize for bitfield members */
+       bool           bitfield      : 1;  /**< member is (part of) a bitfield */
        bool           read          : 1;
        bool           address_taken : 1;  /**< Set if the address of this
                                                declaration was taken. */