From: Matthew Fernandez Date: Mon, 20 Dec 2021 04:10:56 +0000 (-0800) Subject: makeObstacle: [nfc] take a C99 bool parameter instead of a boolean X-Git-Tag: 3.0.0~112^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab7c6ab219043068558d37750b8e6818e71c2c42;p=graphviz makeObstacle: [nfc] take a C99 bool parameter instead of a boolean --- diff --git a/lib/fdpgen/clusteredges.c b/lib/fdpgen/clusteredges.c index 5071f9f4e..c2d528168 100644 --- a/lib/fdpgen/clusteredges.c +++ b/lib/fdpgen/clusteredges.c @@ -25,6 +25,7 @@ #include #include #include +#include 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++) { diff --git a/lib/neatogen/neatoprocs.h b/lib/neatogen/neatoprocs.h index 98a25ae63..475c07942 100644 --- a/lib/neatogen/neatoprocs.h +++ b/lib/neatogen/neatoprocs.h @@ -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); diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index 6d47dac8a..fef7e8d31 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -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;