[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: prototype.h
User: danmc
Date: 05/02/21 00:29:33
Modified: . prototype.h struct.h x_menu.h
Log:
Fix many instances of non-void functions not having return values.
Most of these were simply changed to void functions since nothing
seemed to be expecting a return value. While here, garbage collect
several unused variables to make the compiler warnings easier to
dig through. Also if we're using gcc, then turn on -Wall.
Revision Changes Path
1.9 +19 -19 eda/geda/devel/gattrib/include/prototype.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: prototype.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/include/prototype.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- prototype.h 12 Feb 2005 16:43:41 -0000 1.8
+++ prototype.h 21 Feb 2005 05:29:33 -0000 1.9
@@ -74,15 +74,15 @@
void s_table_add_toplevel_net_items_to_net_table(OBJECT *start_obj);
void s_table_add_toplevel_pin_items_to_pin_table(OBJECT *start_obj);
-int s_table_gtksheet_to_all_tables();
-int s_table_gtksheet_to_table(GtkSheet *local_gtk_sheet,
+void s_table_gtksheet_to_all_tables();
+void s_table_gtksheet_to_table(GtkSheet *local_gtk_sheet,
STRING_LIST *master_row_list, STRING_LIST *master_col_list,
TABLE **local_table, int num_rows, int num_cols);
/* ------------- s_toplevel.c ------------- */
int s_toplevel_read_page(char *filename);
-int s_toplevel_verify_design(TOPLEVEL *pr_current);
-int s_toplevel_empty_project();
+void s_toplevel_verify_design(TOPLEVEL *pr_current);
+void s_toplevel_empty_project();
void s_toplevel_gtksheet_to_toplevel();
void s_toplevel_update_page(OBJECT *start_obj);
void s_toplevel_menubar_file_open(TOPLEVEL *pr_current);
@@ -147,47 +147,47 @@
/* ------------- x_dialog.c ------------- */
-char *x_dialog_newattrib_get_name();
+void x_dialog_newattrib_get_name();
int x_dialog_newattrib_keypress_callback(GtkWidget * widget,
GdkEventKey * event,
GtkWidget *window);
-int x_dialog_newattrib_close_callback(GtkWidget * widget,
+void x_dialog_newattrib_close_callback(GtkWidget * widget,
GtkWidget *window);
-int x_dialog_newattrib_ok_callback(GtkWidget * widget,
+void x_dialog_newattrib_ok_callback(GtkWidget * widget,
GtkWidget *window);
-int x_dialog_delattrib_confirm();
+void x_dialog_delattrib_confirm();
int x_dialog_delattrib_keypress_callback(GtkWidget * widget,
GdkEventKey * event,
GtkWidget *window);
-int x_dialog_delattrib_close_callback(GtkWidget *buttonclose,
+void x_dialog_delattrib_close_callback(GtkWidget *buttonclose,
GtkWidget *window);
-int x_dialog_delattrib_yes_callback(GtkWidget *buttonok,
+void x_dialog_delattrib_yes_callback(GtkWidget *buttonok,
GtkWidget *window);
-int x_dialog_missing_sym();
+void x_dialog_missing_sym();
int x_dialog_missing_sym_donothing_callback(GtkWidget * widget,
GdkEventKey * event,
GtkWidget *window);
-int x_dialog_missing_sym_continue_callback(GtkWidget *buttonclose,
+void x_dialog_missing_sym_continue_callback(GtkWidget *buttonclose,
GtkWidget *window);
-int x_dialog_missing_sym_abort_callback(GtkWidget *buttonyes,
+void x_dialog_missing_sym_abort_callback(GtkWidget *buttonyes,
GtkWidget *window);
-int x_dialog_unsaved_data();
+void x_dialog_unsaved_data();
int x_dialog_unsaved_data_donothing_callback(GtkWidget * widget,
GdkEventKey * event,
GtkWidget *window);
-int x_dialog_unsaved_data_continue_callback(GtkWidget *buttonclose,
+void x_dialog_unsaved_data_continue_callback(GtkWidget *buttonclose,
GtkWidget *window);
-int x_dialog_unsaved_data_abort_callback(GtkWidget *buttonyes,
+void x_dialog_unsaved_data_abort_callback(GtkWidget *buttonyes,
GtkWidget *window);
-int x_dialog_unimplemented_feature();
+void x_dialog_unimplemented_feature();
int x_dialog_about_keypress_callback(GtkWidget * widget, GdkEventKey * event,
GtkWidget * window);
-int x_dialog_about_close_callback(GtkWidget * widget, GtkWidget *window);
+void x_dialog_about_close_callback(GtkWidget * widget, GtkWidget *window);
void x_dialog_about_dialog();
GtkWidget *x_dialog_create_dialog_box(GtkWidget ** out_vbox,
@@ -260,7 +260,7 @@
gint x_fileselect_sym_files(GtkWidget * w, FILEDIALOG * f_current);
gint x_fileselect_both_files(GtkWidget * w, FILEDIALOG * f_current);
gint x_fileselect_all_files(GtkWidget * w, FILEDIALOG * f_current);
-static GtkWidget *x_fileselect_filter_menu(FILEDIALOG * f_current);
+/* static GtkWidget *x_fileselect_filter_menu(FILEDIALOG * f_current); */
int
x_fileselect_preview_checkbox(GtkWidget * widget, FILEDIALOG * f_current);
void x_fileselect_saveas_close(GtkWidget * w, FILEDIALOG * f_current);
1.4 +1 -1 eda/geda/devel/gattrib/include/struct.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: struct.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/include/struct.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- struct.h 22 Jan 2005 16:31:48 -0000 1.3
+++ struct.h 21 Feb 2005 05:29:33 -0000 1.4
@@ -44,7 +44,7 @@
#include "gtkitementry_1_2.h"
#endif
-#include "pixmaps.h"
+/* #include "pixmaps.h" */
/* ======== Data structures used in processing below here ========== */
1.4 +1 -1 eda/geda/devel/gattrib/include/x_menu.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_menu.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/include/x_menu.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- x_menu.h 22 Jan 2005 16:31:48 -0000 1.3
+++ x_menu.h 21 Feb 2005 05:29:33 -0000 1.4
@@ -33,7 +33,7 @@
#include "gtkitementry_1_2.h"
#endif
-#include "pixmaps.h"
+/* #include "pixmaps.h" */
/* ---------- Menu definition -- copied from the GTK tutorial file ---------- */
/* ---------- and edited/adapted by SDB for gattrib. ---------- */