From: Matthew Fernandez Date: Wed, 15 Dec 2021 15:09:06 +0000 (-0800) Subject: gvpack cloneGraph: [nfc] replace a boolean with a C99 bool X-Git-Tag: 3.0.0~124^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7e535cad1f65783fb3d2b23e9609d3aaed537f7;p=graphviz gvpack cloneGraph: [nfc] replace a boolean with a C99 bool --- diff --git a/cmd/tools/gvpack.c b/cmd/tools/gvpack.c index 30b2629ec..545d8b9a2 100644 --- a/cmd/tools/gvpack.c +++ b/cmd/tools/gvpack.c @@ -26,6 +26,7 @@ #include #include #include +#include #if defined(_WIN32) __declspec(dllimport) @@ -661,7 +662,7 @@ static Agraph_t *cloneGraph(Agraph_t ** gs, int cnt, GVC_t * gvc) Dt_t *nnames; /* dict of used node names */ Agsym_t *G_bb; Agsym_t *rv; - boolean doWarn = TRUE; + bool doWarn = true; if (verbose) fprintf(stderr, "Creating clone graph\n"); @@ -699,7 +700,7 @@ static Agraph_t *cloneGraph(Agraph_t ** gs, int cnt, GVC_t * gvc) "Warning: node %s in graph[%d] %s already defined\n", agnameof(n), i, agnameof(g)); fprintf(stderr, "Some nodes will be renamed.\n"); - doWarn = FALSE; + doWarn = false; } np = agnode(root, xName(nnames, agnameof(n)), 1); agbindrec (np, "Agnodeinfo_t", sizeof(Agnodeinfo_t), TRUE);