]> git.saurik.com Git - bison.git/blobdiff - src/state.c
Switch from 'int' to 'bool' where that makes sense.
[bison.git] / src / state.c
index 730427f3f3f8b9be035518a0eb6cfe02e13db5a3..e6d15f2a4291da03fe6fab73f2a36abd2f1438bd 100644 (file)
@@ -236,12 +236,13 @@ state_rule_lookaheads_print (state *s, rule *r, FILE *out)
     {
       bitset_iterator biter;
       int k;
-      int not_first = 0;
+      char const *sep = "";
       fprintf (out, "  [");
       BITSET_FOR_EACH (biter, reds->lookaheads[red], k, 0)
-       fprintf (out, "%s%s",
-                not_first++ ? ", " : "",
-                symbols[k]->tag);
+       {
+         fprintf (out, "%s%s", sep, symbols[k]->tag);
+         sep = ", ";
+       }
       fprintf (out, "]");
     }
 }