]> granicus.if.org Git - graphviz/commitdiff
reorder: convert local booleans to C99 bools
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 17 Sep 2021 00:59:26 +0000 (17:59 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 20 Sep 2021 00:24:30 +0000 (17:24 -0700)
lib/dotgen/mincross.c

index 0f3c0f0975f77f6ab26622d2541543ee95e22f00..f59da5240ca4c3ecb35dcee5d8225a7136b3413f 100644 (file)
@@ -1553,7 +1553,6 @@ static void flat_reorder(graph_t * g)
 static void reorder(graph_t * g, int r, int reverse, int hasfixed)
 {
     int changed = 0, nelt;
-    boolean muststay, sawclust;
     node_t **vlist = GD_rank(g)[r].v;
     node_t **lp, **rp, **ep = vlist + GD_rank(g)[r].n;
 
@@ -1566,18 +1565,19 @@ static void reorder(graph_t * g, int r, int reverse, int hasfixed)
            if (lp >= ep)
                break;
            /* find the node that can be compared */
-           sawclust = muststay = FALSE;
+           bool sawclust = false;
+           bool muststay = false;
            for (rp = lp + 1; rp < ep; rp++) {
                if (sawclust && ND_clust(*rp))
                    continue;   /* ### */
                if (left2right(g, *lp, *rp)) {
-                   muststay = TRUE;
+                   muststay = true;
                    break;
                }
                if (ND_mval(*rp) >= 0)
                    break;
                if (ND_clust(*rp))
-                   sawclust = TRUE;    /* ### */
+                   sawclust = true;    /* ### */
            }
            if (rp >= ep)
                break;