X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_t.h;h=9d2b61e9483e8b28c1072df9e2a7844beab3f7b7;hb=97f33b63c421063c4cbc869c60076b9132667835;hp=6e05d31cf41ee06a4f1ad2dd6f9f1bae0012dce2;hpb=d5e8df5885f97ea65839f8970b8697549c207610;p=cparser diff --git a/type_t.h b/type_t.h index 6e05d31..9d2b61e 100644 --- a/type_t.h +++ b/type_t.h @@ -14,7 +14,6 @@ typedef enum { TYPE_COMPOUND_STRUCT, TYPE_COMPOUND_UNION, TYPE_ENUM, - TYPE_TYPEDEF, TYPE_METHOD, TYPE_POINTER } type_type_t; @@ -49,8 +48,16 @@ typedef enum { #endif } atomic_type_type_t; +typedef enum { + TYPE_QUALIFIER_CONST = 1 << 0, + TYPE_QUALIFIER_RESTRICT = 1 << 1, + TYPE_QUALIFIER_VOLATILE = 1 << 2, + TYPE_QUALIFIER_INLINE = 1 << 3, +} type_qualifier_t; + struct type_t { type_type_t type; + unsigned qualifiers; }; struct atomic_type_t { @@ -89,4 +96,10 @@ struct compound_type_t { source_position_t source_position; }; +struct enum_type_t { + /* todo */ + symbol_t *symbol; + source_position_t source_position; +}; + #endif