fixes
This commit is contained in:
@@ -872,6 +872,7 @@ YAPEngine::YAPEngine(char *savedState, char *bootFile, size_t stackSize,
|
||||
size_t trailSize, size_t maxStackSize, size_t maxTrailSize,
|
||||
char *libDir, char *goal, char *topLevel, bool script,
|
||||
bool fastBoot,
|
||||
bool embedded,
|
||||
YAPCallback *cb)
|
||||
: _callback(0) { // a single engine can be active
|
||||
|
||||
@@ -904,6 +905,7 @@ YAPEngine::YAPEngine(char *savedState, char *bootFile, size_t stackSize,
|
||||
init_args.YapPrologTopLevelGoal = topLevel;
|
||||
init_args.HaltAfterConsult = script;
|
||||
init_args.FastBoot = fastBoot;
|
||||
init_args.Embedded = embedded;
|
||||
doInit(BootMode);
|
||||
}
|
||||
|
||||
|
@@ -145,6 +145,7 @@ public:
|
||||
size_t maxTrailSize = 0, char *libDir = (char *)NULL,
|
||||
char *goal = (char *)NULL, char *topLevel = (char *)NULL,
|
||||
bool script = FALSE, bool fastBoot = FALSE,
|
||||
bool embedded = true,
|
||||
YAPCallback *callback = (YAPCallback *)
|
||||
NULL); /// construct a new engine, including aaccess to callbacks
|
||||
/// construct a new engine using argc/argv list of arguments
|
||||
@@ -183,9 +184,6 @@ public:
|
||||
bool goalt(YAPTerm t);
|
||||
/// current directory for the engine
|
||||
bool goal(Term t);
|
||||
#if SWIGPYTHON
|
||||
bool unlockedGoal(Term t) {bool rc;Py_BEGIN_ALLOW_THREADS; rc = goal(t);Py_END_ALLOW_THREADS; return rc; }
|
||||
#endif
|
||||
/// reset Prolog state
|
||||
void reSet();
|
||||
/// release: assune that there are no stack pointers, just release memory
|
||||
|
Reference in New Issue
Block a user