From: Matthew Fernandez Date: Mon, 27 Dec 2021 02:39:45 +0000 (-0800) Subject: makeSpline: take a C99 bool instead of a boolean X-Git-Tag: 3.0.0~91^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d5580e16a10d1299402d440a967cc414e085e19;p=graphviz makeSpline: take a C99 bool instead of a boolean --- diff --git a/lib/fdpgen/clusteredges.c b/lib/fdpgen/clusteredges.c index c2d528168..6380855c0 100644 --- a/lib/fdpgen/clusteredges.c +++ b/lib/fdpgen/clusteredges.c @@ -303,7 +303,7 @@ int compoundEdges(graph_t * g, expand_t* pm, int edgetype) for (e0 = e; e0; e0 = ED_to_virt(e0)) { ED_path(e0) = getPath(e0, vconfig, 0, objl->obs, objl->cnt); - makeSpline(e0, objl->obs, objl->cnt, FALSE); + makeSpline(e0, objl->obs, objl->cnt, false); } resetObjlist(objl); } diff --git a/lib/neatogen/neatoprocs.h b/lib/neatogen/neatoprocs.h index d6647dca3..e2b8b0a8d 100644 --- a/lib/neatogen/neatoprocs.h +++ b/lib/neatogen/neatoprocs.h @@ -39,7 +39,7 @@ extern "C" { NEATOPROCS_API void jitter_d(Agnode_t *, int, int); 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 makeSpline(edge_t *, Ppoly_t **, int, bool); NEATOPROCS_API int init_nop(graph_t * g, int); NEATOPROCS_API void neato_cleanup(graph_t * g); NEATOPROCS_API node_t *neato_dequeue(void); diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index fef7e8d31..da1c6eb89 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -494,8 +494,7 @@ static void makePolyline(edge_t * e) { * is on or inside one of the obstacles and, if so, tells the shortest path * computation to ignore them. */ -void makeSpline(edge_t * e, Ppoly_t ** obs, int npoly, boolean chkPts) -{ +void makeSpline(edge_t *e, Ppoly_t **obs, int npoly, bool chkPts) { Ppolyline_t line, spline; Pvector_t slopes[2]; int i, n_barriers; @@ -651,7 +650,7 @@ static int _spline_edges(graph_t * g, expand_t* pmargin, int edgetype) e0 = e; for (i = 0; i < cnt; i++) { if (edgetype == EDGETYPE_SPLINE) - makeSpline(e0, obs, npoly, TRUE); + makeSpline(e0, obs, npoly, true); else makePolyline(e0); e0 = ED_to_virt(e0);