fix handling of cut_c in SWI packages.
This commit is contained in:
parent
6617a63b7e
commit
10f84228bc
@ -1538,8 +1538,10 @@ YAP_ExecuteFirst(PredEntry *pe, CPredicate exec_code)
|
|||||||
BallTerm = EX;
|
BallTerm = EX;
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
if ((t = Yap_GetException())) {
|
if ((t = Yap_GetException())) {
|
||||||
Yap_JumpToEnv(t);
|
cut_c_pop();
|
||||||
return FALSE;
|
B = B->cp_b;
|
||||||
|
Yap_JumpToEnv(t);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
cut_fail();
|
cut_fail();
|
||||||
} else if (val == 1) { /* TRUE */
|
} else if (val == 1) { /* TRUE */
|
||||||
@ -1577,8 +1579,10 @@ YAP_ExecuteNext(PredEntry *pe, CPredicate exec_code)
|
|||||||
BallTerm = EX;
|
BallTerm = EX;
|
||||||
EX = NULL;
|
EX = NULL;
|
||||||
if ((t = Yap_GetException())) {
|
if ((t = Yap_GetException())) {
|
||||||
Yap_JumpToEnv(t);
|
cut_c_pop();
|
||||||
return FALSE;
|
B = B->cp_b;
|
||||||
|
Yap_JumpToEnv(t);
|
||||||
|
return FALSE;
|
||||||
} else {
|
} else {
|
||||||
cut_fail();
|
cut_fail();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user