mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 07:30:32 +02:00
sequence of expressions -> seq of head and tail
* libguile/expand.h: * module/language/tree-il.scm: Rename "sequence" to "seq", and instead of taking a list of expressions, take a head and a tail. * module/language/tree-il/analyze.scm: * module/language/tree-il/compile-glil.scm: * module/language/tree-il/fix-letrec.scm: * module/language/tree-il/spec.scm: * module/language/elisp/compile-tree-il.scm: * module/ice-9/psyntax.scm: * module/ice-9/psyntax-pp.scm: * module/ice-9/eval.scm: * libguile/memoize.h: * libguile/memoize.c: * libguile/expand.c: * libguile/eval.c: Adapt to the new seq format.
This commit is contained in:
parent
a881a4ae3b
commit
6fc3eae477
14 changed files with 194 additions and 172 deletions
|
@ -229,10 +229,9 @@ eval (SCM x, SCM env)
|
|||
mx = SCM_MEMOIZED_ARGS (x);
|
||||
switch (SCM_MEMOIZED_TAG (x))
|
||||
{
|
||||
case SCM_M_BEGIN:
|
||||
for (; !scm_is_null (CDR (mx)); mx = CDR (mx))
|
||||
eval (CAR (mx), env);
|
||||
x = CAR (mx);
|
||||
case SCM_M_SEQ:
|
||||
eval (CAR (mx), env);
|
||||
x = CDR (mx);
|
||||
goto loop;
|
||||
|
||||
case SCM_M_IF:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue