summaryrefslogtreecommitdiff
path: root/libguile/continuations.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-06-26 11:25:07 +0200
committerAndy Wingo <wingo@pobox.com>2018-06-26 11:25:07 +0200
commit51e35158bad42b8db28e9272ebb279f17b76dbe4 (patch)
tree02370d3b367571aed28154df7cfc23d0b7dd5bf7 /libguile/continuations.h
parent185d19dfb1a570c3075fa8f1a653334412ae6b85 (diff)
downloadguile-51e35158bad42b8db28e9272ebb279f17b76dbe4.tar.gz
Refactor continuation capture in VM
* libguile/continuations.h: * libguile/continuations.c (scm_i_make_continuation): Refactor to expect registers to already be captured. * libguile/scm.h (scm_i_thread): Add forward decl. * libguile/threads.h (struct scm_i_thread): Just fill in the struct type. * libguile/vm-engine.c (call/cc); Use the registers already captured before entering the VM.
Diffstat (limited to 'libguile/continuations.h')
-rw-r--r--libguile/continuations.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/continuations.h b/libguile/continuations.h
index 6b52f2649..9e044c48c 100644
--- a/libguile/continuations.h
+++ b/libguile/continuations.h
@@ -67,8 +67,8 @@ typedef struct
-SCM_INTERNAL SCM scm_i_make_continuation (int *first,
- struct scm_vm *vp,
+SCM_INTERNAL SCM scm_i_make_continuation (jmp_buf *registers,
+ scm_i_thread *thread,
SCM vm_cont);
SCM_INTERNAL void scm_i_reinstate_continuation (SCM cont) SCM_NORETURN;