diff options
author | Andy Wingo <wingo@pobox.com> | 2010-02-07 14:50:51 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-02-08 13:35:42 +0100 |
commit | 269479e31f70d40a82b75be87c1b2a7363c85696 (patch) | |
tree | 8b8f8603e0a5610de57c1258dae7b8e89aa7139b /libguile/stacks.c | |
parent | 997659f898d94abccdcba3c444b84e3c6f6e963e (diff) | |
download | guile-269479e31f70d40a82b75be87c1b2a7363c85696.tar.gz |
scm_i_make_continuation takes vm and vm_cont args explicitly
* libguile/continuations.h:
* libguile/continuations.c (scm_i_make_continuation): Take VM and VM
continuation arguments as well; I'm not convinced that saving all VM
continuations was the right thing, and in any case we only ever saved
the latest. Running a new VM should create a continuation barrier.
* libguile/stacks.c (scm_make_stack):
* libguile/vm-i-system.c (call/cc, tail-call/cc): Adapt callers.
* libguile/vm.h (scm_i_vm_capture_continuation)
(scm_i_vm_reinstate_continuation): Change to be internal, and to only
capture and reinstate continuations for a particular VM.
Diffstat (limited to 'libguile/stacks.c')
-rw-r--r-- | libguile/stacks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/stacks.c b/libguile/stacks.c index ce5830c5b..58155902f 100644 --- a/libguile/stacks.c +++ b/libguile/stacks.c @@ -199,7 +199,7 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1, SCM cont; struct scm_vm_cont *c; - cont = scm_cdar (scm_vm_capture_continuations ()); + cont = scm_i_vm_capture_continuation (scm_the_vm ()); c = SCM_VM_CONT_DATA (cont); frame = scm_c_make_frame (cont, c->fp + c->reloc, |