summary refs log tree commit diff
path: root/lisc/util.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-13 17:20:44 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-13 17:20:44 -0400
commit96fab802403fb70aaeaf270f34135d928a2bbc96 (patch)
tree814ea6209b1ba8c6bc78f56c73ef47f8e685f2f7 /lisc/util.c
parenteee9afb88edd7094adcabc6d111526de983ac5ee (diff)
downloadroux-96fab802403fb70aaeaf270f34135d928a2bbc96.tar.gz
rename valloc and balloc
valloc is actually a POSIX function that
prevents compilation on some systems.
Diffstat (limited to 'lisc/util.c')
-rw-r--r--lisc/util.c6
1 files changed, 3 insertions, 3 deletions
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;
 }