diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-08-31 20:56:56 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-08-31 20:56:56 -0400 |
commit | 3d784ecc2529504ad5d57da4f1216777e3f7788d (patch) | |
tree | 753f8293e684b384dc522067b51128c6a53186de /main.c | |
parent | daecba943794bb00be063de3127d4b863b660279 (diff) |
removed global identifier tree
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,7 +36,9 @@ int main(int argc, char **argv) { fclose(in); err_filename = in_filename; + Identifiers file_idents = {0}; Tokenizer t; + tokr_create(&t, &file_idents); if (!tokenize_string(&t, contents)) { err_fprint(TEXT_IMPORTANT("Errors occured while preprocessing.\n")); return EXIT_FAILURE; @@ -80,5 +82,5 @@ int main(int argc, char **argv) { fclose(c_out); fclose(h_out); - idents_free(); + idents_free(&file_idents); } |