]> granicus.if.org Git - graphviz/commitdiff
Janitor: fix more: "warning: function declaration isn’t a prototype"
authorellson <devnull@localhost>
Mon, 23 Feb 2009 16:16:28 +0000 (16:16 +0000)
committerellson <devnull@localhost>
Mon, 23 Feb 2009 16:16:28 +0000 (16:16 +0000)
cmd/smyrna/gui/gui.c
cmd/smyrna/gui/gui.h
cmd/smyrna/smyrnadefs.h
cmd/smyrna/tvnodes.c

index 2e5ee9412475b54817a8fc981252e9b4be315f3a..a2959c21a2f9c4934a27807c696c2ea2b69238dc 100755 (executable)
@@ -55,7 +55,7 @@ attribute attr[MAXIMUM_WIDGET_COUNT];
 
 //loads object properties form and does some fixes
 //call this function only ones
-void create_object_properties()
+void create_object_properties(void)
 {
 #ifdef UNUSED
     char *data0 = "TEST0";
@@ -82,18 +82,18 @@ void create_object_properties()
 }
 
 //call this after create_object_properties()
-void object_properties_node_init()
+void object_properties_node_init(void)
 {
 
 }
-void object_properties_edge_init()     //customize window for Edges
+void object_properties_edge_init(void) //customize window for Edges
 {
 }
-void object_properties_cluster_init()  //customize window for Cluster
+void object_properties_cluster_init(void)      //customize window for Cluster
 {
 
 }
-void object_properties_graph_init()    //customize window for Graph , this shows the graph default values
+void object_properties_graph_init(void)        //customize window for Graph , this shows the graph default values
 {
 
 }
@@ -134,7 +134,7 @@ void graph_properties_init(int newgraph)    //initialize little open graph dialog
     result = gtk_dialog_run(GTK_DIALOG(gladewidget));
 }
 
