]> granicus.if.org Git - graphviz/commitdiff
gvpack: [nfc] use a C99 bool instead of boolean for 'doPack'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 15:11:08 +0000 (07:11 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 15:11:08 +0000 (07:11 -0800)
cmd/tools/gvpack.c

index 545d8b9a2987e06dafdcaa2c99ff3f7bcb5081f9..904d8770c613049cfe487cb9a5fc4a3bd40468de 100644 (file)
@@ -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);