summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-05 17:53:15 -0700
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:50 -0800
commitd8cf97fe22acefab40d7bb321138e46d4483fef7 (patch)
tree8dbab3f6977c62aa16208913013b3bd0d0728817 /src/lisp/ao_lisp.h
parent286d07d83bd7ff361e5a904c151a75e5a9c8b071 (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.h')
-rw-r--r--src/lisp/ao_lisp.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lisp/ao_lisp.h b/src/lisp/ao_lisp.h
index 27174e13..0d179942 100644
--- a/src/lisp/ao_lisp.h
+++ b/src/lisp/ao_lisp.h
@@ -173,6 +173,7 @@ enum ao_lisp_builtin_id {
builtin_setq,
builtin_cond,
builtin_print,
+ builtin_patom,
builtin_plus,
builtin_minus,
builtin_times,
@@ -331,6 +332,9 @@ ao_lisp_cons_cons(ao_poly car, struct ao_lisp_cons *cdr);
void
ao_lisp_cons_print(ao_poly);
+void
+ao_lisp_cons_patom(ao_poly);
+
/* string */
extern const struct ao_lisp_type ao_lisp_string_type;
@@ -346,6 +350,9 @@ ao_lisp_string_cat(char *a, char *b);
void
ao_lisp_string_print(ao_poly s);
+void
+ao_lisp_string_patom(ao_poly s);
+
/* atom */
extern const struct ao_lisp_type ao_lisp_atom_type;
@@ -370,9 +377,12 @@ void
ao_lisp_int_print(ao_poly i);
/* prim */
-ao_poly
+void
ao_lisp_poly_print(ao_poly p);
+void
+ao_lisp_poly_patom(ao_poly p);
+
int
ao_lisp_poly_mark(ao_poly p);