changed hcl_seterrxxx() functions not to set the errnum field again for failures in internal operations, especially in hcl_convxxx()

This commit is contained in:
2018-04-06 14:59:44 +00:00
parent 8726768be2
commit 69a5ef94bd
4 changed files with 13 additions and 7 deletions

View File

@ -96,6 +96,7 @@ enum hcl_synerrnum_t
{
HCL_SYNERR_NOERR,
HCL_SYNERR_ILCHR, /* illegal character */
HCL_SYNERR_ILTOK, /* invalid token */
HCL_SYNERR_CMTNC, /* comment not closed */
HCL_SYNERR_STRCHRNC, /* string/character not closed */
HCL_SYNERR_HASHLIT, /* wrong hashed literal */