From: Matthew Fernandez Date: Mon, 10 Jan 2022 00:47:26 +0000 (-0800) Subject: is_cluster: return a C99 bool instead of an ambiguous int X-Git-Tag: 3.0.0~79^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0630e8d7030b04578e680d7402f91398e7a23651;p=graphviz is_cluster: return a C99 bool instead of an ambiguous int --- diff --git a/lib/dotgen/dotprocs.h b/lib/dotgen/dotprocs.h index 6146d0e7b..453845b2f 100644 --- a/lib/dotgen/dotprocs.h +++ b/lib/dotgen/dotprocs.h @@ -15,6 +15,7 @@ extern "C" { #endif #include +#include extern void acyclic(Agraph_t *); extern void allocate_ranks(Agraph_t *); @@ -42,7 +43,7 @@ extern "C" { extern int flat_edges(Agraph_t *); extern void install_cluster(Agraph_t *, Agnode_t *, int, nodequeue *); extern void install_in_rank(Agraph_t *, Agnode_t *); - extern int is_cluster(Agraph_t *); + extern bool is_cluster(Agraph_t *); extern void dot_compoundEdges(Agraph_t *); extern Agedge_t *make_aux_edge(Agnode_t *, Agnode_t *, double, int); extern void mark_clusters(Agraph_t *); diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index 9e132e225..44862a757 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -510,9 +510,8 @@ void dot_rank(graph_t * g, aspect_t* asp) fprintf (stderr, "Maxrank = %d, minrank = %d\n", GD_maxrank(g), GD_minrank(g)); } -int is_cluster(graph_t * g) +bool is_cluster(graph_t * g) { - //return (strncmp(agnameof(g), "cluster", 7) == 0); return is_a_cluster(g); // from utils.c }