diff options
author | Gary Houston <ghouston@arglist.com> | 2000-11-25 16:58:25 +0000 |
---|---|---|
committer | Gary Houston <ghouston@arglist.com> | 2000-11-25 16:58:25 +0000 |
commit | 5f144b105db0dcbe3b33947317d3e9b98cbd5269 (patch) | |
tree | b2491ba314e94a35b79871c086523d79192f5e91 /libguile/debug.c | |
parent | 7f555fb4ed423ad783c961bed500c19d3159886a (diff) | |
download | guile-5f144b105db0dcbe3b33947317d3e9b98cbd5269.tar.gz |
* use an applicable SMOB to represent continuations, instead of a
custom tc7 type. This will make it easier to support R5RS
multiple value continuations, without the use of a Scheme-level
wrapper.
* continuations.c (scm_tc16_continuation, continuation_mark,
continuation_free, continuation_print, continuation_apply):
new SMOB support.
(scm_make_continuation): new procedure, replaces scm_make_cont
with a different interface.
(copy_stack_and_call, scm_dynthrow, scm_init_continuations): rewritten.
(CHEAP_CONTINUATIONS): removed non-working code completely.
(scm_call_continuation): removed.
* continuations.h (struct scm_contregs): add num_stack_items and
stack fields. previously stack was stored following this struct:
use a tail array instead.
(SCM_CONTINUATIONP): new macro.
(SCM_CONTINUATION_LENGTH, SCM_SET_CONTINUATION_LENGTH):
rewritten.
(SCM_SET_CONTREGS): removed.
* tags.h: removed scm_tc7_contin (was tag 61).
* debug.c, gc.c, hash.c, print.c, procprop.c, procs.c:
removed scm_tc7_contin support.
* eval.c: use scm_make_continuation instead of scm_make_cont.
don't set jump buffers here. remove scm_tc7_contin support.
* init.c, root.c: create SMOB continuation for rootcont instead
of scm_tc7_contin. call scm_init_continuations before
scm_init_root.
* root.c: remove support for static jmpbuf. It's not used by
default and I broke it. create SMOB continuation for rootcont.
* stacks.c: use SCM_CONTINUATIONP.
Diffstat (limited to 'libguile/debug.c')
-rw-r--r-- | libguile/debug.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libguile/debug.c b/libguile/debug.c index 93cbf6aa9..f530c3f66 100644 --- a/libguile/debug.c +++ b/libguile/debug.c @@ -431,7 +431,6 @@ SCM_DEFINE (scm_procedure_source, "procedure-source", 1, 0, 0, SCM_EOL, SCM_ENV (proc)))); } - case scm_tc7_contin: case scm_tcs_subrs: #ifdef CCLO case scm_tc7_cclo: @@ -455,7 +454,6 @@ SCM_DEFINE (scm_procedure_environment, "procedure-environment", 1, 0, 0, switch (SCM_TYP7 (proc)) { case scm_tcs_closures: return SCM_ENV (proc); - case scm_tc7_contin: case scm_tcs_subrs: #ifdef CCLO case scm_tc7_cclo: |