meta-pred support
This commit is contained in:
parent
7d66aa5d01
commit
1219fb6b6a
@ -16,7 +16,6 @@
|
|||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
#ifdef SCCS
|
#ifdef SCCS
|
||||||
static char SccsId[] = "%W% %G%";
|
static char SccsId[] = "%W% %G%";
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ADTDEFS_C
|
#define ADTDEFS_C
|
||||||
@ -810,7 +809,8 @@ Prop Yap_NewPredPropByFunctor(FunctorEntry *fe, Term cur_mod) {
|
|||||||
p->cs.p_code.ExpandCode = EXPAND_OP_CODE;
|
p->cs.p_code.ExpandCode = EXPAND_OP_CODE;
|
||||||
p->TimeStampOfPred = 0L;
|
p->TimeStampOfPred = 0L;
|
||||||
p->LastCallOfPred = LUCALL_ASSERT;
|
p->LastCallOfPred = LUCALL_ASSERT;
|
||||||
if (cur_mod == TermProlog)
|
p->MetaEntryOfPred = NULL;
|
||||||
|
if (cur_mod == TermProlog)
|
||||||
p->ModuleOfPred = 0L;
|
p->ModuleOfPred = 0L;
|
||||||
else
|
else
|
||||||
p->ModuleOfPred = cur_mod;
|
p->ModuleOfPred = cur_mod;
|
||||||
@ -892,6 +892,7 @@ Prop Yap_NewThreadPred(PredEntry *ap USES_REGS) {
|
|||||||
#if SIZEOF_INT_P == 4
|
#if SIZEOF_INT_P == 4
|
||||||
p->ExtraPredFlags = 0L;
|
p->ExtraPredFlags = 0L;
|
||||||
#endif
|
#endif
|
||||||
|
p->MetaEntryOfPred = NULL;
|
||||||
p->src.OwnerFile = ap->src.OwnerFile;
|
p->src.OwnerFile = ap->src.OwnerFile;
|
||||||
p->OpcodeOfPred = FAIL_OPCODE;
|
p->OpcodeOfPred = FAIL_OPCODE;
|
||||||
p->CodeOfPred = p->cs.p_code.TrueCodeOfPred = (yamop *)(&(p->OpcodeOfPred));
|
p->CodeOfPred = p->cs.p_code.TrueCodeOfPred = (yamop *)(&(p->OpcodeOfPred));
|
||||||
@ -946,7 +947,8 @@ Prop Yap_NewPredPropByAtom(AtomEntry *ae, Term cur_mod) {
|
|||||||
p->OpcodeOfPred = UNDEF_OPCODE;
|
p->OpcodeOfPred = UNDEF_OPCODE;
|
||||||
p->cs.p_code.ExpandCode = EXPAND_OP_CODE;
|
p->cs.p_code.ExpandCode = EXPAND_OP_CODE;
|
||||||
p->CodeOfPred = p->cs.p_code.TrueCodeOfPred = (yamop *)(&(p->OpcodeOfPred));
|
p->CodeOfPred = p->cs.p_code.TrueCodeOfPred = (yamop *)(&(p->OpcodeOfPred));
|
||||||
if (cur_mod == TermProlog)
|
p->MetaEntryOfPred = NULL;
|
||||||
|
if (cur_mod == TermProlog)
|
||||||
p->ModuleOfPred = 0;
|
p->ModuleOfPred = 0;
|
||||||
else
|
else
|
||||||
p->ModuleOfPred = cur_mod;
|
p->ModuleOfPred = cur_mod;
|
||||||
|
Reference in New Issue
Block a user