]> granicus.if.org Git - graphviz/commitdiff
makeFlatEnd: [nfc] use a C99 bool instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Dec 2021 16:38:05 +0000 (08:38 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Dec 2021 18:33:22 +0000 (10:33 -0800)
lib/dotgen/dotsplines.c

index 71eab5e535db7036bc8adf5884d7f8819d772cee..5d1315c4e1b1b650c1498c81680776a5c0ef2950 100644 (file)
@@ -1387,7 +1387,7 @@ make_flat_adj_edges(graph_t* g, path* P, edge_t** edges, int ind, int cnt, edge_
  */
 static void
 makeFlatEnd (graph_t* g, spline_info_t* sp, path* P, node_t* n, edge_t* e, pathend_t* endp,
-             boolean isBegin)
+             bool isBegin)
 {
     boxf b;
 
@@ -1465,8 +1465,8 @@ make_flat_labeled_edge(graph_t* g, spline_info_t* sp, path* P, edge_t* e, int et
        ydelta /= 6;
        lb.LL.y = lb.UR.y - MAX(5,ydelta);
 
-       makeFlatEnd (g, sp, P, tn, e, &tend, TRUE);
-       makeFlatEnd (g, sp, P, hn, e, &hend, FALSE);
+       makeFlatEnd (g, sp, P, tn, e, &tend, true);
+       makeFlatEnd (g, sp, P, hn, e, &hend, false);
 
        boxf boxes[] = {
          { .LL = { .x = tend.boxes[tend.boxn - 1].LL.x,
@@ -1639,8 +1639,8 @@ make_flat_edge(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges, int ind
     stepx = ((double)sp->Multisep) / (cnt+1); 
     stepy = vspace / (cnt+1);
 
-    makeFlatEnd (g, sp, P, tn, e, &tend, TRUE);
-    makeFlatEnd (g, sp, P, hn, e, &hend, FALSE);
+    makeFlatEnd (g, sp, P, tn, e, &tend, true);
+    makeFlatEnd (g, sp, P, hn, e, &hend, false);
 
     for (i = 0; i < cnt; i++) {
        boxf b;