]> granicus.if.org Git - graphviz/commitdiff
poly_gencode: [nfc] use a C99 bool instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Dec 2021 16:36:52 +0000 (08:36 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Dec 2021 18:33:22 +0000 (10:33 -0800)
lib/common/shapes.c

index 2166d936cd4af737a9abd5247ffc3af2b262a0e1..6898bbdb40ea91961afb690bb9cea7fcf46c4729 100644 (file)
@@ -2763,7 +2763,7 @@ static void poly_gencode(GVJ_t * job, node_t * n)
     static pointf *AF;
     static int A_size;
     boolean filled;
-    boolean usershape_p;
+    bool usershape_p;
     boolean pfilled;           /* true if fill not handled by user shape */
     char *color, *name;
     int doMap = (obj->url || obj->explicit_tooltip);
@@ -2904,16 +2904,16 @@ static void poly_gencode(GVJ_t * job, node_t * n)
        filled = FALSE;
     }
 
-    usershape_p = FALSE;
+    usershape_p = false;
     if (ND_shape(n)->usershape) {
        name = ND_shape(n)->name;
        if (streq(name, "custom")) {
            if ((name = agget(n, "shapefile")) && name[0])
-               usershape_p = TRUE;
+               usershape_p = true;
        } else
-           usershape_p = TRUE;
+           usershape_p = true;
     } else if ((name = agget(n, "image")) && name[0]) {
-       usershape_p = TRUE;
+       usershape_p = true;
     }
     if (usershape_p) {
        /* get coords of innermost periphery */