lookup global modules.

This commit is contained in:
ubu32 2011-02-15 07:50:55 -08:00
parent 8c975eca5d
commit 82f3af4f23

View File

@ -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;