mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
make scm_make_continuation internal
* libguile/continuations.h: * libguile/continuations.c (scm_i_make_continuation): Change from scm_make_continuation, and make internal. * libguile/vm-i-system.c (call/cc, tail-call/cc): Adapt callers. * test-suite/standalone/test-unwind.c (check_cont_body): Adapt a test. * doc/ref/api-control.texi (Continuations): Update docs.
This commit is contained in:
parent
babfc7b2c3
commit
997659f898
6 changed files with 9 additions and 20 deletions
|
@ -1093,7 +1093,7 @@ VM_DEFINE_INSTRUCTION (64, call_cc, "call/cc", 0, 1, 1)
|
|||
SCM proc, cont;
|
||||
POP (proc);
|
||||
SYNC_ALL ();
|
||||
cont = scm_make_continuation (&first);
|
||||
cont = scm_i_make_continuation (&first);
|
||||
if (first)
|
||||
{
|
||||
PUSH ((SCM)fp); /* dynamic link */
|
||||
|
@ -1130,7 +1130,7 @@ VM_DEFINE_INSTRUCTION (65, tail_call_cc, "tail-call/cc", 0, 1, 1)
|
|||
SCM proc, cont;
|
||||
POP (proc);
|
||||
SYNC_ALL ();
|
||||
cont = scm_make_continuation (&first);
|
||||
cont = scm_i_make_continuation (&first);
|
||||
ASSERT (sp == vp->sp);
|
||||
ASSERT (fp == vp->fp);
|
||||
if (first)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue