little correction to parse_type
This commit is contained in:
parent
5167a60347
commit
448a1ec4b5
2 changed files with 3 additions and 2 deletions
|
@ -459,7 +459,8 @@ function parse_type_to
|
||||||
if c == 0 goto bad_type
|
if c == 0 goto bad_type
|
||||||
n = type_length(c)
|
n = type_length(c)
|
||||||
c += types
|
c += types
|
||||||
out = memcpy(out, c, n)
|
memcpy(out, c, n)
|
||||||
|
out += n
|
||||||
goto base_type_done
|
goto base_type_done
|
||||||
|
|
||||||
:skip_struct_union_enum
|
:skip_struct_union_enum
|
||||||
|
|
|
@ -280,7 +280,7 @@ function memccpy
|
||||||
memccpy_advance(&dest, &src, terminator)
|
memccpy_advance(&dest, &src, terminator)
|
||||||
return dest
|
return dest
|
||||||
|
|
||||||
; just like C
|
; like C, but returns 0
|
||||||
function memcpy
|
function memcpy
|
||||||
argument dest
|
argument dest
|
||||||
argument src
|
argument src
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue