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:
parent
5f7bef98f5
commit
63f94ddb44
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user