]> granicus.if.org Git - graphviz/commitdiff
htmlenv_t.objid_set: use a C99 bool instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Nov 2021 23:20:20 +0000 (15:20 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 27 Nov 2021 20:21:13 +0000 (12:21 -0800)
lib/common/htmltable.c
lib/common/htmltable.h

index 7f0a2f3b1ea1918c5f36a5d74ec3db90d1442f8a..fe78701dccad180731ff02b958410779e5c736a6 100644 (file)
@@ -37,6 +37,7 @@
 #include <cdt/cdt.h>
 #include <cgraph/strcasecmp.h>
 #include <stddef.h>
+#include <stdbool.h>
 
 #define DEFAULT_BORDER    1
 #define DEFAULT_CELLPADDING  2
@@ -389,7 +390,7 @@ initAnchor(GVJ_t * job, htmlenv_t * env, htmldata_t * data, boxf b,
        agxbinit(&xb, SMALLBUF, buf);
        if (!env->objid) {
            env->objid = strdup(getObjId(job, obj->u.n, &xb));
-           env->objid_set = 1;
+           env->objid_set = true;
        }
        agxbprint(&xb, "%s_%d", env->objid, anchorId++);
        id = agxbuse(&xb);
@@ -765,7 +766,7 @@ void emit_html_label(GVJ_t * job, htmllabel_t * lp, textlabel_t * tp)
     env.finfo.size = tp->fontsize;
     env.imgscale = agget(job->obj->u.n, "imagescale");
     env.objid = job->obj->id;
-    env.objid_set = 0;
+    env.objid_set = false;
     if ((env.imgscale == NULL) || (env.imgscale[0] == '\0'))
        env.imgscale = "false";
     if (lp->kind == HTML_TBL) {
index 6c652a31d0c774be89808c0e19d026aa2f4d2c20..d8e387df07a84c1ed1e1a63e62c3b181d875effa 100644 (file)
@@ -10,6 +10,8 @@
 
 #pragma once
 
+#include <stdbool.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -156,7 +158,7 @@ extern "C" {
         graph_t *g;
         char *imgscale;
         char *objid;
-        boolean objid_set;
+        bool objid_set;
     } htmlenv_t;
 
     extern htmllabel_t *parseHTML(char *, int *, htmlenv_t *);