From caf6ecd9344b13c443435f94c3c5b8ccf717e853 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 24 Apr 2025 19:37:45 +0330 Subject: some clean ups --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index fad415b..323b04b 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ #include // #define PRINT_COMPILE_TREE -#define PRINT_STATISTICS +// #define PRINT_STATISTICS #ifdef PRINT_STATISTICS static struct timespec diff(struct timespec end, struct timespec start) { @@ -53,7 +53,9 @@ static int run(const char *filePath) { totalTime = add(totalTime, astTime); #endif #ifdef PRINT_COMPILE_TREE - astTreeRootPrint(astTree); + for (size_t i = 0; i < astTrees.size; ++i) { + astTreeRootPrint(astTrees.data[i]); + } #endif #ifdef PRINT_STATISTICS clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &start); -- cgit v1.2.3