]> granicus.if.org Git - graphviz/commitdiff
API BREAK: use a C99 bool for 'Agraphinfo.exact_ranksep'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 19:00:32 +0000 (11:00 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 23:03:24 +0000 (15:03 -0800)
CHANGELOG.md
lib/common/input.c
lib/common/types.h

index 9f940c63bbd143675b30d12845ab92cd4b5a521f..3e92a6ca8b12e13fb79f2dc1b8f68e09a4d9357c 100644 (file)
@@ -29,8 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - **Breaking**: The `filled`, `landscape`, and `centered` fields of the
   `layout_t` struct are now C99 `bool`s instead of Graphviz-specific `boolean`s.
 - **Breaking**: The `has_images`, `has_flat_edges`, `has_sourcerank`,
-  `has_sinkrank`, and `expanded` fields of the `Agraphinfo_t` struct are now C99
-  `bool`s instead of Graphviz-specific `boolean`s.
+  `has_sinkrank`, `expanded`, and `exact_ranksep` fields of the `Agraphinfo_t`
+  struct are now C99 `bool`s instead of Graphviz-specific `boolean`s.
 - **Breaking**: Graphviz headers no longer define the constant `MAXSHORT`. A
   drop-in replacement is `SHRT_MAX` in the C standard library’s limits.h.
 - **Breaking**: Graphviz headers no lnger define `NIL` macros. A drop-in
index a925d8891e75577febb7dfbbfeadb643d46c9da2..a8e9b6d1079de6046aa2e9e20c0740c6ef7974cc 100644 (file)
@@ -697,7 +697,7 @@ void graph_init(graph_t * g, bool use_rankdir)
                xf = MIN_RANKSEP;
        }
        if (strstr(p, "equally"))
-           GD_exact_ranksep(g) = TRUE;
+           GD_exact_ranksep(g) = true;
     } else
        xf = DEFAULT_RANKSEP;
     GD_ranksep(g) = POINTS(xf);
index 00eb7e76cf2d3e61a89430796d3dc8b87232a70f..f7c5426f65fe76a66dbb5dc53b1c0b3c2f662b62 100644 (file)
@@ -340,7 +340,7 @@ typedef enum {NATIVEFONTS,PSFONTS,SVGFONTS} fontname_kind;
        char installed;
        char set_type;
        char label_pos;
-       boolean exact_ranksep;
+       bool exact_ranksep;
 #endif
 
     } Agraphinfo_t;