From 62937d352d3fa9e75647d585c8addb8a32dc6534 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 18 Dec 2021 08:38:05 -0800 Subject: [PATCH] makeFlatEnd: [nfc] use a C99 bool instead of boolean --- lib/dotgen/dotsplines.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 71eab5e53..5d1315c4e 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -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; -- 2.40.0