diff options
author | Keith Packard <keithp@keithp.com> | 2017-11-16 13:02:07 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-11-16 13:02:07 -0800 |
commit | bd881a5b85d7cd4fb82127f92f32e089499b50cb (patch) | |
tree | bf4f5f985e37544b1ee64a65020b809ee994e227 /src/lisp/ao_lisp_string.c | |
parent | 50a095fbe828b6ec3159d27930712df6b1b519b4 (diff) |
altos/lisp: Add non-cons cdr support
The cdr of a cons can be any value; add support for lexing and
printing them.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp/ao_lisp_string.c b/src/lisp/ao_lisp_string.c index cd7b27a9..af23f7b3 100644 --- a/src/lisp/ao_lisp_string.c +++ b/src/lisp/ao_lisp_string.c @@ -103,7 +103,7 @@ ao_lisp_string_unpack(char *a) ao_lisp_cons_stash(0, cons); ao_lisp_cons_stash(1, tail); ao_lisp_string_stash(0, a); - struct ao_lisp_cons *n = ao_lisp_cons_cons(ao_lisp_int_poly(c), NULL); + struct ao_lisp_cons *n = ao_lisp_cons_cons(ao_lisp_int_poly(c), AO_LISP_NIL); a = ao_lisp_string_fetch(0); cons = ao_lisp_cons_fetch(0); tail = ao_lisp_cons_fetch(1); |