summaryrefslogtreecommitdiff
path: root/main.c
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 /main.c
parentdc1fc66181cba96cc94f21f055676b952489dbd9 (diff)
garbage collection
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 695b7d7..1414335 100644
--- a/main.c
+++ b/main.c
@@ -141,9 +141,10 @@ int main(int argc, char **argv) {
prompt = " ";
}
free(line);
- int marked = mark_env(global_env); //maybe do this somewhere else?
- printf("marked: %d\n", marked);
+ reset_marks();
+ mark_env(global_env); //maybe do this somewhere else?
sweep();
+ print_register();
}
return 0;
}