beautifications.
This commit is contained in:
parent
18506025c3
commit
e668908a6f
@ -987,8 +987,7 @@ p_unary_is( USES_REGS1 )
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return Yap_unify_constant(ARG1,tout);
|
return Yap_unify_constant(ARG1,tout);
|
||||||
}
|
} else if (IsAtomTerm(t)) {
|
||||||
if (IsAtomTerm(t)) {
|
|
||||||
Atom name = AtomOfTerm(t);
|
Atom name = AtomOfTerm(t);
|
||||||
ExpEntry *p;
|
ExpEntry *p;
|
||||||
Term out;
|
Term out;
|
||||||
@ -1002,8 +1001,8 @@ p_unary_is( USES_REGS1 )
|
|||||||
ti[1] = MkIntTerm(1);
|
ti[1] = MkIntTerm(1);
|
||||||
t = Yap_MkApplTerm(FunctorSlash, 2, ti);
|
t = Yap_MkApplTerm(FunctorSlash, 2, ti);
|
||||||
Yap_EvalError(TYPE_ERROR_EVALUABLE, t,
|
Yap_EvalError(TYPE_ERROR_EVALUABLE, t,
|
||||||
"functor %s/%d for arithmetic expression",
|
"functor %s/1 for arithmetic expression",
|
||||||
RepAtom(name)->StrOfAE,1);
|
RepAtom(name)->StrOfAE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
out= eval1(p->FOfEE, top PASS_REGS);
|
out= eval1(p->FOfEE, top PASS_REGS);
|
||||||
|
Reference in New Issue
Block a user