From: Matthew Fernandez Date: Mon, 20 Dec 2021 03:55:50 +0000 (-0800) Subject: gvconfig: [nfc] take a C99 bool parameter instead of a boolean X-Git-Tag: 3.0.0~112^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec3fb8470ee9257c12d3365ec698ec44c3976a51;p=graphviz gvconfig: [nfc] take a C99 bool parameter instead of a boolean --- diff --git a/lib/common/input.c b/lib/common/input.c index e3037648c..f71966dfe 100644 --- a/lib/common/input.c +++ b/lib/common/input.c @@ -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); } diff --git a/lib/gvc/gvc.c b/lib/gvc/gvc.c index 14cab191b..8bb185f46 100644 --- a/lib/gvc/gvc.c +++ b/lib/gvc/gvc.c @@ -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; } diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 65ec0593c..4773a60c3 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -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; diff --git a/lib/gvc/gvcproc.h b/lib/gvc/gvcproc.h index a267ad3b2..47122941a 100644 --- a/lib/gvc/gvcproc.h +++ b/lib/gvc/gvcproc.h @@ -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 */