first try to hide $ predicates
This commit is contained in:
parent
c11273bc44
commit
a8b8113a8d
19
C/atomic.c
19
C/atomic.c
@ -113,6 +113,25 @@ hide_atom( USES_REGS1 )
|
|||||||
RepAtom(atomToInclude)->StrOfAE);
|
RepAtom(atomToInclude)->StrOfAE);
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
|
AtomEntry *ae = RepAtom(atomToInclude);
|
||||||
|
Prop p = ae->PropsOfAE;
|
||||||
|
while (p) {
|
||||||
|
if (IsPredProperty(p->KindOfPE) ||
|
||||||
|
IsDBProperty(p->KindOfPE ) ) {
|
||||||
|
RepPredProp(p)->PredFlags |= HiddenPredFlag;
|
||||||
|
|
||||||
|
} else if (p->KindOfPE == FunctorProperty) {
|
||||||
|
Prop q = RepFunctorProp(p)->PropsOfFE;
|
||||||
|
while (q) {
|
||||||
|
if (IsPredProperty(q->KindOfPE) ||
|
||||||
|
IsDBProperty(q->KindOfPE) ) {
|
||||||
|
RepPredProp(q)->PredFlags |= HiddenPredFlag;
|
||||||
|
}
|
||||||
|
q = q->NextOfPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p =p->NextOfPE;
|
||||||
|
}
|
||||||
Yap_ReleaseAtom(atomToInclude);
|
Yap_ReleaseAtom(atomToInclude);
|
||||||
WRITE_LOCK(INVISIBLECHAIN.AERWLock);
|
WRITE_LOCK(INVISIBLECHAIN.AERWLock);
|
||||||
WRITE_LOCK(RepAtom(atomToInclude)->ARWLock);
|
WRITE_LOCK(RepAtom(atomToInclude)->ARWLock);
|
||||||
|
Reference in New Issue
Block a user