summaryrefslogtreecommitdiff
path: root/unproto/tok_pool.c
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1997-02-25 20:42:19 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:38:07 +0200
commit4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch)
treea5d9c84ba2661029ddb2223dacd50529a361c3d5 /unproto/tok_pool.c
parentf8de35da65c5d93bb733073cf40da154bc1c0748 (diff)
parent9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff)
downloaddev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'unproto/tok_pool.c')
-rw-r--r--unproto/tok_pool.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/unproto/tok_pool.c b/unproto/tok_pool.c
index c2a9665..e2ed107 100644
--- a/unproto/tok_pool.c
+++ b/unproto/tok_pool.c
@@ -28,12 +28,12 @@
/* Department of Mathematics and Computer Science
/* Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
/* LAST MODIFICATION
-/* 91/09/01 23:08:36
+/* 92/01/15 21:53:04
/* VERSION/RELEASE
-/* 1.1
+/* 1.2
/*--*/
-static char pool_sccsid[] = "@(#) tok_pool.c 1.1 91/09/01 23:08:36";
+static char pool_sccsid[] = "@(#) tok_pool.c 1.2 92/01/15 21:53:04";
/* C library */
@@ -43,8 +43,7 @@ extern char *malloc();
#include "token.h"
#include "vstring.h"
-
-extern void error();
+#include "error.h"
#define TOKLEN 5 /* initial string buffer length */
@@ -62,7 +61,7 @@ struct token *tok_alloc()
} else { /* create a new one */
if ((t = (struct token *) malloc(sizeof(struct token))) == 0
|| (t->vstr = vs_alloc(TOKLEN)) == 0)
- error(1, "out of memory");
+ fatal("out of memory");
}
t->next = t->head = t->tail = 0;
#ifdef DEBUG
@@ -83,7 +82,7 @@ register struct token *t;
for (p = tok_pool; p; p = p->next)
if (p == t)
- error(1, "freeing free token");
+ fatal("freeing free token");
#endif
/* Free neighbours and subordinates first */