Use internal_error instead of error/exit(1).

Heh, an abort hiding in disguise :)
This commit is contained in:
Bill Currie 2012-12-02 20:15:18 +09:00
parent e3bf64262f
commit 79c1a8f37a

View file

@ -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;