4 /* Declaration specifier kinds. */
9 CDECL_SPEC_FUNC = 1024,
13 CDECL_TYPE_VOID = CDECL_SPEC_TYPE,
28 CDECL_STOR_TYPEDEF = CDECL_SPEC_STOR,
33 CDECL_QUAL_RESTRICT = CDECL_SPEC_QUAL,
36 CDECL_FUNC_INLINE = CDECL_SPEC_FUNC,
39 /* Declarator types. */
45 struct cdecl_declspec {
46 struct cdecl_declspec *next;
51 struct cdecl_declarator {
52 struct cdecl_declarator *next;
58 struct cdecl *cdecl_parse_decl(const char *declstr);
59 void cdecl_free(struct cdecl *decl);
61 static inline int cdecl_spec_kind(struct cdecl_declspec *spec)
63 return spec->type & ~0xffu;