call UDI at abolish.
This commit is contained in:
parent
71eeda081c
commit
c64d22311d
@ -2633,6 +2633,9 @@ p_endconsult( USES_REGS1 )
|
||||
static void
|
||||
purge_clauses(PredEntry *pred)
|
||||
{
|
||||
if (pred->PredFlags & UDIPredFlag) {
|
||||
Yap_udi_abolish(pred);
|
||||
}
|
||||
if (pred->cs.p_code.NOfClauses) {
|
||||
if (pred->PredFlags & IndexedPredFlag)
|
||||
RemoveIndexation(pred);
|
||||
|
7
C/udi.c
7
C/udi.c
@ -148,6 +148,13 @@ Yap_udi_search(PredEntry *p)
|
||||
return info->functions->search(info->cb);
|
||||
}
|
||||
|
||||
/* index, called from absmi.c */
|
||||
void
|
||||
Yap_udi_abolish(PredEntry *p)
|
||||
{
|
||||
/* tell the predicate destroy */
|
||||
}
|
||||
|
||||
void
|
||||
Yap_udi_init(void)
|
||||
{
|
||||
|
@ -377,6 +377,7 @@ void STD_PROTO(Yap_InitLowLevelTrace,(void));
|
||||
|
||||
/* udi.c */
|
||||
void STD_PROTO(Yap_udi_init,(void));
|
||||
void STD_PROTO(Yap_udi_abolish,(struct pred_entry *));
|
||||
|
||||
/* unify.c */
|
||||
int STD_PROTO(Yap_rational_tree_loop, (CELL *, CELL *, CELL **, CELL **));
|
||||
|
Reference in New Issue
Block a user