1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 12:20:26 +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:
Mikael Djurfeldt 2000-06-04 01:29:54 +00:00
parent 96372e45b8
commit 790071cdc8

View file

@ -273,7 +273,7 @@ scm_lookupcar (SCM vloc, SCM genv, int check)
#endif
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;
al = SCM_CARLOC (env);
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;
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);
}
else