diff options
author | Keith Packard <keithp@keithp.com> | 2017-11-18 22:00:44 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-11-18 22:00:44 -0800 |
commit | 12a1f6ad48f2b924f71239effeb90afca75a090f (patch) | |
tree | da4d42d66f10698b5f38c0bc9b60cf1f01fa7b02 /src/lisp/ao_lisp_string.c | |
parent | 5f8f0ed5cd5d4b4f793c602ed09f9b4bdb98f7e8 (diff) |
altos/lisp: Fix some scheme compat issues
flush -> flush-output
nth -> list-ref (oh, and add list-tail)
add let* (same as let for now)
write control chars in octal
make hanoi example work
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_string.c')
-rw-r--r-- | src/lisp/ao_lisp_string.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lisp/ao_lisp_string.c b/src/lisp/ao_lisp_string.c index fff218df..1daa50ea 100644 --- a/src/lisp/ao_lisp_string.c +++ b/src/lisp/ao_lisp_string.c @@ -140,7 +140,10 @@ ao_lisp_string_write(ao_poly p) printf ("\\t"); break; default: - putchar(c); + if (c < ' ') + printf("\\%03o", c); + else + putchar(c); break; } } |