]> granicus.if.org Git - graphviz/commitdiff
makeSpline: take a C99 bool instead of a boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 27 Dec 2021 02:39:45 +0000 (18:39 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 Jan 2022 16:04:03 +0000 (08:04 -0800)
lib/fdpgen/clusteredges.c
lib/neatogen/neatoprocs.h
lib/neatogen/neatosplines.c

index c2d528168c107d31c62d562834d1b485964bf3ef..6380855c0e4428177a6a6fada6d2dac0a17f5907 100644 (file)
@@ -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);
            }
index d6647dca35a61737b4754e05cb9ef26dd565968e..e2b8b0a8dbacbf7c3cbd6e640f846607aae23bf4 100644 (file)
@@ -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);
index fef7e8d31e699fdaf5e3537a5fb59599146c95a2..da1c6eb89d581593baafe9937d11128ed771318e 100644 (file)
@@ -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);