summaryrefslogtreecommitdiff
path: root/lisp_api.h
diff options
context:
space:
mode:
authorFelix Perktold <Felix.Perktold@student.uibk.ac.at>2026-01-24 23:53:16 +0100
committerFelix Perktold <Felix.Perktold@student.uibk.ac.at>2026-01-24 23:53:16 +0100
commit15b883e68f620592cafada6ef7f6c698a2c216c2 (patch)
treee059f68846a53717a2e2d1fd4b9ecfd73b182063 /lisp_api.h
parentdc1fc66181cba96cc94f21f055676b952489dbd9 (diff)
garbage collection
Diffstat (limited to 'lisp_api.h')
-rw-r--r--lisp_api.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp_api.h b/lisp_api.h
index 9527551..91de402 100644
--- a/lisp_api.h
+++ b/lisp_api.h
@@ -6,7 +6,7 @@ typedef struct env env;
value *eval(env *e, value *val);
-void print_value(value *val);
+void print_value(value *val, int depth);
void println_value(value *val);
typedef enum {
@@ -27,9 +27,9 @@ struct value {
union {
int i;
double d;
- const char *sym;
- const char *str;
- const char *err;
+ char *sym;
+ char *str;
+ char *err;
struct {
value *car;
value *cdr;
@@ -48,7 +48,7 @@ struct value {
env *env;
} thunk;
} as;
- int reachable;
+ int marked;
};
value *make_int(int i);