new error handlong mechanism
new YAP_ foreign interface fix unbound_first_arg in call_with_args git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@582 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
6
C/save.c
6
C/save.c
@@ -608,9 +608,9 @@ check_header(void)
|
||||
get_cell();
|
||||
/* now, check whether we got enough enough space to load the
|
||||
saved space */
|
||||
if ((hp_size = get_cell()) > Unsigned(AuxTop) - Unsigned(HeapBase)) {
|
||||
Error(SYSTEM_ERROR,TermNil,"out of heap space, Yap needs %d", hp_size);
|
||||
return(FAIL_RESTORE);
|
||||
hp_size = get_cell();
|
||||
while (hp_size > Unsigned(AuxTop) - Unsigned(HeapBase)) {
|
||||
growheap(FALSE);
|
||||
}
|
||||
if (mode == DO_EVERYTHING) {
|
||||
if ((lc_size = get_cell())+(gb_size=get_cell()) > Unsigned(LocalBase) - Unsigned(GlobalBase)) {
|
||||
|
Reference in New Issue
Block a user