fixed a bug when assigning NF with a large number than the current number of records

This commit is contained in:
2020-03-07 16:24:02 +00:00
parent 34d1b1d1d7
commit 59ad30bab2
3 changed files with 117 additions and 97 deletions

View File

@ -2656,6 +2656,15 @@ QSE_EXPORT int qse_awk_rtx_setrec (
const qse_cstr_t* str /**< string */
);
/**
* The qse_awk_rtx_truncrec() function lowered the number of fields in a record.
* The caller must ensure that \a nflds is less than the current number of fields
*/
QSE_EXPORT int qse_awk_rtx_truncrec (
qse_awk_rtx_t* rtx,
qse_size_t nflds
);
/**
* The qse_awk_rtx_isnilval() function determines if a value
* is a nil value.