From: Matthew Fernandez Date: Sat, 1 Oct 2022 02:29:38 +0000 (-0700) Subject: gv2gxl writeHdr: take a C99 bool for 'top' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b9cea01d16acf95a1e585c717f0703caa13dc5e;p=graphviz gv2gxl writeHdr: take a C99 bool for 'top' Slightly clearer about the intent of this parameter. --- diff --git a/cmd/tools/gv2gxl.c b/cmd/tools/gv2gxl.c index 4a2ce69d7..64f493117 100644 --- a/cmd/tools/gv2gxl.c +++ b/cmd/tools/gv2gxl.c @@ -438,9 +438,7 @@ static void writeDicts(Agraph_t * g, FILE * gxlFile) } } -static void -writeHdr(gxlstate_t * stp, Agraph_t * g, FILE * gxlFile, int top) -{ +static void writeHdr(gxlstate_t *stp, Agraph_t *g, FILE *gxlFile, bool top) { char *name; char *kind; char *uniqueName; @@ -527,7 +525,7 @@ static void writeSubgs(gxlstate_t * stp, Agraph_t * g, FILE * gxlFile) Agraph_t *subg; for (subg = agfstsubg(g); subg; subg = agnxtsubg(subg)) { - writeHdr(stp, subg, gxlFile, FALSE); + writeHdr(stp, subg, gxlFile, false); writeBody(stp, subg, gxlFile); writeTrl(subg, gxlFile, FALSE); } @@ -869,7 +867,7 @@ void gv_to_gxl(Agraph_t * g, FILE * gxlFile) fprintf(gxlFile, "\n"); fprintf(gxlFile, "\n"); - writeHdr(stp, g, gxlFile, TRUE); + writeHdr(stp, g, gxlFile, true); writeBody(stp, g, gxlFile); writeTrl(g, gxlFile, TRUE);