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

index be580b903b605cdec385de083714f4af899bcca8..82cc8a90a02b9d6513230745d89551754fa8aa1a 100644 (file)
@@ -595,7 +595,7 @@ int init_nop(Agraph_t * g, int adjust)
            posEdges = NoEdges;
        }
        if (posEdges != AllEdges)
-           spline_edges0(g, FALSE);   /* add edges */
+           spline_edges0(g, false);   /* add edges */
        else
            State = GVSPLINES;
     }
@@ -1400,7 +1400,7 @@ addCluster (graph_t* g)
 static void doEdges(Agraph_t* g)
 {
     compute_bb(g);
-    spline_edges0(g, TRUE);
+    spline_edges0(g, true);
 }
 
 /* neato_layout:
index e2b8b0a8dbacbf7c3cbd6e640f846607aae23bf4..7c5cae25cf7331ecffa6dbcaf2f5b234c77cab6e 100644 (file)
@@ -58,7 +58,7 @@ extern "C" {
     NEATOPROCS_API void solve_model(graph_t *, int);
     NEATOPROCS_API int solveCircuit(int nG, double **Gm, double **Gm_inv);
     NEATOPROCS_API void spline_edges(Agraph_t *);
-    NEATOPROCS_API void spline_edges0(Agraph_t *, boolean);
+    NEATOPROCS_API void spline_edges0(Agraph_t *, bool);
     NEATOPROCS_API int spline_edges1(graph_t * g, int);
     NEATOPROCS_API int splineEdges(graph_t *,
                           int (*edgefn) (graph_t *, expand_t*, int), int);
index da1c6eb89d581593baafe9937d11128ed771318e..77ed4779e3743023d4671ef81c911aa31d586737 100644 (file)
@@ -763,8 +763,7 @@ int spline_edges1(graph_t * g, int edgetype)
  * when output in dot or plain format.
  *
  */
-void spline_edges0(graph_t * g, boolean set_aspect)
-{
+void spline_edges0(graph_t *g, bool set_aspect) {
     int et = EDGE_TYPE (g);
     if (set_aspect) neato_set_aspect(g);
     if (et == EDGETYPE_NONE) return;
@@ -814,7 +813,7 @@ void spline_edges(graph_t * g)
     }
        
     shiftClusters (g, GD_bb(g).LL);
-    spline_edges0(g, TRUE);
+    spline_edges0(g, true);
 }
 
 /* scaleEdge:
index 1f8b78459e44b6833c44e93fdd6d7ba9d0864ffe..4986497637ab37250750575059b26790afd0af56 100644 (file)
@@ -17,6 +17,7 @@
 #include    <osage/osage.h>
 #include    <neatogen/neatoprocs.h>
 #include    <pack/pack.h>
+#include    <stdbool.h>
 
 #define CL_CHUNK 10
 #define DFLT_SZ  18
@@ -360,7 +361,7 @@ void osage_layout(Agraph_t *g)
            ND_pos(n)[0] = PS2INCH(ND_coord(n).x);
            ND_pos(n)[1] = PS2INCH(ND_coord(n).y);
        }
-       spline_edges0(g, TRUE);
+       spline_edges0(g, true);
     }
     else {
        int et = EDGE_TYPE (g);