mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Revert "v.gen.c: remove unused memfreedup"
This reverts commit 6333adad23
.
This commit is contained in:
parent
9b84faad6f
commit
72c12b6735
@ -273,6 +273,10 @@ void _vcleanup();
|
||||
|
||||
void v_free(voidptr ptr);
|
||||
voidptr memdup(voidptr src, int sz);
|
||||
static voidptr memfreedup(voidptr ptr, voidptr src, int sz) {
|
||||
v_free(ptr); // heloe
|
||||
return memdup(src, sz);
|
||||
}
|
||||
|
||||
#if INTPTR_MAX == INT32_MAX
|
||||
#define TARGET_IS_32BIT 1
|
||||
@ -467,6 +471,10 @@ void _vcleanup();
|
||||
|
||||
void v_free(voidptr ptr);
|
||||
voidptr memdup(voidptr src, int sz);
|
||||
static voidptr memfreedup(voidptr ptr, voidptr src, int sz) {
|
||||
v_free(ptr); // heloe
|
||||
return memdup(src, sz);
|
||||
}
|
||||
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user