From 26412195d495364ac234be18bfac90e52f8b933c Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 13 Nov 2007 21:10:28 +0000 Subject: [PATCH] no need for ; in for statement after print_declaration_statement [r18385] --- ast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ast.c b/ast.c index 5bd7cea..93ba57f 100644 --- a/ast.c +++ b/ast.c @@ -413,10 +413,11 @@ static void print_for_statement(const for_statement_t *statement) if(statement->context.declarations->next != NULL) { panic("multiple declarations in for statement not supported yet"); } + fputc(' ', out); } else if(statement->initialisation) { print_expression(statement->initialisation); + fputs("; ", out); } - fputs("; ", out); if(statement->condition != NULL) { print_expression(statement->condition); } -- 2.20.1