1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-18 01:30:27 +02:00

* eval.c (SCM_APPLY), sort.c (closureless): Expand body when

evaluating closures.
This commit is contained in:
Mikael Djurfeldt 1999-08-19 19:01:19 +00:00
parent 7f214e6066
commit 2ddb09208b
2 changed files with 19 additions and 3 deletions

View file

@ -354,6 +354,8 @@ closureless (SCM code, const void *a, const void *b)
SCM_ENV (code));
/* Evaluate the closure body */
code = SCM_CDR (SCM_CODE (code));
while (SCM_IMP (SCM_CAR (code)) && SCM_ISYMP (SCM_CAR (code)))
code = scm_m_expand_body (code, env);
next = code;
while (SCM_NNULLP (next = SCM_CDR (next)))
{