X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/08ac16e49d67a40f0f8127cf43f8a166626615dc..e7b2e067cd007f12227af623649a8e9204a352b1:/src/cdecl.h diff --git a/src/cdecl.h b/src/cdecl.h index c4dad87..a8e9946 100644 --- a/src/cdecl.h +++ b/src/cdecl.h @@ -107,4 +107,17 @@ static inline int cdecl_spec_kind(struct cdecl_declspec *spec) 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