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/pairs.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/pairs.c')
-rw-r--r-- | libguile/pairs.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/libguile/pairs.c b/libguile/pairs.c index 88ce017c4..5216de8bb 100644 --- a/libguile/pairs.c +++ b/libguile/pairs.c @@ -80,11 +80,7 @@ SCM_DEFINE (scm_cons, "cons", 2, 0, 0, "sense of @code{eq?}) from every previously existing object.") #define FUNC_NAME s_scm_cons { - SCM z; - SCM_NEWCELL (z); - SCM_SET_CELL_OBJECT_0 (z, x); - SCM_SET_CELL_OBJECT_1 (z, y); - return z; + return scm_alloc_cell (SCM_UNPACK (x), SCM_UNPACK (y)); } #undef FUNC_NAME @@ -92,18 +88,7 @@ SCM_DEFINE (scm_cons, "cons", 2, 0, 0, SCM scm_cons2 (SCM w, SCM x, SCM y) { - SCM z1; - SCM z2; - - SCM_NEWCELL (z1); - SCM_SET_CELL_OBJECT_0 (z1, x); - SCM_SET_CELL_OBJECT_1 (z1, y); - - SCM_NEWCELL (z2); - SCM_SET_CELL_OBJECT_0 (z2, w); - SCM_SET_CELL_OBJECT_1 (z2, z1); - - return z2; + return scm_cons (w, scm_cons (x, y)); } |