From 95709acb7f166b21f562ef3fcf8ba7cb5890d28a Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 29 Oct 2021 20:12:19 +0200 Subject: Deduplicate string/symbols text for fast equality checks --- 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 c734916..d4fa2c2 100755 --- a/src/main.c +++ b/src/main.c @@ -32,10 +32,10 @@ process_source(const StringView *source, const char *file_name) { } // Parser. - Root *roots = parse(tokens, &errors); + ParserResults pr = parse(tokens, &errors); if (errors.n != 0) { report_errors(&errors, file_name); - free_roots(roots); + free_parser_results(&pr); array_free(tokens); exit(EXIT_FAILURE); } @@ -46,7 +46,7 @@ process_source(const StringView *source, const char *file_name) { // TODO: Compilation. // Free resources. - free_roots(roots); + free_parser_results(&pr); } void -- cgit v1.2.1