From: Matthew Fernandez Date: Sat, 15 Jan 2022 18:59:15 +0000 (-0800) Subject: API BREAK: use a C99 bool for 'Agraphinfo.expanded' X-Git-Tag: 3.0.0~66^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4773f20d5b752a73b382478f95fe079b1e7c267;p=graphviz API BREAK: use a C99 bool for 'Agraphinfo.expanded' --- diff --git a/CHANGELOG.md b/CHANGELOG.md index c0beacf66..9f940c63b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,9 +28,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 now C99 `bool`s instead of Graphviz-specific `boolean`s. - **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`, and - `has_sinkrank` fields of the `Agraphinfo_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. - **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/types.h b/lib/common/types.h index 8f860cef0..00eb7e76c 100644 --- a/lib/common/types.h +++ b/lib/common/types.h @@ -336,7 +336,7 @@ typedef enum {NATIVEFONTS,PSFONTS,SVGFONTS} fontname_kind; /* for clusters */ node_t *leader; node_t **rankleader; - boolean expanded; + bool expanded; char installed; char set_type; char label_pos; diff --git a/lib/dotgen/cluster.c b/lib/dotgen/cluster.c index d15774cf1..6bb1aa4ac 100644 --- a/lib/dotgen/cluster.c +++ b/lib/dotgen/cluster.c @@ -254,7 +254,7 @@ merge_ranks(graph_t * subg) } if (r < GD_maxrank(root)) GD_rank(root)[r].valid = false; - GD_expanded(subg) = TRUE; + GD_expanded(subg) = true; } static void