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

index cd971301d79a4e5cf734372bbb8711d3d11f630b..3845a55739616d19c97a25893d5f78515b476f8e 100644 (file)
@@ -3818,7 +3818,7 @@ char **parse_style(char *s)
     static char *parse[FUNLIMIT];
     static bool is_first = true;
     int fun = 0;
-    boolean in_parens = FALSE;
+    bool in_parens = false;
     unsigned char buf[SMALLBUF];
     char *p;
     int c;
@@ -3840,21 +3840,21 @@ char **parse_style(char *s)
                agxbfree(&xb);
                return parse;
            }
-           in_parens = TRUE;
+           in_parens = true;
            break;
 
        case ')':
-           if (in_parens == FALSE) {
+           if (!in_parens) {
                agerr(AGERR, "unmatched ')' in style: %s\n", s);
                parse[0] = (char *) 0;
                agxbfree(&xb);
                return parse;
            }
-           in_parens = FALSE;
+           in_parens = false;
            break;
 
        default:
-           if (in_parens == FALSE) {
+           if (!in_parens) {
                if (fun == FUNLIMIT - 1) {
                    agerr(AGWARN, "truncating style '%s'\n", s);
                    parse[fun] = (char *) 0;