]> granicus.if.org Git - graphviz/commitdiff
poly_init: [nfc] use a C99 bool for 'isPlain' instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 19:41:45 +0000 (11:41 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Dec 2021 17:20:37 +0000 (09:20 -0800)
lib/common/shapes.c

index d392d3af727907bd71d4f7ee4cb0b44ebbb28791..2166d936cd4af737a9abd5247ffc3af2b262a0e1 100644 (file)
@@ -12,6 +12,7 @@
 #include <common/htmltable.h>
 #include <limits.h>
 #include <stddef.h>
+#include <stdbool.h>
 
 #define RBCONST 12
 #define RBCURVE .5
@@ -1849,7 +1850,7 @@ static void poly_init(node_t * n)
     int regular, peripheries, sides;
     int i, j, isBox, outp;
     polygon_t *poly = NEW(polygon_t);
-    boolean isPlain = IS_PLAIN(n);
+    bool isPlain = IS_PLAIN(n);
 
     regular = ND_shape(n)->polygon->regular;
     peripheries = ND_shape(n)->polygon->peripheries;