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/print.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/print.c')
-rw-r--r-- | libguile/print.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libguile/print.c b/libguile/print.c index 59004fd85..ecdc40d27 100644 --- a/libguile/print.c +++ b/libguile/print.c @@ -673,13 +673,6 @@ taloop: } scm_putc ('>', port); break; - case scm_tc7_contin: - scm_puts ("#<continuation ", port); - scm_intprint (SCM_CONTINUATION_LENGTH (exp), 10, port); - scm_puts (" @ ", port); - scm_intprint ((long) SCM_CONTREGS (exp), 16, port); - scm_putc ('>', port); - break; case scm_tc7_port: { register long i = SCM_PTOBNUM (exp); |