tisp

tiny lisp
git clone git://edryd.org/tisp
Log | Files | Refs | LICENSE

commit 284fc8a130e6c5ce6ebcc4b663557e901dc5d9a4
parent 9dd2e4f9c89196fa7c70bbbc039eb3afef364b38
Author: Ed van Bruggen <edvb@uw.edu>
Date:   Thu, 12 Mar 2020 00:33:33 -0700

Prevent executable from printing void

Fixes bug where repl displays #<void> upon (quit)

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

diff --git a/main.c b/main.c @@ -56,7 +56,7 @@ readstr: } else { /* otherwise read as file */ v = tisp_eval_seq(st, st->global, tisp_parse_file(st, argv[i])); } - if (v) tisp_print(stdout, v); + if (v && v->t != NONE) tisp_print(stdout, v); } puts("");