fix excessive trimming in C-interface for backtrackable predicates (obs from José Vieira).

This commit is contained in:
Vítor Manuel de Morais Santos Costa
2010-01-11 15:44:43 +00:00
parent e86a995dd2
commit 324833f84a
4 changed files with 5 additions and 5 deletions

View File

@@ -1027,13 +1027,14 @@ YAP_cut_up(void)
cut_pt = B->cp_b;
CUT_prune_to(cut_pt);
Yap_TrimTrail();
B = cut_pt;
}
#else /* YAPOR */
#else
Yap_TrimTrail();
B = B->cp_b; /* cut_fail */
#endif
HB = B->cp_h; /* cut_fail */
Yap_TrimTrail();
RECOVER_B();
}