core: formal_p: Prepare for M2-Planet.

* src/eval-apply.c (formal_p): Prepare for M2-Planet.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2019-10-24 19:39:34 +02:00
parent 1aa60b94e5
commit f512623c08
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 6 additions and 2 deletions

View File

@ -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;