From: erg Date: Wed, 19 Mar 2008 21:43:59 +0000 (+0000) Subject: Clean up smyrna files: X-Git-Tag: LAST_LIBGRAPH~32^2~4467 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fea4cb38ad6e122479f42e9d924fbe175ed8a1ca;p=graphviz Clean up smyrna files: remove unnecessary globals modify libraries not to rely on code in cmd/smyrna remove static declarations from .h files remove unnecessary libraries mark unused code and clean up warnings --- diff --git a/cmd/smyrna/topview.h b/cmd/smyrna/topview.h index 098555eb7..33a87b6d2 100755 --- a/cmd/smyrna/topview.h +++ b/cmd/smyrna/topview.h @@ -19,34 +19,34 @@ #include "smyrnadefs.h" -#ifdef WIN32 //this is needed on WIN32 to get libglade see the callback +#ifdef WIN32 //this is needed on WIN32 to get libglade see the callback #define _BB __declspec(dllexport) #else -#define _BB +#define _BB #endif -void cleartopview(topview* t); -void preparetopview(Agraph_t *g,topview* t); -void drawTopViewGraph(Agraph_t *g); -int select_topview_node(topview_node *n); -int select_topview_edge(topview_edge *e); -int update_topview_node_from_cgraph(topview_node* Node); -int update_topview_edge_from_cgraph(topview_edge* Edge); -int set_update_required(topview* t); -int draw_topview_label(topview_node* v,float zdepth); +void cleartopview(topview * t); +void preparetopview(Agraph_t * g, topview * t); +void drawTopViewGraph(Agraph_t * g); +int select_topview_node(topview_node * n); +int select_topview_edge(topview_edge * e); +int update_topview_node_from_cgraph(topview_node * Node); +int update_topview_edge_from_cgraph(topview_edge * Edge); +int set_update_required(topview * t); +int draw_topview_label(topview_node * v, float zdepth); void set_topview_options(); -void set_boundries(topview* t); -int get_color_from_edge(topview_edge *e); -int node_visible(Agnode_t* n); +void set_boundries(topview * t); +int get_color_from_edge(topview_edge * e); +int node_visible(Agnode_t * n); int move_TVnodes(); -void local_zoom(topview* t); -void originate_distorded_coordinates(topview* t); -_BB void on_host_alpha_change (GtkWidget *widget,gpointer user_data); +void local_zoom(topview * t); +void originate_distorded_coordinates(topview * t); +_BB void on_host_alpha_change(GtkWidget * widget, gpointer user_data); double dist(double x1, double y1, double x2, double y2); double G(double x); -glCompSet* glcreate_gl_topview_menu(); -void fisheye_polar(double x_focus, double y_focus,topview* t); -void prepare_topological_fisheye(topview* t); +glCompSet *glcreate_gl_topview_menu(); +void fisheye_polar(double x_focus, double y_focus, topview * t); +void prepare_topological_fisheye(topview * t); #endif