]> granicus.if.org Git - graphviz/commitdiff
Make get_temp_coords() a static function
authorerg <devnull@localhost>
Tue, 4 Nov 2008 16:13:59 +0000 (16:13 +0000)
committererg <devnull@localhost>
Tue, 4 Nov 2008 16:13:59 +0000 (16:13 +0000)
cmd/smyrna/topfisheyeview.c
cmd/smyrna/topfisheyeview.h

index 68466e70b1d3a44f9f24cba2dd0703e967234e3a..0a813fb7f8f3c38937588c1c92b3ffa24d9243e1 100644 (file)
@@ -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;
index a7f26a2555543c0a94272d2ad8328622e3300b97..2b7d2e0bd3dfad911576f25989dc329dc6af9da9 100644 (file)
@@ -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