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);
|
WRITE_LOCK(ae->ARWLock);
|
||||||
info = Yap_GetOpPropForAModuleHavingALock(ae, module);
|
info = Yap_GetOpPropForAModuleHavingALock(ae, module);
|
||||||
if (!info) {
|
if (!info) {
|
||||||
WRITE_UNLOCK(ae->ARWLock);
|
/* try system operators */
|
||||||
return 0;
|
info = Yap_GetOpPropForAModuleHavingALock(ae, PROLOG_MODULE);
|
||||||
|
if (!info) {
|
||||||
|
WRITE_UNLOCK(ae->ARWLock);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (opkind == PREFIX_OP) {
|
if (opkind == PREFIX_OP) {
|
||||||
SMALLUNSGN p = info->Prefix;
|
SMALLUNSGN p = info->Prefix;
|
||||||
|
Reference in New Issue
Block a user