extend SWI interface with PL_toplevel and to handle C++ code.

prolog/0 built-in
fixes to parms.h changes.
This commit is contained in:
Vitor Santos Costa
2009-10-23 16:50:43 +01:00
parent 0179998d60
commit 0ea348c26d
8 changed files with 30 additions and 13 deletions

View File

@@ -816,7 +816,7 @@ exec_top_level(int BootMode, YAP_init_args *iap)
YAP_Atom livegoal;
/* read the bootfile */
do_bootfile (iap->YapPrologBootFile ? iap->YapPrologBootFile : BootFile);
livegoal = YAP_FullLookupAtom("prolog");
livegoal = YAP_FullLookupAtom("$live");
/* initialise the top-level */
if (BootMode == YAP_FULL_BOOT_FROM_PROLOG) {
char init_file[256];
@@ -855,7 +855,7 @@ exec_top_level(int BootMode, YAP_init_args *iap)
/* read it before case someone, that is, Ashwin, hides
the atom false away ;-).
*/
livegoal = YAP_FullLookupAtom("prolog");
livegoal = YAP_FullLookupAtom("$live");
atomfalse = YAP_MkAtomTerm (YAP_FullLookupAtom("$false"));
while (YAP_GetValue (livegoal) != atomfalse) {
YAP_Reset();