From 79c1a8f37a54ed0e61c92b28c5c81b96cd607bdb Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 2 Dec 2012 20:15:18 +0900 Subject: [PATCH] Use internal_error instead of error/exit(1). Heh, an abort hiding in disguise :) --- tools/qfcc/source/defspace.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/qfcc/source/defspace.c b/tools/qfcc/source/defspace.c index 44da2cb67..a5050bf23 100644 --- a/tools/qfcc/source/defspace.c +++ b/tools/qfcc/source/defspace.c @@ -117,10 +117,8 @@ defspace_alloc_loc (defspace_t *space, int size) ofs = space->size; space->size += size; if (space->size > space->max_size) { - if (!space->grow) { - error (0, "unable to allocate %d globals", size); - exit (1); - } + if (!space->grow) + internal_error (0, "unable to allocate %d words", size); space->grow (space); } return ofs;