From 214938d8e2eaaa91746c3acbcca29cac05412109 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 1 Aug 2021 13:25:17 +0200 Subject: [PATCH] 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. --- lib/common/render.h | 1 + lib/dotgen/rank.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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; -- 2.40.0