mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
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.
This commit is contained in:
parent
997659f898
commit
269479e31f
6 changed files with 20 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue