Commit 7e65579

kravantokh <kravantokh@noreply.codeberg.org>
2026-09-12 18:29:38
Fix some mistakes.
1 parent 9048ec1
Changed files (2)
common.h
@@ -21,7 +21,7 @@ typedef struct _Node {
 		.seen_decl = 0,         \
 		.seen_def = 0,          \
 		.children = __VA_ARGS__ \
-	};
+	}
 
 
 
main.c
@@ -68,6 +68,7 @@ void gen_forward_declaration( Node *parent, Node *current, void *ctx ) {
 	}
 
 	fprintf( f, "Node %s;\n", current->name );
+	current->seen_decl = 1;
 }
 
 
@@ -98,7 +99,7 @@ void gen_node_macro( Node *parent, Node *current, void *ctx ) {
 
 	current->seen_def = 1;
 	fprintf( f, "}" );
-	fprintf( f, " )\n" );
+	fprintf( f, " );\n" );
 }
 
 void generate_code( Node *root, FILE *f ) {