-GtkComboBox *get_SelectGraph()
+GtkComboBox *get_SelectGraph(void)
 {
     GtkComboBox *cb;
     if (!cbSelectGraph) {
@@ -577,7 +577,7 @@ void change_selected_edge_attributes(Agraph_t * g, char *attrname,
     }
 }
 
-void load_attributes()
+void load_attributes(void)
 {
     FILE *file;
     char line[BUFSIZ];
index afcff3c8627e9f25917c2d4034c69ada59039eb1..e12412af59422564d3955a04b53256facf42c447 100644 (file)
@@ -47,19 +47,19 @@ extern int widgetcounter;   //number of attributes counted dynamically, might be r
 extern attribute attr[MAXIMUM_WIDGET_COUNT];
 
 
-void create_object_properties();       //creates general purpose object properties template
-void object_properties_node_init();    //customize window for Nodes
-void object_properties_edge_init();    //customize window for Edges
-void object_properties_cluster_init(); //customize window for Cluster
-void object_properties_graph_init();   //customize window for Graph , this shows the graph default values
+void create_object_properties(void);   //creates general purpose object properties template
+void object_properties_node_init(void);        //customize window for Nodes
+void object_properties_edge_init(void);        //customize window for Edges
+void object_properties_cluster_init(void);     //customize window for Cluster
+void object_properties_graph_init(void);       //customize window for Graph , this shows the graph default values
 void graph_properties_init(int newgraph);      //initialize little open graph dialog
-GtkComboBox *get_SelectGraph();        //freaking GLADE!!!!!
+GtkComboBox *get_SelectGraph(void);    //freaking GLADE!!!!!
 int update_graph_properties(Agraph_t * graph); //updates graph from gui
 void load_graph_properties(Agraph_t * graph);  //load from graph to gui
 
 void update_object_properties(int typeIndex, Agraph_t * g);    //updates objects from gui(node ,edge, cluster)
 int load_object_properties(gve_element typeIndex, Agraph_t * g);
-void load_attributes();                //loads attributes from a text file
+void load_attributes(void);            //loads attributes from a text file
 void change_selected_graph_attributes(Agraph_t * g, char *attrname,
                                      char *attrvalue);
 void change_selected_node_attributes(Agraph_t * g, char *attrname,
index cbef4a33356ebe4faa9cac67d03f82bc0e3f6bde..064e497cda473095e765ee07f5398a83d8abe8e1 100644 (file)
@@ -506,7 +506,7 @@ extern int respond;
 extern char* smyrnaPath (char* suffix);
 extern char* smyrnaGlade;
 
-extern void glexpose();
+extern void glexpose(void);
 
 extern char* layout2s (gvk_layout gvkl);
 extern gvk_layout s2layout (char* s);
index 67711b23ca59afc75c61d431fe4e4a0f3bf61fd2..d52ad19223cb01b0dcd0a8e4ea65255173d5a82f 100755 (executable)
@@ -41,7 +41,7 @@ void clear_tv_filter(tv_filter * TV_Filter)
 }
 
 static
-tv_filter *create_tv_filter()
+tv_filter *create_tv_filter(void)
 {
     tv_filter *f;
     f = NEW(tv_filter);
@@ -104,7 +104,7 @@ set_filter(tv_filter * TV_Filter, char *MinData1, char *MaxData1,
 
 #ifdef UNUSED
 static
-int reverse_selection()
+int reverse_selection(void)
 {
     int i = 0;
     for (i; i < view->Topview->Nodecount; i++) {
@@ -308,7 +308,7 @@ static int update_node_gui_objects(tv_node * TV_Node)
 }
 
 
-int tv_nodes_last_page()
+int tv_nodes_last_page(void)
 {
     if (TV_Nodes.activepage < TV_Nodes.pagecount)
        return tv_nodes_goto_page(TV_Nodes.pagecount);
@@ -316,7 +316,7 @@ int tv_nodes_last_page()
        return 0;
 }
 
-int tv_nodes_first_page()
+int tv_nodes_first_page(void)
 {
     if (TV_Nodes.activepage > 0)
        return tv_nodes_goto_page(0);
@@ -324,7 +324,7 @@ int tv_nodes_first_page()
        return 0;
 }
 
-static int hide_data_widgets()
+static int hide_data_widgets(void)
 {
     int i;
     for (i = 0; i < MAX_NODE_PER_PAGE; i++) {
@@ -387,7 +387,7 @@ int tv_nodes_goto_page(int page)
     return 1;
 }
 
-int tv_nodes_prior_page()
+int tv_nodes_prior_page(void)
 {
     if (TV_Nodes.activepage > 0) {
        return tv_nodes_goto_page(TV_Nodes.activepage - 1);
@@ -396,7 +396,7 @@ int tv_nodes_prior_page()
 }
 
 
-int tv_nodes_next_page()
+int tv_nodes_next_page(void)
 {
     if (TV_Nodes.activepage < TV_Nodes.pagecount) {
        return tv_nodes_goto_page(TV_Nodes.activepage + 1);
@@ -404,7 +404,7 @@ int tv_nodes_next_page()
        return 0;
 }
 
-void execute_tv_nodes()
+void execute_tv_nodes(void)
 {
 
     gtk_widget_hide(glade_xml_get_widget(xml, "frmTVNodes"));
@@ -420,7 +420,7 @@ void execute_tv_nodes()
 }
 
 
-int reset_page_History()
+int reset_page_History(void)
 {
 /*     if(TV_Nodes.page_history_count > 0)
        {
@@ -443,7 +443,7 @@ static int push_to_page_history(int index)
 }
 
 #ifdef UNUSED
-static int pop_from_page_history()
+static int pop_from_page_history(void)
 {
     if (TV_Nodes.page_history_count > 0) {
        int return_value;
@@ -458,7 +458,7 @@ static int pop_from_page_history()
 }
 #endif
 
-static int set_data_attributes()
+static int set_data_attributes(void)
 {
     GtkLabel *lblData1;
     GtkLabel *lblData2;
@@ -491,7 +491,7 @@ static int set_data_attributes()
 
 }
 
-int prepare_page_history()
+int prepare_page_history(void)
 {
     GtkLabel *lblTVPage;
     GtkSpinButton *spn;
@@ -567,7 +567,7 @@ int create_save_subgraph_from_filter(char* filename)
 
 }
 
-int update_TV_data_from_gui()
+int update_TV_data_from_gui(void)
 {
     int i;
     int index = 0;
@@ -623,7 +623,7 @@ int update_TV_data_from_gui()
 
 }
 
-int apply_filter_from_gui()
+int apply_filter_from_gui(void)
 {
     int selected;
     int visible;
@@ -685,7 +685,7 @@ int apply_filter_from_gui()
 }
 
 
-int tv_select_all()
+int tv_select_all(void)
 {
 
     tv_node tvn;
@@ -719,7 +719,7 @@ int tv_unselect_all()
 
 }
 
-int tv_highligh_all()
+int tv_highligh_all(void)
 {
     tv_node tvn;
     int i;
@@ -735,7 +735,7 @@ int tv_highligh_all()
 
 }
 
-int tv_unhighligh_all()
+int tv_unhighligh_all(void)
 {
     tv_node tvn;
     int i;
@@ -750,7 +750,7 @@ int tv_unhighligh_all()
 
 }
 
-int tv_show_all()
+int tv_show_all(void)
 {
     tv_node tvn;
     int i;
@@ -767,7 +767,7 @@ int tv_show_all()
 
 }
 
-int tv_hide_all()
+int tv_hide_all(void)
 {
     tv_node tvn;
     int i;
@@ -782,7 +782,7 @@ int tv_hide_all()
 
 
 }
-int tv_save_as()
+int tv_save_as(void)
 {
        GtkWidget *dialog;
        dialog = gtk_file_chooser_dialog_new("Save File",