X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=type_t.h;h=67a23b935417dcfdd24d22d94c74e315f8d0b104;hb=ae40d62f736098a12e3e31ab2d5cfb24f2467742;hp=de76857b09c8803bc5bd91c996da528d68207339;hpb=34471c5dd819ab71185ae606181aaa8c61673e9b;p=cparser diff --git a/type_t.h b/type_t.h index de76857..67a23b9 100644 --- a/type_t.h +++ b/type_t.h @@ -60,10 +60,10 @@ typedef enum { } atomic_type_type_t; typedef enum { + TYPE_QUALIFIER_NONE = 0, 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 { @@ -103,16 +103,16 @@ struct function_parameter_t { }; struct function_type_t { - type_t type; - type_t *result_type; + type_t type; + type_t *result_type; function_parameter_t *parameters; - bool variadic; - bool unspecified_parameters; + bool variadic; + bool unspecified_parameters; }; struct compound_type_t { type_t type; - /** the declaration of the compound type, it's context field + /** the declaration of the compound type, its context field * contains the compound entries. */ declaration_t *declaration; };