From: Matthew Fernandez Date: Tue, 11 Jan 2022 04:56:57 +0000 (-0800) Subject: setbounds: use C99 bools for locals 'onleft', 'onright' X-Git-Tag: 3.0.0~72^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=333e8589bed624135105dbc16380635b85938687;p=graphviz setbounds: use C99 bools for locals 'onleft', 'onright' --- diff --git a/lib/dotgen/flat.c b/lib/dotgen/flat.c index fc62495e3..0f8588a52 100644 --- a/lib/dotgen/flat.c +++ b/lib/dotgen/flat.c @@ -10,7 +10,7 @@ #include - +#include static node_t *make_vn_slot(graph_t * g, int r, int pos) { @@ -75,21 +75,21 @@ static void setbounds(node_t * v, int *bounds, int lpos, int rpos) bounds[SRB] = ord; } } else { /* forward */ - boolean onleft, onright; - onleft = onright = FALSE; + bool onleft, onright; + onleft = onright = false; for (i = 0; (f = ND_out(v).list[i]); i++) { if (ND_order(aghead(f)) <= lpos) { - onleft = TRUE; + onleft = true; continue; } if (ND_order(aghead(f)) >= rpos) { - onright = TRUE; + onright = true; continue; } } - if (onleft && (onright == FALSE)) + if (onleft && !onright) bounds[HLB] = ord + 1; - if (onright && (onleft == FALSE)) + if (onright && !onleft) bounds[HRB] = ord - 1; } }