added hcl_getsynerrnum() and enhanced EOF handling

This commit is contained in:
2018-07-28 04:08:09 +00:00
parent 4280387771
commit 1b59610444
10 changed files with 56 additions and 8 deletions

View File

@ -187,6 +187,9 @@ enum hcl_trait_t
HCL_DEBUG_BIGINT = (1u << 1),
#endif
/* command line mode */
HCL_CLI_MODE = (1u << 7),
/* perform no garbage collection when the heap is full.
* you still can use hcl_gc() explicitly. */
HCL_NOGC = (1u << 8),
@ -1754,6 +1757,9 @@ HCL_EXPORT void hcl_getsynerr (
hcl_synerr_t* synerr
);
HCL_EXPORT hcl_synerrnum_t hcl_getsynerrnum (
hcl_t* hcl
);
HCL_EXPORT void hcl_setsynerrbfmt (
hcl_t* hcl,