diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-09-15 23:45:37 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-09-15 23:45:37 +0200 |
commit | 3db825b0677614b1fe8fd135a1bd125dde6c03e1 (patch) | |
tree | b06941080cf5df97caef903012f253268cf1c562 /libguile/procs.h | |
parent | d3be55145a8c5481d7eb58ec66639645b7ef7f3f (diff) | |
download | guile-3db825b0677614b1fe8fd135a1bd125dde6c03e1.tar.gz |
Use immutable cells for closures.
* libguile/eval.c (scm_closure): Use `scm_immutable_cell ()' instead
of `scm_cell ()'.
* libguile/procs.h (SCM_SETCODE, SCM_SETENV): Remove.
Diffstat (limited to 'libguile/procs.h')
-rw-r--r-- | libguile/procs.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libguile/procs.h b/libguile/procs.h index 9e4b13242..734ce7b19 100644 --- a/libguile/procs.h +++ b/libguile/procs.h @@ -70,10 +70,7 @@ typedef struct #define SCM_CLOSURE_BODY(x) SCM_CDR (SCM_CODE (x)) #define SCM_PROCPROPS(x) SCM_CDR (SCM_CLOSCAR (x)) #define SCM_SETPROCPROPS(x, p) SCM_SETCDR (SCM_CLOSCAR (x), p) -#define SCM_SETCODE(x, e) (SCM_SET_CELL_WORD_0 (x, SCM_UNPACK (scm_cons ((e), SCM_EOL)) \ - + scm_tc3_closure)) #define SCM_ENV(x) SCM_CELL_OBJECT_1 (x) -#define SCM_SETENV(x, e) SCM_SET_CELL_OBJECT_1 ((x), (e)) #define SCM_TOP_LEVEL(ENV) (scm_is_null (ENV) || (scm_is_true (scm_procedure_p (SCM_CAR (ENV))))) /* Procedure-with-setter |