change bootstrap sequence to support -B and to allow booting from pl files
This commit is contained in:
@@ -73,10 +73,11 @@ static void do_top_goal(YAP_Term Goal) { YAP_RunGoalOnce(Goal); }
|
||||
|
||||
static int init_standard_system(int argc, char *argv[], YAP_init_args *iap) {
|
||||
|
||||
int BootMode = YAP_parse_yap_arguments(argc, argv, iap);
|
||||
YAP_file_type_t BootMode = YAP_parse_yap_arguments(argc, argv, iap);
|
||||
|
||||
/* init memory */
|
||||
BootMode = YAP_Init(iap);
|
||||
iap->initial_file_type =
|
||||
BootMode = YAP_Init(iap);
|
||||
if (iap->ErrorNo) {
|
||||
/* boot failed */
|
||||
YAP_Error(iap->ErrorNo, 0L, iap->ErrorCause);
|
||||
@@ -91,10 +92,8 @@ static void exec_top_level(int BootMode, YAP_init_args *iap) {
|
||||
if (BootMode == YAP_BOOT_FROM_SAVED_STACKS) {
|
||||
/* continue executing from the frozen stacks */
|
||||
YAP_ContinueGoal();
|
||||
livegoal = YAP_FullLookupAtom("$live");
|
||||
} else {
|
||||
livegoal = YAP_FullLookupAtom("$bootstrap");
|
||||
}
|
||||
livegoal = YAP_FullLookupAtom("$live");
|
||||
/* the top-level is now ready */
|
||||
|
||||
/* read it before case someone, that is, Ashwin, hides
|
||||
|
Reference in New Issue
Block a user