klisp

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

commit a0fa1c4ae1a4297d91683334db5b4514ce517b5a
parent efbdabdafbb4e6405ebe539ab1ac2d3534a2535d
Author: Andres Navarro <canavarro82@gmail.com>
Date:   Fri, 29 Apr 2011 18:28:51 -0300

Removed the code that resetted the source code info in the repl at each interaction.

Diffstat:
Msrc/krepl.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/krepl.c b/src/krepl.c @@ -46,11 +46,13 @@ void read_fn(klisp_State *K, TValue *xparams, TValue obj) TValue port = kcdr(K->kd_in_port_key); klisp_assert(kport_file(port) == stdin); - +#if 0 /* Let's disable this for now */ /* workaround to the problem of the dangling '\n' in repl (from previous line) */ kread_ignore_whitespace_and_comments_from_port(K, port); + kport_reset_source_info(port); +#endif obj = kread_from_port(K, port, true); /* read mutable pairs */ kapply_cc(K, obj); }