]> granicus.if.org Git - graphviz/commitdiff
gv2gxl writeEdgeTest: return a C99 bool
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 Oct 2022 02:34:24 +0000 (19:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 Oct 2022 02:34:24 +0000 (19:34 -0700)
Slightly simpler and clearer.

cmd/tools/gv2gxl.c

index 1ed2a6178c8de6a23c5fcc48f5eaf3fdb89112fd..55727ddc4f7bdc3f56e4c5d11a55ea5a353311cc 100644 (file)
@@ -687,16 +687,15 @@ static void writePort(Agedge_t * e, FILE * gxlFile, char *name)
     }
 }
 
-static int writeEdgeTest(Agraph_t * g, Agedge_t * e)
-{
+static bool writeEdgeTest(Agraph_t *g, Agedge_t *e) {
     Agraph_t *subg;
 
     /* can use agedge() because we subverted the dict compar_f */
     for (subg = agfstsubg(g); subg; subg = agnxtsubg(subg)) {
        if (agsubedge(subg, e, FALSE))
-           return FALSE;
+           return false;
     }
-    return TRUE;
+    return true;
 }
 
 static void