]> granicus.if.org Git - graphviz/commitdiff
cat_libfile: use a C99 bool for 'use_stdlib'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Oct 2021 21:05:09 +0000 (14:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 13 Oct 2021 14:55:32 +0000 (07:55 -0700)
lib/common/psusershape.c

index f27121570727b5e70e090143b21f7139a47918a5..9bff9459cea31ed3778192562f381ee8ab391647 100644 (file)
@@ -17,6 +17,7 @@
 #include <common/render.h>
 #include <gvc/gvio.h>
 #include <cgraph/strcasecmp.h>
+#include <stdbool.h>
 
 static int N_EPSF_files;
 static Dict_t *EPSF_contents;
@@ -146,13 +147,13 @@ void cat_libfile(GVJ_t * job, const char **arglib, const char **stdlib)
     FILE *fp;
     const char **s, *bp, *p, *path;
     int i;
-    boolean use_stdlib = TRUE;
+    bool use_stdlib = true;
 
     /* check for empty string to turn off stdlib */
     if (arglib) {
         for (i = 0; use_stdlib && ((p = arglib[i])); i++) {
             if (*p == '\0')
-                use_stdlib = FALSE;
+                use_stdlib = false;
         }
     }
     if (use_stdlib)