]> granicus.if.org Git - graphviz/commitdiff
parse_style: use a C99 bool for 'is_first' local
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Aug 2021 23:40:31 +0000 (16:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:28:20 +0000 (19:28 -0700)
lib/common/emit.c

index 447579712e543b47873a2b388aa7d4702bc6e036..cd971301d79a4e5cf734372bbb8711d3d11f630b 100644 (file)
@@ -3816,7 +3816,7 @@ static agxbuf ps_xb;
 char **parse_style(char *s)
 {
     static char *parse[FUNLIMIT];
-    static boolean is_first = TRUE;
+    static bool is_first = true;
     int fun = 0;
     boolean in_parens = FALSE;
     unsigned char buf[SMALLBUF];
@@ -3826,7 +3826,7 @@ char **parse_style(char *s)
 
     if (is_first) {
        agxbinit(&ps_xb, SMALLBUF, outbuf);
-       is_first = FALSE;
+       is_first = false;
     }
 
     agxbinit(&xb, SMALLBUF, buf);