lookup global modules.
This commit is contained in:
parent
8c975eca5d
commit
82f3af4f23
@ -3495,8 +3495,12 @@ int YAP_OpInfo(Atom at, Term module, int opkind, int *yap_type, int *prio)
|
||||
WRITE_LOCK(ae->ARWLock);
|
||||
info = Yap_GetOpPropForAModuleHavingALock(ae, module);
|
||||
if (!info) {
|
||||
WRITE_UNLOCK(ae->ARWLock);
|
||||
return 0;
|
||||
/* try system operators */
|
||||
info = Yap_GetOpPropForAModuleHavingALock(ae, PROLOG_MODULE);
|
||||
if (!info) {
|
||||
WRITE_UNLOCK(ae->ARWLock);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (opkind == PREFIX_OP) {
|
||||
SMALLUNSGN p = info->Prefix;
|
||||
|
Reference in New Issue
Block a user