summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-08-31 20:56:56 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-08-31 20:56:56 -0400
commit3d784ecc2529504ad5d57da4f1216777e3f7788d (patch)
tree753f8293e684b384dc522067b51128c6a53186de /main.c
parentdaecba943794bb00be063de3127d4b863b660279 (diff)
removed global identifier tree
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index f22b3c3..b4caeeb 100644
--- a/main.c
+++ b/main.c
@@ -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);
}