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` field of the `Agraphinfo_t` struct is now a
- C99 `bool` instead of a Graphviz-specific `boolean`.
+- **Breaking**: The `has_images` and `has_flat_edges` 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
#include <dotgen/dot.h>
-
+#include <stdbool.h>
/*
* operations on the fast internal graph.
{
elist_append(e, ND_flat_out(agtail(e)));
elist_append(e, ND_flat_in(aghead(e)));
- GD_has_flat_edges(dot_root(g)) = GD_has_flat_edges(g) = TRUE;
+ GD_has_flat_edges(dot_root(g)) = GD_has_flat_edges(g) = true;
}
void delete_flat_edge(edge_t * e)
node_t **temprank = NULL;
edge_t *flat_e, *e;
- if (GD_has_flat_edges(g) == FALSE)
+ if (!GD_has_flat_edges(g))
return;
for (r = GD_minrank(g); r <= GD_maxrank(g); r++) {
if (GD_rank(g)[r].n == 0) continue;