From 96fab802403fb70aaeaf270f34135d928a2bbc96 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 13 Oct 2015 17:20:44 -0400 Subject: rename valloc and balloc valloc is actually a POSIX function that prevents compilation on some systems. --- lisc/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisc/util.c') diff --git a/lisc/util.c b/lisc/util.c index b73734c..1d5ce7c 100644 --- a/lisc/util.c +++ b/lisc/util.c @@ -81,7 +81,7 @@ freeall() } Blk * -balloc() +bnew() { static Blk z; Blk *b; @@ -137,7 +137,7 @@ icpy(Ins *d, Ins *s, ulong n) } void * -valloc(ulong len, size_t esz) +vnew(ulong len, size_t esz) { ulong cap; Vec *v; @@ -161,7 +161,7 @@ vgrow(void *vp, ulong len) assert(v+1 && v->mag == VMag); if (v->cap >= len) return; - v1 = valloc(len, v->esz); + v1 = vnew(len, v->esz); memcpy(v1, v+1, v->cap * v->esz); *(Vec **)vp = v1; } -- cgit 1.4.1