cgen: add C fn memfreedup to cheaders.v (#6563)
parent
5f07b255bd
commit
4b410534dd
|
@ -407,6 +407,12 @@ void _vcleanup();
|
||||||
return ((r&0x1fffff)+((r>>21)&0x1fffff)+((r>>42)&0x1fffff))*_wynorm-3.0;
|
return ((r&0x1fffff)+((r>>21)&0x1fffff)+((r>>42)&0x1fffff))*_wynorm-3.0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
voidptr memdup(voidptr src, int sz);
|
||||||
|
voidptr memfreedup(voidptr ptr, voidptr src, int sz) {
|
||||||
|
free(ptr);
|
||||||
|
return memdup(src, sz);
|
||||||
|
}
|
||||||
'
|
'
|
||||||
c_builtin_types = '
|
c_builtin_types = '
|
||||||
//================================== builtin types ================================*/
|
//================================== builtin types ================================*/
|
||||||
|
|
Loading…
Reference in New Issue