From 273cf1ec1d7aec9189ee489de13d80f0a8dfb105 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Jan 2022 11:00:32 -0800 Subject: [PATCH] API BREAK: use a C99 bool for 'Agraphinfo.exact_ranksep' --- CHANGELOG.md | 4 ++-- lib/common/input.c | 2 +- lib/common/types.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f940c63b..3e92a6ca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/common/input.c b/lib/common/input.c index a925d8891..a8e9b6d10 100644 --- a/lib/common/input.c +++ b/lib/common/input.c @@ -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); diff --git a/lib/common/types.h b/lib/common/types.h index 00eb7e76c..f7c5426f6 100644 --- a/lib/common/types.h +++ b/lib/common/types.h @@ -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; -- 2.40.0