From: Magnus Jacobsson Date: Sun, 1 Aug 2021 11:25:17 +0000 (+0200) Subject: common: add missing declaration of rank2 to render.h X-Git-Tag: 3.0.0~94^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=214938d8e2eaaa91746c3acbcca29cac05412109;p=graphviz common: add missing declaration of rank2 to render.h Also remove duplicated declaration of rank2 in rank.c in dotgen. Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- diff --git a/lib/common/render.h b/lib/common/render.h index 9746ba2a5..8bb72a73f 100644 --- a/lib/common/render.h +++ b/lib/common/render.h @@ -128,6 +128,7 @@ extern "C" { RENDER_API void pop_obj_state(GVJ_t *job); RENDER_API obj_state_t* push_obj_state(GVJ_t *job); RENDER_API int rank(graph_t * g, int balance, int maxiter); + RENDER_API int rank2(graph_t * g, int balance, int maxiter, int search_size); RENDER_API port resolvePort(node_t* n, node_t* other, port* oldport); RENDER_API void resolvePorts (edge_t* e); RENDER_API void round_corners(GVJ_t * job, pointf * AF, int sides, int style, int filled); diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index d10dfa8ee..de04ea606 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -594,8 +594,6 @@ collapse_leaves(graph_t * g) */ #define ND_comp(n) ND_hops(n) -extern int rank2(Agraph_t *, int, int, int); - static void set_parent(graph_t* g, graph_t* p) { GD_parent(g) = p;