summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_string.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-05 17:53:15 -0700
committerKeith Packard <keithp@keithp.com>2016-11-17 22:18:39 -0800
commit954bc72d5822e0f5666e80764e798c10b1eb541d (patch)
tree05494f228e6c06779ed118a91cba727fae83860f /src/lisp/ao_lisp_string.c
parent546e58b0a868662271553a15f2b1c1a8ea317582 (diff)
altos/lisp: more GC issues. add patom
Use global ao_lisp_stack instead of local stack so that gc moves of that item 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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lisp/ao_lisp_string.c b/src/lisp/ao_lisp_string.c
index 39c3dc81..0064064c 100644
--- a/src/lisp/ao_lisp_string.c
+++ b/src/lisp/ao_lisp_string.c
@@ -99,3 +99,13 @@ ao_lisp_string_print(ao_poly p)
}
putchar('"');
}
+
+void
+ao_lisp_string_patom(ao_poly p)
+{
+ char *s = ao_lisp_poly_string(p);
+ char c;
+
+ while ((c = *s++))
+ putchar(c);
+}