From fe67c6a78032f07be7420cd550ca5d9c18d5f5fa Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 13 Aug 2021 21:16:17 -0700 Subject: [PATCH] edge_in_box: return a C99 bool --- lib/common/emit.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 067067c70..b19b5664e 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -14,6 +14,7 @@ #include "config.h" +#include #include #include #include @@ -2467,24 +2468,24 @@ static void emit_edge_graphics(GVJ_t * job, edge_t * e, char** styles) } } -static boolean edge_in_box(edge_t *e, boxf b) +static bool edge_in_box(edge_t *e, boxf b) { splines *spl; textlabel_t *lp; spl = ED_spl(e); if (spl && boxf_overlap(spl->bb, b)) - return TRUE; + return true; lp = ED_label(e); if (lp && overlap_label(lp, b)) - return TRUE; + return true; lp = ED_xlabel(e); if (lp && lp->set && overlap_label(lp, b)) - return TRUE; + return true; - return FALSE; + return false; } static void emit_begin_edge(GVJ_t * job, edge_t * e, char** styles) -- 2.49.0