diff options
Diffstat (limited to 'mem.c')
-rw-r--r-- | mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ #include <stdio.h> #include <stdlib.h> -void *M(void *p, size_t old, size_t new) { +void *M(State *S, void *p, size_t old, size_t new) { if (new == 0) { free(p); return NULL; @@ -17,8 +17,8 @@ void *M(void *p, size_t old, size_t new) { } } -Obj *alloc_obj(size_t sz, ObjTy oty) { - Obj *o = M(NULL, 0, sz); +Obj *alloc_obj(State *S, size_t sz, ObjTy oty) { + Obj *o = M(S, NULL, 0, sz); o->oty = oty; return o; } |