From dc73119e1d42e969ba7081a1e15dbab7811721c6 Mon Sep 17 00:00:00 2001 From: herbert Date: Wed, 2 Mar 2005 19:46:59 +1100 Subject: Renamed error to sh_error. --- src/memalloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/memalloc.c') diff --git a/src/memalloc.c b/src/memalloc.c index 03ad4f7..44d94ad 100644 --- a/src/memalloc.c +++ b/src/memalloc.c @@ -66,7 +66,7 @@ ckmalloc(size_t nbytes) p = malloc(nbytes); if (p == NULL) - error("Out of space"); + sh_error("Out of space"); return p; } @@ -80,7 +80,7 @@ ckrealloc(pointer p, size_t nbytes) { p = realloc(p, nbytes); if (p == NULL) - error("Out of space"); + sh_error("Out of space"); return p; } @@ -94,7 +94,7 @@ savestr(const char *s) { char *p = strdup(s); if (!p) - error("Out of space"); + sh_error("Out of space"); return p; } @@ -141,7 +141,7 @@ stalloc(size_t nbytes) blocksize = MINSIZE; len = sizeof(struct stack_block) - MINSIZE + blocksize; if (len < blocksize) - error("Out of space"); + sh_error("Out of space"); INTOFF; sp = ckmalloc(len); sp->prev = stackp; @@ -220,7 +220,7 @@ growstackblock(void) newlen = stacknleft * 2; if (newlen < stacknleft) - error("Out of space"); + sh_error("Out of space"); if (newlen < 128) newlen += 128; -- cgit 1.4.1