mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 20:30:28 +02:00
* eval.c (scm_lookupcar): Test for !SCM_CONSP (SCM_CAR (env))
instead of SCM_TRUE (scm_procedurep (SCM_CAR (env))).
This commit is contained in:
parent
96372e45b8
commit
790071cdc8
1 changed files with 3 additions and 3 deletions
|
@ -273,7 +273,7 @@ scm_lookupcar (SCM vloc, SCM genv, int check)
|
||||||
#endif
|
#endif
|
||||||
for (; SCM_NIMP (env); env = SCM_CDR (env))
|
for (; SCM_NIMP (env); env = SCM_CDR (env))
|
||||||
{
|
{
|
||||||
if (SCM_TRUE_P (scm_procedure_p (SCM_CAR (env))))
|
if (!SCM_CONSP (SCM_CAR (env)))
|
||||||
break;
|
break;
|
||||||
al = SCM_CARLOC (env);
|
al = SCM_CARLOC (env);
|
||||||
for (fl = SCM_CAR (*al); SCM_NIMP (fl); fl = SCM_CDR (fl))
|
for (fl = SCM_CAR (*al); SCM_NIMP (fl); fl = SCM_CDR (fl))
|
||||||
|
@ -323,9 +323,9 @@ scm_lookupcar (SCM vloc, SCM genv, int check)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
SCM top_thunk, vcell;
|
SCM top_thunk, vcell;
|
||||||
if (SCM_NIMP(env))
|
if (SCM_NIMP (env))
|
||||||
{
|
{
|
||||||
top_thunk = SCM_CAR(env); /* env now refers to a top level env thunk */
|
top_thunk = SCM_CAR (env); /* env now refers to a top level env thunk */
|
||||||
env = SCM_CDR (env);
|
env = SCM_CDR (env);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue