changed functions and macros related to quick integer handling

This commit is contained in:
2014-10-23 09:30:22 +00:00
parent aed205c298
commit 84798f4fd0
14 changed files with 121 additions and 100 deletions

View File

@ -86,7 +86,7 @@ static int awk_main (int argc, qse_char_t* argv[])
goto oops;
}
if (rtv->type == QSE_AWK_VAL_MAP)
if (qse_awk_rtx_getvaltype (rtx, rtv) == QSE_AWK_VAL_MAP)
{
/* if a returned value is a map,
* traverse the map and print the key/value pairs. */

View File

@ -20,7 +20,7 @@ static int fnc_basename (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi)
/* get the value of the first parameter */
a0 = qse_awk_rtx_getarg (rtx, 0);
if (a0->type == QSE_AWK_VAL_STR)
if (qse_awk_rtx_getvaltype (rtx, a0) == QSE_AWK_VAL_STR)
{
/* if it is a string value, don't duplicate the value */
ptr = ((qse_awk_val_str_t*)a0)->val.ptr;

View File

@ -20,7 +20,7 @@ static int fnc_basename (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi)
/* get the value of the first parameter */
a0 = qse_awk_rtx_getarg (rtx, 0);
if (a0->type == QSE_AWK_VAL_STR)
if (qse_awk_rtx_getvaltype (rtx, a0) == QSE_AWK_VAL_STR)
{
/* if it is a string value, don't duplicate the value */
ptr = ((qse_awk_val_str_t*)a0)->val.ptr;