From c70d997cbcb50de2af08341fbf1ea8f4a9a6f013 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 7 Dec 2008 17:35:19 +0000 Subject: [PATCH] Slightly change whitespace when printing for-statements. [r24376] --- ast.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ast.c b/ast.c index 498393c..bf93a14 100644 --- a/ast.c +++ b/ast.c @@ -1124,18 +1124,19 @@ static void print_for_statement(const for_statement_t *statement) if (entity->base.next != NULL) { panic("multiple declarations in for statement not supported yet"); } - fputc(' ', out); } else { if (statement->initialisation) { print_expression(statement->initialisation); } - fputs("; ", out); + fputc(';', out); } if (statement->condition != NULL) { + fputc(' ', out); print_expression(statement->condition); } - fputs("; ", out); + fputc(';', out); if (statement->step != NULL) { + fputc(' ', out); print_expression(statement->step); } fputs(") ", out); -- 2.20.1