]> granicus.if.org Git - graphviz/commitdiff
gvrender_usershape: [nfc] take a C99 bool parameter instead of a boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 20 Dec 2021 04:03:48 +0000 (20:03 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Dec 2021 18:38:17 +0000 (10:38 -0800)
lib/common/htmltable.c
lib/common/shapes.c
lib/gvc/gvcproc.h
lib/gvc/gvrender.c

index da6865d7fd21a4f2b45b2b49c490ddb6a9cce096..e92ae3c4378fa74bf43c6fc30ec7c42769459c08 100644 (file)
@@ -619,7 +619,7 @@ static void emit_html_img(GVJ_t * job, htmlimg_t * cp, htmlenv_t * env)
        scale = env->imgscale;
     assert(cp->src);
     assert(cp->src[0]);
-    gvrender_usershape(job, cp->src, A, 4, TRUE, scale, "mc");
+    gvrender_usershape(job, cp->src, A, 4, true, scale, "mc");
 }
 
 static void emit_html_cell(GVJ_t * job, htmlcell_t * cp, htmlenv_t * env)
index ff603e276b92042cca5a08bb7f177cea3a599b23..b096af0a355986605e4f6d427c79fd421bc9e242 100644 (file)
@@ -2944,7 +2944,7 @@ static void poly_gencode(GVJ_t * job, node_t * n)
                gvrender_polygon(job, AF, sides, filled);
            }
        }
-       gvrender_usershape(job, name, AF, sides, filled,
+       gvrender_usershape(job, name, AF, sides, filled != FALSE,
                           late_string(n, N_imagescale, "false"),
                           late_string(n, N_imagepos, "mc"));
        filled = FALSE;         /* with user shapes, we have done the fill if needed */
index eb92100bdd1db8bd31bd1a96ef4eaec3cb9ef819..447a0436df93d89a5e1551d12b28dbd30b33d562 100644 (file)
                        int arrow_at_start, int arrow_at_end, int filled);
     void gvrender_polyline(GVJ_t * job, pointf * AF, int n);
     void gvrender_comment(GVJ_t * job, char *str);
-    void gvrender_usershape(GVJ_t * job, char *name, pointf * AF, int n, boolean filled, char *imagescale, char *imagepos);
+    void gvrender_usershape(GVJ_t * job, char *name, pointf * AF, int n, bool filled, char *imagescale, char *imagepos);
 
 /* layout */
 
index 77395a7708cfecd59a5cedccac578c07c2c40047..8208de69bd661b264420e137fb8b6cf7ea07e7c7 100644 (file)
@@ -695,7 +695,7 @@ static imagepos_t get_imagepos(char *s)
  * positioned at "imagepos"
  */
 void gvrender_usershape(GVJ_t * job, char *name, pointf * a, int n,
-                       boolean filled, char *imagescale, char *imagepos)
+                       bool filled, char *imagescale, char *imagepos)
 {
     gvrender_engine_t *gvre = job->render.engine;
     usershape_t *us;