added qse_htrd_geterrnum().

changed a log message in xli/err.c
This commit is contained in:
2014-11-03 15:33:15 +00:00
parent 06e55b9c7e
commit ed2cdcaa87
7 changed files with 19 additions and 6 deletions

View File

@ -57,7 +57,7 @@ const qse_char_t* qse_xli_dflerrstr (
QSE_T("no alias for '${0}'"),
QSE_T("illegal value for '${0}'"),
QSE_T("no value for '${0}'"),
QSE_T("too many string segments for '${0}'")
QSE_T("uncomplying number of string segments for '${0}'")
};
return (errnum >= 0 && errnum < QSE_COUNTOF(errstr))?

View File

@ -869,7 +869,7 @@ static int read_pair (qse_xli_t* xli, const qse_char_t* keytag)
{
/* too many string segments for the key */
qse_xli_seterror (xli, QSE_XLI_ESTRSEG, (const qse_cstr_t*)&key, &kloc);
goto oops;
goto oops;
}
/* semicolon read. turn off NSTR */
@ -879,7 +879,7 @@ static int read_pair (qse_xli_t* xli, const qse_char_t* keytag)
else
{
qse_xli_seterror (xli, QSE_XLI_EPAVAL, QSE_STR_XSTR(xli->tok.name), &xli->tok.loc);
goto oops;
goto oops;
}