changed functions and macros related to quick integer handling
This commit is contained in:
@ -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. */
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user