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

index f1002f85b02f65174aed7e3c4d816b1a51e45d0f..f00eaea918e586209430e543da3edf960a2c82f4 100644 (file)
@@ -12,6 +12,7 @@
 #include <common/render.h>
 #include <common/htmltable.h>
 #include <limits.h>
+#include <stdbool.h>
 
 static char *strdup_and_subst_obj0 (char *str, void *obj, int escBackslash);
 
@@ -289,7 +290,7 @@ static char *strdup_and_subst_obj0 (char *str, void *obj, int escBackslash)
     char *tp_str = "", *hp_str = "";
     char *g_str = "\\G", *n_str = "\\N", *e_str = "\\E",
        *h_str = "\\H", *t_str = "\\T", *l_str = "\\L";
-    boolean has_hp = FALSE;
+    bool has_hp = false;
     boolean has_tp = FALSE;
     int isEdge = 0;
     textlabel_t *tl;