fix bad tests for attributed variable, and use a better name for Quick Test.

This commit is contained in:
Vitor Santos Costa
2011-03-19 10:25:23 +00:00
parent 0d8aed7971
commit 2fb880b64a
6 changed files with 18 additions and 22 deletions

View File

@@ -67,10 +67,11 @@ IsAttVar (CELL *pt)
return (pt)[-1] == (CELL)attvar_e && pt < H;
}
inline EXTERN int GlobalIsAttVar (CELL *pt);
inline EXTERN int
FastIsAttVar (CELL *pt)
GlobalIsAttVar (CELL *pt)
{
CACHE_REGS
return (pt)[-1] == (CELL)attvar_e;
}
@@ -517,9 +518,9 @@ IsAttachedTerm (Term t)
inline EXTERN Int IsAttachedTerm (Term);
inline EXTERN Int
FastIsAttachedTerm (Term t)
GlobalIsAttachedTerm (Term t)
{
return (Int) ((IsVarTerm (t) && FastIsAttVar(VarOfTerm(t))));
return (Int) ((IsVarTerm (t) && GlobalIsAttVar(VarOfTerm(t))));
}