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

index 5a36b62bc9b1fd5fc797d02e83b7f4d912dbce40..8c573c1181240f8a235c458588800f32e688c21b 100644 (file)
@@ -1445,7 +1445,7 @@ static bool write_edge_test(Agraph_t * g, Agedge_t * e)
     return true;
 }
 
-static boolean write_node_test(Agraph_t * g, Agnode_t * n)
+static bool write_node_test(Agraph_t * g, Agnode_t * n)
 {
     Agraph_t *sg;
     int c;
@@ -1453,9 +1453,9 @@ static boolean write_node_test(Agraph_t * g, Agnode_t * n)
     for (c = 1; c <= GD_n_cluster(g); c++) {
        sg = GD_clust(g)[c];
        if (agcontains(sg, n))
-           return FALSE;
+           return false;
     }
-    return TRUE;
+    return true;
 }
 
 #define INITPTS 1000