summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 1721269..c875f4b 100644
--- a/main.c
+++ b/main.c
@@ -62,6 +62,9 @@ int main(int argc, char **argv) {
fprint_parsed_file(stdout, &f);
tokr_free(&t);
+
+
+ block_enter(NULL, &f.stmts); /* enter global scope */
if (!types_file(&f)) {
err_fprint(TEXT_IMPORTANT("Errors occured while determining types.\n"));
return EXIT_FAILURE;
@@ -79,6 +82,7 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}
+ block_exit(NULL, &f.stmts); /* exit global scope */
free(contents);
fclose(c_out);