aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-29 22:00:40 +0200
committerBad Diode <bd@badd10de.dev>2021-10-29 22:00:40 +0200
commitfbddf5e0c46778c1e403389ba557ef036b7b0fb5 (patch)
tree01aa089934d1b49fe515fe86fffca01c471c69e9 /src/main.c
parent95709acb7f166b21f562ef3fcf8ba7cb5890d28a (diff)
downloadbdl-fbddf5e0c46778c1e403389ba557ef036b7b0fb5.tar.gz
bdl-fbddf5e0c46778c1e403389ba557ef036b7b0fb5.zip
Revert "Deduplicate string/symbols text for fast equality checks"
This reverts commit 95709acb7f166b21f562ef3fcf8ba7cb5890d28a.
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index d4fa2c2..c734916 100755
--- a/src/main.c
+++ b/src/main.c
@@ -32,10 +32,10 @@ process_source(const StringView *source, const char *file_name) {
32 } 32 }
33 33
34 // Parser. 34 // Parser.
35 ParserResults pr = parse(tokens, &errors); 35 Root *roots = parse(tokens, &errors);
36 if (errors.n != 0) { 36 if (errors.n != 0) {
37 report_errors(&errors, file_name); 37 report_errors(&errors, file_name);
38 free_parser_results(&pr); 38 free_roots(roots);
39 array_free(tokens); 39 array_free(tokens);
40 exit(EXIT_FAILURE); 40 exit(EXIT_FAILURE);
41 } 41 }
@@ -46,7 +46,7 @@ process_source(const StringView *source, const char *file_name) {
46 // TODO: Compilation. 46 // TODO: Compilation.
47 47
48 // Free resources. 48 // Free resources.
49 free_parser_results(&pr); 49 free_roots(roots);
50} 50}
51 51
52void 52void