6 /* Declaration specifier kinds. */
10 CDECL_SPEC_QUAL = 512,
11 CDECL_SPEC_FUNC = 1024,
15 CDECL_TYPE_VOID = CDECL_SPEC_TYPE,
30 CDECL_STOR_TYPEDEF = CDECL_SPEC_STOR,
35 CDECL_QUAL_RESTRICT = CDECL_SPEC_QUAL,
38 CDECL_FUNC_INLINE = CDECL_SPEC_FUNC,
41 /* Declarator types. */
47 struct cdecl_declspec {
48 struct cdecl_declspec *next;
53 struct cdecl_declarator {
54 struct cdecl_declarator *next;
60 struct cdecl *cdecl_parse_decl(const char *declstr);
61 void cdecl_free(struct cdecl *decl);
63 size_t cdecl_explain(char *buf, size_t n, struct cdecl *decl);
65 static inline int cdecl_spec_kind(struct cdecl_declspec *spec)
67 return spec->type & ~0xffu;