summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
Diffstat (limited to 'lisc')
-rw-r--r--lisc/lisc.h2
-rw-r--r--lisc/spill.c2
-rw-r--r--lisc/util.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index b3287f7..13aeb01 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -289,7 +289,7 @@ void dumpts(Bits *, Tmp *, FILE *);
 extern Typ typ[NTyp];
 extern Ins insb[NIns], *curi;
 void diag(char *);
-void *ealloc(size_t);
+void *emalloc(size_t);
 void *alloc(size_t);
 void freeall(void);
 Blk *balloc(void);
diff --git a/lisc/spill.c b/lisc/spill.c
index 6b696d3..2ed25b4 100644
--- a/lisc/spill.c
+++ b/lisc/spill.c
@@ -188,7 +188,7 @@ limit(Bits *b, int k, Bits *fst)
 		return 0;
 	if (nt > maxt) {
 		free(tarr);
-		tarr = ealloc(nt * sizeof tarr[0]);
+		tarr = emalloc(nt * sizeof tarr[0]);
 		maxt = nt;
 	}
 	i = 0;
diff --git a/lisc/util.c b/lisc/util.c
index 9eeced7..b73734c 100644
--- a/lisc/util.c
+++ b/lisc/util.c
@@ -36,13 +36,13 @@ diag(char *s)
 }
 
 void *
-ealloc(size_t n)
+emalloc(size_t n)
 {
 	void *p;
 
 	p = calloc(1, n);
 	if (!p)
-		diag("ealloc: out of memory");
+		diag("emalloc: out of memory");
 	return p;
 }
 
@@ -54,12 +54,12 @@ alloc(size_t n)
 	if (n == 0)
 		return 0;
 	if (nptr >= NPtr) {
-		pp = ealloc(NPtr * sizeof(void *));
+		pp = emalloc(NPtr * sizeof(void *));
 		pp[0] = pool;
 		pool = pp;
 		nptr = 1;
 	}
-	return pool[nptr++] = ealloc(n);
+	return pool[nptr++] = emalloc(n);
 }
 
 void