From d2461482caf9e93d6e2bc7ff17567102f635211a Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 11 Jan 2026 17:16:40 +0000 Subject: Fixed some things. Next thing will be tests. --- src/codegen/codegen_main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/codegen/codegen_main.c') diff --git a/src/codegen/codegen_main.c b/src/codegen/codegen_main.c index 0e10869..c9c69f6 100644 --- a/src/codegen/codegen_main.c +++ b/src/codegen/codegen_main.c @@ -1,10 +1,10 @@ +#include "../ast/ast.h" +#include "../zprep.h" +#include "codegen.h" #include -#include #include -#include "codegen.h" -#include "../zprep.h" -#include "../ast/ast.h" +#include // Helper: Check if a struct depends on another struct/enum by-value. static int struct_depends_on(ASTNode *s1, const char *target_name) @@ -191,7 +191,8 @@ void codegen_node(ParserContext *ctx, ASTNode *node, FILE *out) if (node->type == NODE_ROOT) { ASTNode *kids = node->root.children; - // Recursive Unwrap of Nested Roots (if accidentally wrapped multiple times). + // Recursive Unwrap of Nested Roots (if accidentally wrapped multiple + // times). while (kids && kids->type == NODE_ROOT) { kids = kids->root.children; -- cgit v1.2.3