fixed the wrong type specified for the length parameter in hawk_copy_bcstr_to_bchars() and hawk_copy_ucstr_to_uchars()

This commit is contained in:
hyung-hwan 2021-01-21 07:00:05 +00:00
parent 5f7bef98f5
commit 63f94ddb44
3 changed files with 8 additions and 6 deletions

View File

@ -9,7 +9,9 @@
## Language <a name="language"></a>
Hawk implements most of the AWK programming language elements with extensions.
Hawk is an AWK interpreter with many extended features implemetned by who 'H'
stands for. It aims to be an easy-to-embed implementation as well as used
standalone.
### Program Structure
@ -675,7 +677,7 @@ The following sample illustrates the basic steps hightlighed above.
}
/* create a runtime context needed for execution */
rtx = hawk_rtx_openstd (
rtx = hawk_rtx_openstd(
hawk,
0,
HAWK_T("hawk02"),

View File

@ -516,13 +516,13 @@ HAWK_EXPORT hawk_oow_t hawk_copy_bchars_to_bcstr_unlimited (
HAWK_EXPORT hawk_oow_t hawk_copy_ucstr_to_uchars (
hawk_uch_t* dst,
hawk_uch_t dlen,
hawk_oow_t dlen,
const hawk_uch_t* src
);
HAWK_EXPORT hawk_oow_t hawk_copy_bcstr_to_bchars (
hawk_bch_t* dst,
hawk_bch_t dlen,
hawk_oow_t dlen,
const hawk_bch_t* src
);

View File

@ -375,7 +375,7 @@ hawk_oow_t hawk_copy_bchars_to_bcstr_unlimited (hawk_bch_t* dst, const hawk_bch_
return i;
}
hawk_oow_t hawk_copy_ucstr_to_uchars (hawk_uch_t* dst, hawk_uch_t dlen, const hawk_uch_t* src)
hawk_oow_t hawk_copy_ucstr_to_uchars (hawk_uch_t* dst, hawk_oow_t dlen, const hawk_uch_t* src)
{
/* no null termination */
hawk_uch_t* p, * p2;
@ -391,7 +391,7 @@ hawk_oow_t hawk_copy_ucstr_to_uchars (hawk_uch_t* dst, hawk_uch_t dlen, const h
return p - dst;
}
hawk_oow_t hawk_copy_bcstr_to_bchars (hawk_bch_t* dst, hawk_bch_t dlen, const hawk_bch_t* src)
hawk_oow_t hawk_copy_bcstr_to_bchars (hawk_bch_t* dst, hawk_oow_t dlen, const hawk_bch_t* src)
{
/* no null termination */
hawk_bch_t* p, * p2;