We are about to make the GNEW wrapper exit on allocation failure, so this
preserves the existing semantics of allocation failure being non-fatal to this
call. This is the only GNEW call I can see that can tolerate allocation failure.
#include <ctype.h>
#include <setjmp.h>
+#include <stdlib.h>
#include "render.h"
#include "pack.h"
{
if (sp->curp == sp->curblk->endp) {
if (sp->curblk->next == NULL) {
- blk_t *bp = GNEW(blk_t);
+ blk_t *bp = malloc(sizeof(blk_t));
if (bp == 0) {
agerr(AGERR, "gc: Out of memory\n");
longjmp(jbuf, 1);