summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-03 16:52:10 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-03 16:52:10 -0400
commitd960aa2d2eca0f0efbbcf2440955266ebb5369b8 (patch)
tree09b5a68174a4125084020d7eaf09c4c3dff9c66f /main.c
parent0e870cae655b5b7fdfb395797d13f0bbda8c2a8b (diff)
fixed some arr bugs
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 29476e0..2fd777d 100644
--- a/main.c
+++ b/main.c
@@ -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);