core: formal_p: Prepare for M2-Planet.
* src/eval-apply.c (formal_p): Prepare for M2-Planet.
This commit is contained in:
parent
7a2f85b34b
commit
065b026bfc
|
@ -213,8 +213,12 @@ formal_p (SCM x, SCM formals) /*:((internal)) */
|
|||
else
|
||||
return 0;
|
||||
}
|
||||
while (TYPE (formals) == TPAIR && CAR (formals) != x)
|
||||
formals = CDR (formals);
|
||||
while (TYPE (formals) == TPAIR)
|
||||
{
|
||||
if (CAR (formals) == x)
|
||||
break;
|
||||
formals = CDR (formals);
|
||||
}
|
||||
if (TYPE (formals) == TSYMBOL)
|
||||
return formals == x;
|
||||
return TYPE (formals) == TPAIR;
|
||||
|
|
Loading…
Reference in a new issue