init
This commit is contained in:
parent
9a211ac1d4
commit
29f0f88025
@ -393,6 +393,7 @@ Atom Yap_LookupAtomWithLength(const char *atom,
|
|||||||
}
|
}
|
||||||
info = (OpEntry *)Yap_AllocAtomSpace(sizeof(OpEntry));
|
info = (OpEntry *)Yap_AllocAtomSpace(sizeof(OpEntry));
|
||||||
info->KindOfPE = Ord(OpProperty);
|
info->KindOfPE = Ord(OpProperty);
|
||||||
|
info->NextOfPE = NULL;
|
||||||
info->OpModule = mod;
|
info->OpModule = mod;
|
||||||
info->OpName = a;
|
info->OpName = a;
|
||||||
LOCK(OpListLock);
|
LOCK(OpListLock);
|
||||||
|
@ -50,6 +50,7 @@ static ModEntry *initMod(AtomEntry *toname, AtomEntry *ae) {
|
|||||||
INIT_RWLOCK(n->ModRWLock);
|
INIT_RWLOCK(n->ModRWLock);
|
||||||
n->KindOfPE = ModProperty;
|
n->KindOfPE = ModProperty;
|
||||||
n->PredForME = NULL;
|
n->PredForME = NULL;
|
||||||
|
n->OpForME = NULL;
|
||||||
n->NextME = CurrentModules;
|
n->NextME = CurrentModules;
|
||||||
CurrentModules = n;
|
CurrentModules = n;
|
||||||
n->AtomOfME = ae;
|
n->AtomOfME = ae;
|
||||||
|
Reference in New Issue
Block a user