specify the allocation function in vnew

This commit is contained in:
Quentin Carbonneaux 2016-08-14 21:57:27 -07:00
parent 5ad8a2c6fe
commit 3f8af2ba7b
5 changed files with 30 additions and 12 deletions

3
all.h
View file

@ -485,7 +485,8 @@ void emit(int, int, Ref, Ref, Ref);
void emiti(Ins);
void idup(Ins **, Ins *, ulong);
Ins *icpy(Ins *, Ins *, ulong);
void *vnew(ulong, size_t);
void *vnew(ulong, size_t, void *(size_t));
void vfree(void *);
void vgrow(void *, ulong);
int clsmerge(short *, short);
int phicls(int, Tmp *);