From fbddf5e0c46778c1e403389ba557ef036b7b0fb5 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 29 Oct 2021 22:00:40 +0200 Subject: Revert "Deduplicate string/symbols text for fast equality checks" This reverts commit 95709acb7f166b21f562ef3fcf8ba7cb5890d28a. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') 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) { } // Parser. - ParserResults pr = parse(tokens, &errors); + Root *roots = parse(tokens, &errors); if (errors.n != 0) { report_errors(&errors, file_name); - free_parser_results(&pr); + free_roots(roots); array_free(tokens); exit(EXIT_FAILURE); } @@ -46,7 +46,7 @@ process_source(const StringView *source, const char *file_name) { // TODO: Compilation. // Free resources. - free_parser_results(&pr); + free_roots(roots); } void -- cgit v1.2.1