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> ## 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 ### Program Structure

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_EXPORT hawk_oow_t hawk_copy_ucstr_to_uchars (
hawk_uch_t* dst, hawk_uch_t* dst,
hawk_uch_t dlen, hawk_oow_t dlen,
const hawk_uch_t* src const hawk_uch_t* src
); );
HAWK_EXPORT hawk_oow_t hawk_copy_bcstr_to_bchars ( HAWK_EXPORT hawk_oow_t hawk_copy_bcstr_to_bchars (
hawk_bch_t* dst, hawk_bch_t* dst,
hawk_bch_t dlen, hawk_oow_t dlen,
const hawk_bch_t* src 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; 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 */ /* no null termination */
hawk_uch_t* p, * p2; 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; 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 */ /* no null termination */
hawk_bch_t* p, * p2; hawk_bch_t* p, * p2;