From: Matthew Fernandez Date: Wed, 15 Dec 2021 15:11:08 +0000 (-0800) Subject: gvpack: [nfc] use a C99 bool instead of boolean for 'doPack' X-Git-Tag: 3.0.0~124^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9722725449163e5b08ed20ac8d5ba0a30fefcb7;p=graphviz gvpack: [nfc] use a C99 bool instead of boolean for 'doPack' --- diff --git a/cmd/tools/gvpack.c b/cmd/tools/gvpack.c index 545d8b9a2..904d8770c 100644 --- a/cmd/tools/gvpack.c +++ b/cmd/tools/gvpack.c @@ -72,7 +72,7 @@ static Agdesc_t kind; /* type of graph */ static int G_cnt; /* No. of -G arguments */ static int G_sz; /* Storage size for -G arguments */ static attr_t *G_args; /* Storage for -G arguments */ -static int doPack; /* Do packing if true */ +static bool doPack; /* Do packing if true */ static char* gname = "root"; #define NEWNODE(n) ((node_t*)ND_alg(n)) @@ -284,8 +284,7 @@ static void init_node_edge(Agraph_t * g) * libcommon. If fill is true, we use init_nop (neato -n) to * read in attributes relevant to the layout. */ -static void init_graph(Agraph_t * g, boolean fill, GVC_t* gvc) -{ +static void init_graph(Agraph_t *g, bool fill, GVC_t *gvc) { int d; node_t *n; edge_t *e; @@ -681,7 +680,7 @@ static Agraph_t *cloneGraph(Agraph_t ** gs, int cnt, GVC_t * gvc) } /* do common initialization. This will handle root's label. */ - init_graph(root, FALSE, gvc); + init_graph(root, false, gvc); State = GVSPLINES; gnames = dtopen(&pairdisc, Dtoset);