improve error handling
This commit is contained in:
parent
45bf92fbed
commit
ab372b03af
@ -144,15 +144,15 @@ AllocCMem (UInt size, struct intermediates *cip)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
char *p;
|
char *p;
|
||||||
p = cip->freep;
|
|
||||||
cip->freep += size;
|
|
||||||
if (ASP <= CellPtr (cip->freep) + 256) {
|
if (ASP <= CellPtr (cip->freep) + 256) {
|
||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
LOCAL_Error_Size = 256+((char *)cip->freep - (char *)H);
|
LOCAL_Error_Size = 256+((char *)cip->freep - (char *)H);
|
||||||
save_machine_regs();
|
save_machine_regs();
|
||||||
siglongjmp(cip->CompilerBotch, OUT_OF_STACK_BOTCH);
|
siglongjmp(cip->CompilerBotch, OUT_OF_STACK_BOTCH);
|
||||||
}
|
}
|
||||||
return (p);
|
p = cip->freep;
|
||||||
|
cip->freep += size;
|
||||||
|
return p;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user