diff options
author | Marius Vollmer <mvo@zagadka.de> | 2001-11-25 15:21:07 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2001-11-25 15:21:07 +0000 |
commit | 16d4699b6ba33685f1318636ffe4990c7db4fdc6 (patch) | |
tree | d0ef01a70571d77fb07e062e2f29344e33c29952 /libguile/eval.c | |
parent | d3c0e81cc847b39537a2b2945d80de18bf8d5e89 (diff) | |
download | guile-16d4699b6ba33685f1318636ffe4990c7db4fdc6.tar.gz |
Replaced SCM_NEWCELL and SCM_NEWCELL2 with scm_alloc_cell and
scm_alloc_double_cell, respectively.
Diffstat (limited to 'libguile/eval.c')
-rw-r--r-- | libguile/eval.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libguile/eval.c b/libguile/eval.c index 73ac4eceb..126015e1c 100644 --- a/libguile/eval.c +++ b/libguile/eval.c @@ -3864,11 +3864,11 @@ scm_for_each (SCM proc, SCM arg1, SCM args) SCM scm_closure (SCM code, SCM env) { - register SCM z; - - SCM_NEWCELL (z); - SCM_SETCODE (z, code); - SCM_SETENV (z, env); + SCM z; + SCM closcar = scm_cons (code, SCM_EOL); + z = scm_alloc_cell (SCM_UNPACK (closcar) + scm_tc3_closure, + (scm_t_bits) env); + scm_remember_upto_here (closcar); return z; } @@ -3939,9 +3939,7 @@ SCM_DEFINE (scm_cons_source, "cons-source", 3, 0, 0, #define FUNC_NAME s_scm_cons_source { SCM p, z; - SCM_NEWCELL (z); - SCM_SET_CELL_OBJECT_0 (z, x); - SCM_SET_CELL_OBJECT_1 (z, y); + z = scm_cons (x, y); /* Copy source properties possibly associated with xorig. */ p = scm_whash_lookup (scm_source_whash, xorig); if (!SCM_IMP (p)) |