};
struct cdecl *cdecl_parse_decl(const char *declstr);
+struct cdecl *cdecl_parse_english(const char *english);
void cdecl_free(struct cdecl *decl);
size_t cdecl_explain(char *buf, size_t n, struct cdecl *decl);
return spec->type & ~0xffu;
}
+/* Error handling. */
+enum {
+ CDECL_ENOMEM,
+ CDECL_ENOPARSE,
+};
+
+struct cdecl_error {
+ unsigned code;
+ const char *str;
+};
+
+const struct cdecl_error *cdecl_get_error(void);
+
#endif