]> granicus.if.org Git - graphviz/commitdiff
edge_in_box: return a C99 bool
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Aug 2021 04:16:17 +0000 (21:16 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 18 Aug 2021 14:32:30 +0000 (07:32 -0700)
lib/common/emit.c

index 067067c70fe752ee4e918c2c9ee0612088561838..b19b5664edd8dfb45f94b79ac7f687472a2bf9d8 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "config.h"
 
+#include <stdbool.h>
 #include <string.h>
 #include <ctype.h>
 #include <locale.h>
@@ -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)