avoid direct dependencies on CurrentModule

This commit is contained in:
Vítor Santos Costa
2016-03-05 12:12:37 +00:00
parent 5a95c6bbc7
commit 96bc776375
4 changed files with 60 additions and 58 deletions

View File

@@ -564,7 +564,8 @@ Yap_OpPropForModule(Atom a,
OpEntry *
Yap_GetOpProp(Atom a,
op_type type
op_type type,
Term cmod
USES_REGS) { /* look property list of atom a for kind */
AtomEntry *ae = RepAtom(a);
PropEntry *pp;
@@ -579,7 +580,7 @@ Yap_GetOpProp(Atom a,
continue;
}
info = (OpEntry *)pp;
if (info->OpModule != CurrentModule && info->OpModule != PROLOG_MODULE) {
if (info->OpModule != cmod && info->OpModule != PROLOG_MODULE) {
pp = RepProp(pp->NextOfPE);
continue;
}