aboutsummaryrefslogtreecommitdiff
path: root/interpreter/fuspel.c
diff options
context:
space:
mode:
authorCamil Staps2016-10-14 22:17:01 +0200
committerCamil Staps2016-10-14 22:17:01 +0200
commit6ca377762516888b0488d60c971e0660ae6035f4 (patch)
tree74c6b013aa80f61cd0bd511a097e54a686b33680 /interpreter/fuspel.c
parentMake debug graphs a command line option (-g) (diff)
token_list using an array for memory efficiency
Diffstat (limited to 'interpreter/fuspel.c')
-rw-r--r--interpreter/fuspel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/interpreter/fuspel.c b/interpreter/fuspel.c
index 736a1c3..bfdbda0 100644
--- a/interpreter/fuspel.c
+++ b/interpreter/fuspel.c
@@ -50,7 +50,6 @@ struct fuspel *import(struct fuspel *already_parsed, char *fname) {
pgm = parse(tokens);
free_token_list(tokens);
- my_free(tokens);
concat_fuspel(pgm, already_parsed);
@@ -105,6 +104,10 @@ int main(int argc, char *argv[]) {
env.printProgram = false;
env.program = NULL;
+#ifdef _FUSPEL_DEBUG
+ env.debugGraphs = false;
+#endif
+
argp_parse(&argp, argc, argv, 0, 0, &env);
if (!env.program) {