]> granicus.if.org Git - graphviz/commitdiff
API BREAK: use a C99 bool for 'Agraphinfo.has_sinkrank'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 18:57:58 +0000 (10:57 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Jan 2022 23:03:24 +0000 (15:03 -0800)
CHANGELOG.md
lib/common/types.h
lib/dotgen/rank.c

index 36317e2563d1373d8fc26372a65fae974f02b962..c0beacf661b043ca0dbacadc1a431bb496f56977 100644 (file)
@@ -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`, and `has_sourcerank` 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`, and
+  `has_sinkrank` 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 f24df6176d9e6c553de86cd3b755c851308d8b31..8f860cef06b4d0180f073eb229997ec30f648281 100644 (file)
@@ -324,7 +324,7 @@ typedef enum {NATIVEFONTS,PSFONTS,SVGFONTS} fontname_kind;
        /* various flags */
        bool has_flat_edges;
        bool has_sourcerank;
-       boolean has_sinkrank;
+       bool has_sinkrank;
        unsigned char   showboxes;
        fontname_kind fontnames;                /* to override mangling in SVG */
 
index 928cc688fcbe7e50486805d39ef0d11c78da4fe8..efb0607f36529ad5cd42b44505c92dae87e01090 100644 (file)
@@ -719,7 +719,7 @@ static void compile_samerank(graph_t * ug, graph_t * parent_clust)
        }
        break;
     case SINKRANK:
-       GD_has_sinkrank(clust) = TRUE;  /* fall through */
+       GD_has_sinkrank(clust) = true;  /* fall through */
     case MAXRANK:
        leader = union_all(ug);
        if (clust != NULL) {