From 97eac78b48ae0c635ea7fbd1db997c7da8658107 Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 23 Oct 2008 14:19:03 +0000 Subject: [PATCH] cgraph fixes --- lib/neatogen/neatoprocs.h | 1 - lib/neatogen/stuff.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/neatogen/neatoprocs.h b/lib/neatogen/neatoprocs.h index e60a8c311..1f831cee9 100644 --- a/lib/neatogen/neatoprocs.h +++ b/lib/neatogen/neatoprocs.h @@ -33,7 +33,6 @@ extern "C" { extern double distvec(double *, double *, double *); extern void do_graph_label(Agraph_t *); extern void final_energy(graph_t *, int); - extern double doubleattr(void *, int, double); extern double fpow32(double); extern Ppolyline_t getPath(edge_t *, vconfig_t *, int, Ppoly_t **, int); diff --git a/lib/neatogen/stuff.c b/lib/neatogen/stuff.c index 40e37570c..0dc8d81fd 100644 --- a/lib/neatogen/stuff.c +++ b/lib/neatogen/stuff.c @@ -115,7 +115,7 @@ static void free_3array(double ***rv) } } -double doubleattr(void *obj, int index, double defval) +static double doubleattr(void *obj, int index, double defval) { double val; if (index < 0) @@ -197,9 +197,7 @@ static double setEdgeLen(graph_t * G, node_t * np, int lenx) double len=0; for (ep = agfstout(G, np); ep; ep = agnxtout(G, ep)) { -#ifndef WITH_CGRAPH len = doubleattr(ep, lenx, 1.0); -#endif /* WITH_CGRAPH */ if (len <= 0) { agerr(AGERR, "bad edge len %f in %s ignored\n", len, agnameof(G)); len = 1.0; -- 2.40.0