]> granicus.if.org Git - graphviz/commitdiff
use a stronger type for backslash_pending variable
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Mar 2021 18:45:57 +0000 (11:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 29 Mar 2021 03:10:45 +0000 (20:10 -0700)
lib/cgraph/write.c

index 6c10fe20a9e7ad6ef0c0582bbcb08baa4a0e2b04..66253da304c27fa7bbf7ad85d4136de7c63e0ed3 100644 (file)
@@ -58,7 +58,7 @@ static char *_agstrcanon(char *arg, char *buf)
     int cnt = 0, dotcnt = 0;
     bool needs_quotes = false;
     int maybe_num;
-    int backslash_pending = FALSE;
+    bool backslash_pending = false;
     static const char *tokenlist[]     /* must agree with scan.l */
        = { "node", "edge", "strict", "graph", "digraph", "subgraph",
        NULL
@@ -109,7 +109,7 @@ static char *_agstrcanon(char *arg, char *buf)
                *p++ = '\\';
                *p++ = '\n';
                needs_quotes = true;
-               backslash_pending = FALSE;
+               backslash_pending = false;
                cnt = 0;
             } else if (uc && (cnt >= Max_outputline)) {
                if (!(is_id_char(p[-1]) || (p[-1] == '\\')) && is_id_char(uc)) {
@@ -118,7 +118,7 @@ static char *_agstrcanon(char *arg, char *buf)
                    needs_quotes = true;
                    cnt = 0;
                } else {
-                    backslash_pending = TRUE;
+                    backslash_pending = true;
                }
            }
        }