klisp

an open source interpreter for the Kernel Programming Language.
git clone http://git.hanabi.in/repos/klisp.git
Log | Files | Refs | README

commit 45618126610235b0c40d2cb2000345b9f0c59965
parent e96dd8cfc9ca55ff98d050ddef9b08432e37f2d1
Author: Andres Navarro <canavarro82@gmail.com>
Date:   Tue, 15 Mar 2011 16:50:11 -0300

Bugfix: repl's error-continuation wasn't in the dynamic extent of root-continuation.

Diffstat:
Msrc/krepl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/krepl.c b/src/krepl.c @@ -110,7 +110,7 @@ void kinit_repl(klisp_State *K) /* set up the continuations */ TValue root_cont = kmake_continuation(K, KNIL, KNIL, KNIL, exit_fn, 0); - TValue error_cont = kmake_continuation(K, KNIL, KNIL, KNIL, + TValue error_cont = kmake_continuation(K, root_cont, KNIL, KNIL, error_fn, 1, std_env); /* update the ground environment with these two conts */