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/environments.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/environments.c')
-rw-r--r-- | libguile/environments.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/libguile/environments.c b/libguile/environments.c index 541427641..237c8b28e 100644 --- a/libguile/environments.c +++ b/libguile/environments.c @@ -119,13 +119,7 @@ scm_error_environment_immutable_location (const char *func, SCM env, SCM symbol) SCM scm_make_environment (void *type) { - SCM env; - - SCM_NEWCELL (env); - SCM_SET_CELL_WORD_1 (env, type); - SCM_SET_CELL_TYPE (env, scm_tc16_environment); - - return env; + return scm_alloc_cell (scm_tc16_environment, (scm_t_bits) type); } @@ -669,11 +663,10 @@ core_environments_observe (SCM env, scm_environment_observer proc, SCM data, int { SCM observer; - SCM_NEWCELL2 (observer); - SCM_SET_CELL_OBJECT_1 (observer, env); - SCM_SET_CELL_OBJECT_2 (observer, data); - SCM_SET_CELL_WORD_3 (observer, proc); - SCM_SET_CELL_TYPE (observer, scm_tc16_observer); + observer = scm_alloc_double_cell (scm_tc16_observer, + SCM_UNPACK (env), + SCM_UNPACK (data), + (scm_t_bits) proc); if (!weak_p) { |