Merge ssh://ssh.dcc.fc.up.pt:31064/home/vsc/yap
This commit is contained in:
@@ -787,6 +787,10 @@ static void kill_children(LogUpdIndex *c, PredEntry *ap) {
|
||||
ncl = c->ChildIndex;
|
||||
/* kill children */
|
||||
while (ncl) {
|
||||
if (ncl->ClRefCount>0) {
|
||||
c->ClRefCount--;
|
||||
return;
|
||||
}
|
||||
kill_first_log_iblock(ncl, c, ap);
|
||||
ncl = c->ChildIndex;
|
||||
}
|
||||
@@ -862,7 +866,7 @@ static void kill_first_log_iblock(LogUpdIndex *c, LogUpdIndex *parent,
|
||||
if (DBErasedIList)
|
||||
DBErasedIList->PrevSiblingIndex = c;
|
||||
DBErasedIList = c;
|
||||
if (!((c->ClFlags & InUseMask) || c->ClRefCount)) {
|
||||
if (!(c->ClFlags & InUseMask || c->ClRefCount)) {
|
||||
kill_off_lu_block(c, parent, ap);
|
||||
} else {
|
||||
if (c->ClFlags & ErasedMask)
|
||||
|
||||
@@ -337,7 +337,7 @@ bool Yap_PrintWarning(Term twarning) {
|
||||
FunctorPrintMessage, PROLOG_MODULE)); // PROCEDURE_print_message2;
|
||||
if (twarning)
|
||||
__android_log_print(ANDROID_LOG_INFO, "YAPDroid ", " warning(%s)",
|
||||
Yap_TermToBuffer(twarning, Quote_illegal_f | Ignore_ops_f | Ignore_cyclics_f));
|
||||
Yap_TermToBuffer(twarning, Quote_illegal_f | Ignore_ops_f | Handle_cyclics_f));
|
||||
Term cmod = (CurrentModule == PROLOG_MODULE ? TermProlog : CurrentModule);
|
||||
bool rc;
|
||||
Term ts[2], err;
|
||||
|
||||
Reference in New Issue
Block a user