From: Matthew Fernandez Date: Sat, 1 Oct 2022 02:34:24 +0000 (-0700) Subject: gv2gxl writeEdgeTest: return a C99 bool X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b8f63ee077e2740c45658b8e35865ce06f9cf54;p=graphviz gv2gxl writeEdgeTest: return a C99 bool Slightly simpler and clearer. --- diff --git a/cmd/tools/gv2gxl.c b/cmd/tools/gv2gxl.c index 1ed2a6178..55727ddc4 100644 --- a/cmd/tools/gv2gxl.c +++ b/cmd/tools/gv2gxl.c @@ -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