core: assoc: Prepare for M2-Planet.
* src/mes.c (assoc): Prepare for M2-Planet.
This commit is contained in:
parent
673ca85c64
commit
6f60795489
|
@ -287,10 +287,12 @@ assoc (SCM x, SCM a)
|
|||
{
|
||||
if (TYPE (x) == TSTRING)
|
||||
return assoc_string (x, a);
|
||||
while (a != cell_nil && equal2_p (x, CAAR (a)) == cell_f)
|
||||
a = CDR (a);
|
||||
if (a != cell_nil)
|
||||
while (a != cell_nil)
|
||||
{
|
||||
if (equal2_p (x, CAAR (a)) == cell_t)
|
||||
return CAR (a);
|
||||
a = CDR (a);
|
||||
}
|
||||
return cell_f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue