diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2026-01-24 23:53:16 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2026-01-24 23:53:16 +0100 |
| commit | 15b883e68f620592cafada6ef7f6c698a2c216c2 (patch) | |
| tree | e059f68846a53717a2e2d1fd4b9ecfd73b182063 /lisp_api.h | |
| parent | dc1fc66181cba96cc94f21f055676b952489dbd9 (diff) | |
garbage collection
Diffstat (limited to 'lisp_api.h')
| -rw-r--r-- | lisp_api.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |
