]> granicus.if.org Git - graphviz/commitdiff
node_in_layer: use a C99 bool return type instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Aug 2021 23:33:38 +0000 (16:33 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:28:19 +0000 (19:28 -0700)
lib/common/emit.c

index 8c573c1181240f8a235c458588800f32e688c21b..1e742b701cd09c8a8985ed5d805dc27efcc7fd33 100644 (file)
@@ -1701,26 +1701,26 @@ static void setup_page(GVJ_t * job, graph_t * g)
     }
 }
 
-static boolean node_in_layer(GVJ_t *job, graph_t * g, node_t * n)
+static bool node_in_layer(GVJ_t *job, graph_t * g, node_t * n)
 {
     char *pn, *pe;
     edge_t *e;
 
     if (job->numLayers <= 1)
-       return TRUE;
+       return true;
     pn = late_string(n, N_layer, "");
     if (selectedlayer(job, pn))
-       return TRUE;
+       return true;
     if (pn[0])
-       return FALSE;           /* Only check edges if pn = "" */
+       return false;           /* Only check edges if pn = "" */
     if ((e = agfstedge(g, n)) == NULL)
-       return TRUE;
+       return true;
     for (e = agfstedge(g, n); e; e = agnxtedge(g, e, n)) {
        pe = late_string(e, E_layer, "");
        if ((pe[0] == '\0') || selectedlayer(job, pe))
-           return TRUE;
+           return true;
     }
-    return FALSE;
+    return false;
 }
 
 static boolean edge_in_layer(GVJ_t *job, graph_t * g, edge_t * e)