diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |