From 926cb6393c11af8b4440dcd9a8061b0e87fb43b9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 19 Dec 2021 12:28:48 -0800 Subject: [PATCH] shape_clip0: [nfc] take a C99 bool parameter instead of a boolean --- lib/common/splines.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/common/splines.c b/lib/common/splines.c index ea54dd74a..8505aad79 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -156,7 +156,7 @@ void bezier_clip(inside_t * inside_context, */ static void shape_clip0(inside_t * inside_context, node_t * n, pointf curve[4], - boolean left_inside) + bool left_inside) { int i; double save_real_size; @@ -168,8 +168,7 @@ shape_clip0(inside_t * inside_context, node_t * n, pointf curve[4], c[i].y = curve[i].y - ND_coord(n).y; } - bezier_clip(inside_context, ND_shape(n)->fns->insidefn, c, - left_inside != FALSE); + bezier_clip(inside_context, ND_shape(n)->fns->insidefn, c, left_inside); for (i = 0; i < 4; i++) { curve[i].x = c[i].x + ND_coord(n).x; @@ -207,7 +206,7 @@ void shape_clip(node_t * n, pointf curve[4]) c.y = curve[0].y - ND_coord(n).y; left_inside = ND_shape(n)->fns->insidefn(&inside_context, c); ND_rw(n) = save_real_size; - shape_clip0(&inside_context, n, curve, left_inside); + shape_clip0(&inside_context, n, curve, left_inside != FALSE); } /* new_spline: @@ -284,7 +283,7 @@ clip_and_install(edge_t * fe, node_t * hn, pointf * ps, int pn, if (!ND_shape(tn)->fns->insidefn(&inside_context, p2)) break; } - shape_clip0(&inside_context, tn, &ps[start], TRUE); + shape_clip0(&inside_context, tn, &ps[start], true); } else start = 0; if(clipHead && ND_shape(hn) && ND_shape(hn)->fns->insidefn) { @@ -296,7 +295,7 @@ clip_and_install(edge_t * fe, node_t * hn, pointf * ps, int pn, if (!ND_shape(hn)->fns->insidefn(&inside_context, p2)) break; } - shape_clip0(&inside_context, hn, &ps[end], FALSE); + shape_clip0(&inside_context, hn, &ps[end], false); } else end = pn - 4; for (; start < pn - 4; start += 3) -- 2.40.0