]> granicus.if.org Git - graphviz/commitdiff
endpath: [nfc] take a C99 bool parameter instead of a boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Dec 2021 20:42:56 +0000 (12:42 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 20 Dec 2021 00:14:25 +0000 (16:14 -0800)
lib/common/render.h
lib/common/splines.c
lib/dotgen/dotsplines.c

index e4dcf638bd042664e1c369721f53141b2c85393e..f537c580b599fcdd7ce3915dd752539970d10623 100644 (file)
@@ -99,7 +99,7 @@ extern "C" {
     RENDER_API void emit_label(GVJ_t * job, emit_state_t emit_state, textlabel_t *);
     RENDER_API int emit_once(char *message);
     RENDER_API void emit_map_rect(GVJ_t *job, boxf b);
-    RENDER_API void endpath(path *, Agedge_t *, int, pathend_t *, boolean);
+    RENDER_API void endpath(path *, Agedge_t *, int, pathend_t *, bool);
     RENDER_API void epsf_init(node_t * n);
     RENDER_API void epsf_free(node_t * n);
     RENDER_API shape_desc *find_user_shape(const char *);
index 8505aad7936166e0aa2eae81a286f570e9b463f6..12a766572779d87461efbf0c6a8d204068c743ee 100644 (file)
@@ -582,7 +582,7 @@ beginpath(path * P, edge_t * e, int et, pathend_t * endp, bool merge)
     }
 }
 
-void endpath(path * P, edge_t * e, int et, pathend_t * endp, boolean merge)
+void endpath(path * P, edge_t * e, int et, pathend_t * endp, bool merge)
 {
     int side, mask;
     node_t *n;
index 744d988b07eea368e7eae655e19058d912c4d876..68035683b1ef081ec192116a773f1e867b90cfb6 100644 (file)
@@ -1394,7 +1394,7 @@ makeFlatEnd (graph_t* g, spline_info_t* sp, path* P, node_t* n, edge_t* e, pathe
     b = endp->nb = maximal_bbox(g, sp, n, NULL, e);
     endp->sidemask = TOP;
     if (isBegin) beginpath(P, e, FLATEDGE, endp, false);
-    else endpath(P, e, FLATEDGE, endp, FALSE);
+    else endpath(P, e, FLATEDGE, endp, false);
     b.UR.y = endp->boxes[endp->boxn - 1].UR.y;
     b.LL.y = endp->boxes[endp->boxn - 1].LL.y;
     b = makeregularend(b, TOP, ND_coord(n).y + GD_rank(g)[ND_rank(n)].ht2);
@@ -1412,7 +1412,7 @@ makeBottomFlatEnd (graph_t* g, spline_info_t* sp, path* P, node_t* n, edge_t* e,
     b = endp->nb = maximal_bbox(g, sp, n, NULL, e);
     endp->sidemask = BOTTOM;
     if (isBegin) beginpath(P, e, FLATEDGE, endp, false);
-    else endpath(P, e, FLATEDGE, endp, FALSE);
+    else endpath(P, e, FLATEDGE, endp, false);
     b.UR.y = endp->boxes[endp->boxn - 1].UR.y;
     b.LL.y = endp->boxes[endp->boxn - 1].LL.y;
     b = makeregularend(b, BOTTOM, ND_coord(n).y - GD_rank(g)[ND_rank(n)].ht2);
@@ -1879,7 +1879,7 @@ make_regular_edge(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges, int
                continue;
            }
            hend.nb = maximal_bbox(g, sp, hn, e, ND_out(hn).list[0]);
-           endpath(P, e, REGULAREDGE, &hend, spline_merge(aghead(e)));
+           endpath(P, e, REGULAREDGE, &hend, spline_merge(aghead(e)) != FALSE);
            b = makeregularend(hend.boxes[hend.boxn - 1], TOP,
                       ND_coord(hn).y + GD_rank(g)[ND_rank(hn)].ht2);
            if (b.LL.x < b.UR.x && b.LL.y < b.UR.y)
@@ -1929,7 +1929,8 @@ make_regular_edge(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges, int
        }
        boxes_append(&boxes, rank_box(sp, g, ND_rank(tn)));
        b = hend.nb = maximal_bbox(g, sp, hn, e, NULL);
-       endpath(P, hackflag ? &fwdedgeb.out : e, REGULAREDGE, &hend, spline_merge(aghead(e)));
+       endpath(P, hackflag ? &fwdedgeb.out : e, REGULAREDGE, &hend,
+               spline_merge(aghead(e)) != FALSE);
        b.UR.y = hend.boxes[hend.boxn - 1].UR.y;
        b.LL.y = hend.boxes[hend.boxn - 1].LL.y;
        b = makeregularend(b, TOP,