summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-05 11:09:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-05 11:09:07 -0700
commit5fb2d4a21816d2d06ec0b12ff7be5b09a7771ce4 (patch)
tree46dad3990fcbbf1935c531f4a526ecc63d141825 /eval.c
parent59681c49080f395057548e0d848fbde40d3f0c34 (diff)
downloadtxr-5fb2d4a21816d2d06ec0b12ff7be5b09a7771ce4.tar.gz
txr-5fb2d4a21816d2d06ec0b12ff7be5b09a7771ce4.tar.bz2
txr-5fb2d4a21816d2d06ec0b12ff7be5b09a7771ce4.zip
Syntax errors refer to REPL line number.
* eval.c (eval_init): Registrations of lisp-parse and read must account for new optional argument. * lib.c (func_n5o): New function. * lib.h (func_n5o): Declared. * parser.c (lisp_parse): New argument for passing in line number. This is punched into the parser object. (read_eval_stream): Call to lisp_parse defaults new argument. (repl): Pass repl line number to lisp_parse. * parser.h (lisp_parse): Declaration updated. * txr.c (txr_main): Call to lisp_parse defaults new argument.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 98a7fbec..1e5919cf 100644
--- a/eval.c
+++ b/eval.c
@@ -4364,8 +4364,8 @@ void eval_init(void)
reg_fun(intern(lit("hash-revget"), user_package), func_n4o(hash_revget, 2));
reg_fun(intern(lit("eval"), user_package), func_n2o(eval_intrinsic, 1));
- reg_fun(intern(lit("lisp-parse"), user_package), func_n4o(lisp_parse, 0));
- reg_fun(intern(lit("read"), user_package), func_n4o(lisp_parse, 0));
+ reg_fun(intern(lit("lisp-parse"), user_package), func_n5o(lisp_parse, 0));
+ reg_fun(intern(lit("read"), user_package), func_n5o(lisp_parse, 0));
reg_fun(intern(lit("load"), system_package), func_n2(sys_load));
reg_fun(intern(lit("expand"), system_package), func_n2o(expand, 1));
reg_fun(intern(lit("macro-form-p"), user_package), func_n2o(macro_form_p, 1));