CDECL_TYPE_UNSIGNED,
CDECL_TYPE_BOOL,
CDECL_TYPE_COMPLEX,
+ CDECL_TYPE_IMAGINARY,
CDECL_TYPE_STRUCT,
CDECL_TYPE_UNION,
CDECL_TYPE_ENUM,
CDECL_DECL_IDENT,
CDECL_DECL_POINTER,
CDECL_DECL_ARRAY,
+ CDECL_DECL_FUNCTION,
};
struct cdecl {
char *vla;
uintmax_t length;
} array;
+ struct cdecl_function {
+ struct cdecl *parameters;
+ _Bool variadic;
+ } function;
} u;
} *declarators;
};
void cdecl_free(struct cdecl *decl);
size_t cdecl_explain(char *buf, size_t n, struct cdecl *decl);
+size_t cdecl_declare(char *buf, size_t n, struct cdecl *decl);
static inline int cdecl_spec_kind(struct cdecl_declspec *spec)
{