]> granicus.if.org Git - graphviz/commitdiff
gvconfig: [nfc] take a C99 bool parameter instead of a boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 20 Dec 2021 03:55:50 +0000 (19:55 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Dec 2021 18:38:17 +0000 (10:38 -0800)
lib/common/input.c
lib/gvc/gvc.c
lib/gvc/gvconfig.c
lib/gvc/gvcproc.h

index e3037648c407671d4b3eb7fb80f4f348cffdabe7..f71966dfe4f1416951fcb6fbd9de6e1c18f3693c 100644 (file)
@@ -247,7 +247,7 @@ int dotneato_args_initialize(GVC_t * gvc, int argc, char **argv)
     /* needs to know if "dot -c" is set (gvc->common.config) */
     /* must happen before trying to select any plugins */
     if (gvc->common.config) {
-        gvconfig(gvc, gvc->common.config);
+        gvconfig(gvc, gvc->common.config != FALSE);
        exit (0);
     }
 
index 14cab191b94bd7c09e460afe36b46d56e420e41b..8bb185f469b4d1a1497021460fd80e76d6213563 100644 (file)
@@ -27,7 +27,7 @@ GVC_t *gvContext(void)
     agattr(NULL, AGNODE, "label", NODENAME_ESC);
     /* default to no builtins, demand loading enabled */
     gvc = gvNEWcontext(NULL, TRUE);
-    gvconfig(gvc, FALSE); /* configure for available plugins */
+    gvconfig(gvc, false); /* configure for available plugins */
     return gvc;
 }
 
@@ -37,7 +37,7 @@ GVC_t *gvContextPlugins(const lt_symlist_t *builtins, int demand_loading)
 
     agattr(NULL, AGNODE, "label", NODENAME_ESC);
     gvc = gvNEWcontext(builtins, demand_loading);
-    gvconfig(gvc, FALSE); /* configure for available plugins */
+    gvconfig(gvc, false); /* configure for available plugins */
     return gvc;
 }
 
index 65ec0593caf6b85c2d3ab6a6a054d185a9fa1f7a..4773a60c3140dd585f86e967b5e9b9510bbabc59 100644 (file)
@@ -547,7 +547,7 @@ static void config_rescan(GVC_t *gvc, char *config_path)
 /*
   gvconfig - parse a config file and install the identified plugins
  */
-void gvconfig(GVC_t * gvc, boolean rescan)
+void gvconfig(GVC_t * gvc, bool rescan)
 {
 #ifdef ENABLE_LTDL
     int rc;
index a267ad3b2f55ba1b629d839d16701eb830a9bc76..47122941ad93a1fbd92e8719b07f52d39a2891f1 100644 (file)
@@ -19,7 +19,7 @@
 /* configuration */
 
     char *gvconfig_libdir(GVC_t * gvc);
-    void gvconfig(GVC_t * gvc, boolean rescan);
+    void gvconfig(GVC_t * gvc, bool rescan);
     char *gvhostname(void);
 
 /* plugins */