bool, indendation.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 12 Sep 2008 09:13:36 +0000 (09:13 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 12 Sep 2008 09:13:36 +0000 (09:13 +0000)
[r21889]

ast.c

diff --git a/ast.c b/ast.c
index 1dd6085..478e642 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -957,17 +957,17 @@ static void print_case_label(const case_label_statement_t *statement)
 static void print_declaration_statement(
                const declaration_statement_t *statement)
 {
-       int first = 1;
-       declaration_t *declaration = statement->declarations_begin;
-       for( ; declaration != statement->declarations_end->next;
-              declaration = declaration->next) {
-           if(declaration->storage_class == STORAGE_CLASS_ENUM_ENTRY)
-               continue;
+       bool first = true;
+       for (declaration_t *declaration = statement->declarations_begin;
+            declaration != statement->declarations_end->next;
+            declaration = declaration->next) {
+               if (declaration->storage_class == STORAGE_CLASS_ENUM_ENTRY)
+                       continue;
 
-               if(!first) {
+               if (!first) {
                        print_indent();
                } else {
-                       first = 0;
+                       first = false;
                }
                print_declaration(declaration);
                fputc('\n', out);