]> granicus.if.org Git - graphviz/commitdiff
makeObstacle: [nfc] take a C99 bool parameter instead of a boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 20 Dec 2021 04:10:56 +0000 (20:10 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Dec 2021 18:38:17 +0000 (10:38 -0800)
lib/fdpgen/clusteredges.c
lib/neatogen/neatoprocs.h
lib/neatogen/neatosplines.c

index 5071f9f4ed3dfbddefc72718999520285841219c..c2d528168c107d31c62d562834d1b485964bf3ef 100644 (file)
@@ -25,6 +25,7 @@
 #include <neatogen/neatoprocs.h>
 #include <pathplan/vispath.h>
 #include <pack/pack.h>
+#include <stdbool.h>
 
 typedef struct {
     int cnt;
@@ -152,7 +153,7 @@ addGraphObjs(objlist * l, graph_t * g, void *tex, void *hex, expand_t* pm)
 
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
        if (PARENT(n) == g && n != tex && n != hex && !IS_CLUST_NODE(n)) {
-           addObj(l, makeObstacle(n, pm, FALSE));
+           addObj(l, makeObstacle(n, pm, false));
        }
     }
     for (i = 1; i <= GD_n_cluster(g); i++) {
index 98a25ae637e2d4c0af23a1dfc5c994a6493ee585..475c079427c0580bc51101629ab02aa3f63db0e2 100644 (file)
@@ -45,7 +45,7 @@ extern "C" {
     NEATOPROCS_API void initial_positions(graph_t *, int);
     NEATOPROCS_API void jitter3d(Agnode_t *, int);
     NEATOPROCS_API void jitter_d(Agnode_t *, int, int);
-    NEATOPROCS_API Ppoly_t *makeObstacle(node_t * n, expand_t*, boolean );
+    NEATOPROCS_API Ppoly_t *makeObstacle(node_t * n, expand_t*, bool);
     NEATOPROCS_API void makeSelfArcs(edge_t * e, int stepx);
     NEATOPROCS_API void makeSpline(edge_t *, Ppoly_t **, int, boolean);
     NEATOPROCS_API void make_spring(graph_t *, Agnode_t *, Agnode_t *, double);
index 6d47dac8a02f2c5e501931f5731d149aa310b6b5..fef7e8d31e699fdaf5e3537a5fb59599146c95a2 100644 (file)
@@ -274,7 +274,7 @@ void makeSelfArcs(edge_t * e, int stepx)
  * The polygon has its vertices in CW order.
  * 
  */
-Ppoly_t *makeObstacle(node_t * n, expand_t* pmargin, boolean isOrtho)
+Ppoly_t *makeObstacle(node_t * n, expand_t* pmargin, bool isOrtho)
 {
     Ppoly_t *obs;
     polygon_t *poly;