diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-03 16:52:10 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-03 16:52:10 -0400 |
commit | d960aa2d2eca0f0efbbcf2440955266ebb5369b8 (patch) | |
tree | 09b5a68174a4125084020d7eaf09c4c3dff9c66f /main.c | |
parent | 0e870cae655b5b7fdfb395797d13f0bbda8c2a8b (diff) |
fixed some arr bugs
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -51,8 +51,8 @@ int main(int argc, char **argv) { return EXIT_FAILURE; } - arr_foreach(&t.tokens, Token, token) { - if (token != t.tokens.data) + arr_foreach(t.tokens, Token, token) { + if (token != t.tokens) printf(" "); fprint_token(stdout, token); } @@ -69,7 +69,7 @@ int main(int argc, char **argv) { printf("\n\n-----\n\n"); - block_enter(NULL, &f.stmts); /* enter global scope */ + block_enter(NULL, f.stmts); /* enter global scope */ Typer tr; Evaluator ev; evalr_create(&ev); @@ -80,7 +80,7 @@ int main(int argc, char **argv) { } parse_printing_after_types = true; fprint_parsed_file(stdout, &f); - block_exit(NULL, &f.stmts); /* exit global scope */ + block_exit(NULL, f.stmts); /* exit global scope */ tokr_free(&t); |