make sure we return correct code in YAP_Boot
This commit is contained in:
parent
c2dd03b144
commit
05a20e26f3
@ -2313,7 +2313,7 @@ YAP_Init(YAP_init_args *yap_init)
|
|||||||
Yap_argc = yap_init->Argc;
|
Yap_argc = yap_init->Argc;
|
||||||
#if !BOOT_FROM_SAVED_STATE
|
#if !BOOT_FROM_SAVED_STATE
|
||||||
if (yap_init->SavedState) {
|
if (yap_init->SavedState) {
|
||||||
fprintf(stderr,"[ WARNING: threaded Yap will ignore saved state %s ]\n",yap_init->SavedState);
|
fprintf(stderr,"[ WARNING: threaded YAP will ignore saved state %s ]\n",yap_init->SavedState);
|
||||||
yap_init->SavedState = NULL;
|
yap_init->SavedState = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -2547,7 +2547,7 @@ YAP_Init(YAP_init_args *yap_init)
|
|||||||
}
|
}
|
||||||
Yap_PutValue(Yap_FullLookupAtom("$live"), MkAtomTerm (Yap_FullLookupAtom("$true")));
|
Yap_PutValue(Yap_FullLookupAtom("$live"), MkAtomTerm (Yap_FullLookupAtom("$true")));
|
||||||
}
|
}
|
||||||
return restore_result;
|
return YAP_BOOT_FROM_PROLOG;
|
||||||
}
|
}
|
||||||
|
|
||||||
X_API Int
|
X_API Int
|
||||||
|
Reference in New Issue
Block a user