From 90e163dbb3358059f87d156fea1e874dd6540053 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 30 Sep 2022 19:28:01 -0700 Subject: [PATCH] gv2gxl: use C99 bools when calling 'agdatadict' The upper case versions of the boolean literals are legacy Graphviz-specific values from when the code base was using a pre-C99 standard. --- cmd/tools/gv2gxl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/tools/gv2gxl.c b/cmd/tools/gv2gxl.c index 377adf0cd..4a2ce69d7 100644 --- a/cmd/tools/gv2gxl.c +++ b/cmd/tools/gv2gxl.c @@ -19,6 +19,7 @@ #include #include "convert.h" #include +#include #include #include @@ -430,7 +431,7 @@ writeDict(Agraph_t * g, FILE * gxlFile, char *name, Dict_t * dict, static void writeDicts(Agraph_t * g, FILE * gxlFile) { Agdatadict_t *def; - if ((def = agdatadict(g, FALSE))) { + if ((def = agdatadict(g, false))) { writeDict(g, gxlFile, "graph", def->dict.g, 1); writeDict(g, gxlFile, "node", def->dict.n, 0); writeDict(g, gxlFile, "edge", def->dict.e, 0); @@ -759,7 +760,7 @@ static void writeBody(gxlstate_t * stp, Agraph_t * g, FILE * gxlFile) Agedge_t *e; writeSubgs(stp, g, gxlFile); - Agdatadict_t *dd = agdatadict(g, FALSE); + Agdatadict_t *dd = agdatadict(g, false); for (n = agfstnode(g); n; n = agnxtnode(g, n)) { realn = agidnode(stp->root, AGID(n), 0); if (!writeval(realn)) { -- 2.40.0