mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Revert "Revert "v.gen.c: remove unused memfreedup""
This reverts commit 72c12b6735
.
This commit is contained in:
parent
7458927593
commit
e797547d6d
@ -273,10 +273,6 @@ 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
|
||||
@ -471,10 +467,6 @@ 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