enhanced syntax error message handling.

exposed hcl_setsynerr(), hcl_setsynerrbfmt(), hcl_setsynerrufmt().
hid hcl_synerrnum_to_errstr()
This commit is contained in:
hyunghwan.chung
2018-02-07 14:08:05 +00:00
parent ccb0220673
commit 3daeab66b9
5 changed files with 281 additions and 248 deletions

View File

@ -992,6 +992,34 @@ void moo_seterrufmtv (
va_list ap
);
#if defined(MOO_INCLUDE_COMPILER)
void hcl_setsynerrbfmt (
moo_t* moo,
moo_synerrnum_t num,
const moo_ioloc_t* loc,
const moo_oocs_t* tgt,
const moo_bch_t* msgfmt,
...
);
void hcl_setsynerrufmt (
moo_t* moo,
moo_synerrnum_t num,
const moo_ioloc_t* loc,
const moo_oocs_t* tgt,
const moo_uch_t* msgfmt,
...
);
void hcl_setsynerr (
moo_t* moo,
moo_synerrnum_t num,
const moo_ioloc_t* loc,
const moo_oocs_t* tgt
);
#endif
/* ========================================================================= */
/* heap.c */
/* ========================================================================= */