]> granicus.if.org Git - graphviz/commitdiff
GVC_s.config_found: use a C99 bool instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 28 Nov 2021 02:09:24 +0000 (18:09 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 04:06:08 +0000 (20:06 -0800)
lib/gvc/gvcint.h
lib/gvc/gvconfig.c

index ed48b153db989a3239eb3d80afa35fb496996040..57129875158b886bc03598cd7b63c68e18b86696 100644 (file)
@@ -20,6 +20,7 @@ extern "C" {
 #include "gvcommon.h"
 #include "gvcjob.h"
 #include "color.h"
+#include <stdbool.h>
 
     /* active plugin headers */
     typedef struct gvplugin_active_layout_s {
@@ -68,7 +69,7 @@ extern "C" {
        GVCOMMON_t common;
 
        char *config_path;
-       boolean config_found;
+       bool config_found;
 
        /* gvParseArgs */
        char **input_filenames; /* null terminated array of input filenames */
index 1d73b5bb53ab9fe3fbbc3598f46f88ae4dc1734b..4a3d9b3cf8b2e683e445c8557d2c75c5d4666565 100644 (file)
@@ -563,7 +563,7 @@ void gvconfig(GVC_t * gvc, boolean rescan)
     /* builtins don't require LTDL */
     gvconfig_plugin_install_builtins(gvc);
    
-    gvc->config_found = FALSE;
+    gvc->config_found = false;
 #ifdef ENABLE_LTDL
     if (gvc->common.demand_loading) {
         /* see if there are any new plugins */
@@ -584,7 +584,7 @@ void gvconfig(GVC_t * gvc, boolean rescan)
        
         if (rescan) {
            config_rescan(gvc, gvc->config_path);
-           gvc->config_found = TRUE;
+           gvc->config_found = true;
            gvtextlayout_select(gvc);   /* choose best available textlayout plugin immediately */
            return;
         }
@@ -613,7 +613,7 @@ void gvconfig(GVC_t * gvc, boolean rescan)
                    agerr(AGERR, "%s read error.\n", gvc->config_path);
                }
                else {
-                   gvc->config_found = TRUE;
+                   gvc->config_found = true;
                    config_text[sz] = '\0';  /* make input into a null terminated string */
                    rc = gvconfig_plugin_install_from_config(gvc, config_text);
                }