From: erg Date: Tue, 4 Nov 2008 16:13:59 +0000 (+0000) Subject: Make get_temp_coords() a static function X-Git-Tag: LAST_LIBGRAPH~32^2~2900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=312065820b0398246ab5d4c4e900c5269f75fa6d;p=graphviz Make get_temp_coords() a static function --- diff --git a/cmd/smyrna/topfisheyeview.c b/cmd/smyrna/topfisheyeview.c index 68466e70b..0a813fb7f 100644 --- a/cmd/smyrna/topfisheyeview.c +++ b/cmd/smyrna/topfisheyeview.c @@ -27,7 +27,7 @@ #include "assert.h" #include "hier.h" -int get_temp_coords(topview* t,int level,int v,double* coord_x,double* coord_y,float *R,float *G,float *B); +static int get_temp_coords(topview* t,int level,int v,double* coord_x,double* coord_y,float *R,float *G,float *B); static double dist(double x1, double y1, double x2, double y2) { return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); @@ -274,7 +274,7 @@ void drawtopologicalfisheye2(topview * t) for (v = 0; v < hp->nvtxs[level]; v++) { { - ex_vtx_data *gg = hp->geom_graphs[level]; + /* ex_vtx_data *gg = hp->geom_graphs[level]; */ double x0,y0; if(get_temp_coords(t,level,v,&x0,&y0,&R,&G,&B)) { @@ -330,12 +330,12 @@ void drawtopologicalfisheye2(topview * t) glEnd(); } -int get_temp_coords(topview* t,int level,int v,double* coord_x,double* coord_y,float *R,float *G,float *B) +static int get_temp_coords(topview* t,int level,int v,double* coord_x,double* coord_y,float *R,float *G,float *B) { static int recorded =0; Hierarchy *hp = t->h; ex_vtx_data *gg = hp->geom_graphs[level]; - v_data *g = hp->graphs[level]; + /* v_data *g = hp->graphs[level]; */ int OAL,AL; OAL=gg[v].old_active_level; AL=gg[v].active_level; @@ -474,8 +474,8 @@ void refresh_old_values(topview* t) for (v = 0; v < hp->nvtxs[level]; v++) { ex_vtx_data *gg = hp->geom_graphs[level]; - v_data *g = hp->graphs[level]; - double x0,y0; + /* v_data *g = hp->graphs[level]; */ + /* double x0,y0; */ gg[v].old_physical_x_coord=gg[v].physical_x_coord; gg[v].old_physical_y_coord=gg[v].physical_y_coord; gg[v].old_active_level=gg[v].active_level; diff --git a/cmd/smyrna/topfisheyeview.h b/cmd/smyrna/topfisheyeview.h index a7f26a255..2b7d2e0bd 100644 --- a/cmd/smyrna/topfisheyeview.h +++ b/cmd/smyrna/topfisheyeview.h @@ -27,7 +27,6 @@ void drawtopologicalfisheye2(topview * t); void changetopfishfocus(topview * t, float *x, float *y, float *z, int num_foci); void refresh_old_values(topview* t); -int get_temp_coords(topview* t,int level,int v,double* coord_x,double* coord_y,float *R,float *G,float *B); void get_interpolated_coords(double x0,double y0,double x1,double y1,int fr,int total_fr, double* x,double* y); int get_active_frame(topview* t); #endif