Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Fri, 08 Jun 2012 16:37:19 Commit: a38f02262c8aa6778e621822ac366569d2f2847b https://github.com/geany/geany-plugins/commit/a38f02262c8aa6778e621822ac3665...
Log Message: ----------- debugger: Use proper C prototypes for functions without arguments
Modified Paths: -------------- debugger/src/bptree.c debugger/src/bptree.h debugger/src/breakpoint.c debugger/src/breakpoint.h debugger/src/breakpoints.c debugger/src/breakpoints.h debugger/src/cell_renderers/cellrendererbreakicon.c debugger/src/cell_renderers/cellrendererframeicon.c debugger/src/cell_renderers/cellrenderertoggle.c debugger/src/dbm_gdb.c debugger/src/dconfig.c debugger/src/dconfig.h debugger/src/debug.c debugger/src/debug.h debugger/src/debug_module.c debugger/src/debug_module.h debugger/src/dpaned.c debugger/src/dpaned.h debugger/src/envtree.c debugger/src/envtree.h debugger/src/keys.c debugger/src/keys.h debugger/src/markers.c debugger/src/markers.h debugger/src/pixbuf.c debugger/src/pixbuf.h debugger/src/stree.c debugger/src/stree.h debugger/src/tpage.c debugger/src/tpage.h debugger/src/wtree.c debugger/src/wtree.h
Modified: debugger/src/bptree.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -709,7 +709,7 @@ gboolean bptree_init(move_to_line_cb cb) * destroy breaks tree and associated data * arguments: */ -void bptree_destroy() +void bptree_destroy(void) { g_hash_table_destroy(files); } @@ -883,7 +883,7 @@ void bptree_remove_breakpoint(breakpoint* bp) * updates all file ENABLED checkboxes base on theit children states * arguments: */ -void bptree_update_file_nodes() +void bptree_update_file_nodes(void) { GtkTreeIter file; if(gtk_tree_model_iter_children(model, &file, NULL))
Modified: debugger/src/bptree.h 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -20,7 +20,7 @@ */
gboolean bptree_init(move_to_line_cb callback); -void bptree_destroy(); +void bptree_destroy(void); void bptree_add_breakpoint(breakpoint* bp); void bptree_update_breakpoint(breakpoint* bp); void bptree_remove_breakpoint(breakpoint* bp); @@ -29,4 +29,4 @@ void bptree_set_enabled(breakpoint* bp); gchar* bptree_get_condition(breakpoint* bp); void bptree_set_readonly(gboolean readonly); -void bptree_update_file_nodes(); +void bptree_update_file_nodes(void);
Modified: debugger/src/breakpoint.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -30,7 +30,7 @@ /* * create new empty breakpoint */ -breakpoint* break_new() +breakpoint* break_new(void) { breakpoint* bp = (breakpoint*)g_malloc(sizeof(breakpoint)); memset(bp, 0 , sizeof(breakpoint));
Modified: debugger/src/breakpoint.h 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -32,5 +32,5 @@ GtkTreeIter iter; } breakpoint;
-breakpoint* break_new(); +breakpoint* break_new(void); breakpoint* break_new_full(const char* file, int line, const char* condition, int enabled, int hitscount);
Modified: debugger/src/breakpoints.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -330,7 +330,7 @@ gboolean breaks_init(move_to_line_cb cb) /* * Frees breaks related data. */ -void breaks_destroy() +void breaks_destroy(void) { /* remove all markers */ GList *breaks, *iter; @@ -458,7 +458,7 @@ void breaks_remove_list(GList *list) * Removes all breakpoints. * arguments: */ -void breaks_remove_all() +void breaks_remove_all(void) { g_hash_table_foreach(files, hash_table_foreach_call_function, (gpointer)on_remove); g_hash_table_remove_all(files); @@ -688,7 +688,7 @@ breakpoint* breaks_lookup_breakpoint(const gchar* file, int line) * Gets all breakpoints * arguments: */ -GList* breaks_get_all() +GList* breaks_get_all(void) { GList *breaks = NULL; g_hash_table_foreach(files, hash_table_foreach_add_to_list, &breaks);
Modified: debugger/src/breakpoints.h 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -31,11 +31,11 @@ typedef void (*select_frame_cb)(int frame_number);
gboolean breaks_init(move_to_line_cb callback); -void breaks_destroy(); +void breaks_destroy(void); void breaks_add(const char* file, int line, char* condition, int enable, int hitscount); void breaks_remove(const char* file, int line); void breaks_remove_list(GList *list); -void breaks_remove_all(); +void breaks_remove_all(void); void breaks_switch(const char *file, int line); void breaks_set_hits_count(const char *file, int line, int count); void breaks_set_condition(const char *file, int line, const char* condition); @@ -43,5 +43,5 @@ void breaks_move_to_line(const char* file, int line_from, int line_to); break_state breaks_get_state(const char* file, int line); GList* breaks_get_for_document(const char* file); -GList* breaks_get_all(); +GList* breaks_get_all(void); breakpoint* breaks_lookup_breakpoint(const gchar* file, int line);
Modified: debugger/src/cell_renderers/cellrendererbreakicon.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -449,7 +449,7 @@ GType cell_renderer_break_icon_get_type(void) /* * creates new renderer */ -GtkCellRenderer* cell_renderer_break_icon_new() +GtkCellRenderer* cell_renderer_break_icon_new(void) { return g_object_new(TYPE_CELL_RENDERER_BREAK_ICON, NULL); }
Modified: debugger/src/cell_renderers/cellrendererframeicon.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -349,7 +349,7 @@ GType cell_renderer_frame_icon_get_type(void) /* * creates new renderer */ -GtkCellRenderer* cell_renderer_frame_icon_new() +GtkCellRenderer* cell_renderer_frame_icon_new(void) { return g_object_new(TYPE_CELL_RENDERER_FRAME_ICON, NULL); }
Modified: debugger/src/cell_renderers/cellrenderertoggle.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -100,7 +100,7 @@ GType cell_renderer_toggle_get_type(void) /* * creates new renderer */ -GtkCellRenderer* cell_renderer_toggle_new() +GtkCellRenderer* cell_renderer_toggle_new(void) { return g_object_new(TYPE_CELL_RENDERER_TOGGLE, NULL); }
Modified: debugger/src/dbm_gdb.c 42 files changed, 21 insertions(+), 21 deletions(-) =================================================================== @@ -122,11 +122,11 @@ enum sr { static int active_frame = 0;
/* forward declarations */ -void stop(); +void stop(void); variable* add_watch(gchar* expression); -void update_watches(); -void update_autos(); -void update_files(); +void update_watches(void); +void update_autos(void); +void update_files(void);
/* * print message using color, based on message type @@ -200,7 +200,7 @@ static void on_gdb_exit(GPid pid, gint status, gpointer data) /* * reads gdb_out until "(gdb)" prompt met */ -static GList* read_until_prompt() +static GList* read_until_prompt(void) { GList *lines = NULL;
@@ -406,7 +406,7 @@ static gboolean on_read_async_output(GIOChannel * src, GIOCondition cond, gpoint * asyncronous gdb output reader * looks for a stopped event, then notifies "debug" module and removes async handler */ -enum dbs debug_get_state(); +enum dbs debug_get_state(void); static gboolean on_read_from_gdb(GIOChannel * src, GIOCondition cond, gpointer data) { gchar *line; @@ -881,7 +881,7 @@ void restart(char* terminal_device) /* * stops GDB */ -void stop() +void stop(void) { exec_sync_command("-gdb-exit", FALSE, NULL); } @@ -889,7 +889,7 @@ void stop() /* * resumes GDB */ -void resume() +void resume(void) { exec_async_command("-exec-continue"); } @@ -897,7 +897,7 @@ void resume() /* * step over */ -void step_over() +void step_over(void) { exec_async_command("-exec-next"); } @@ -905,7 +905,7 @@ void step_over() /* * step into */ -void step_into() +void step_into(void) { exec_async_command("-exec-step"); } @@ -913,7 +913,7 @@ void step_into() /* * step out */ -void step_out() +void step_out(void) { exec_async_command("-exec-finish"); } @@ -1060,7 +1060,7 @@ gboolean remove_break(breakpoint* bp) /* * get active frame */ -int get_active_frame() +int get_active_frame(void) { return active_frame; } @@ -1083,7 +1083,7 @@ void set_active_frame(int frame_number) /* * gets stack */ -GList* get_stack() +GList* get_stack(void) { gchar* record = NULL; result_class rc = exec_sync_command("-stack-list-frames", TRUE, &record); @@ -1374,7 +1374,7 @@ void get_variables (GList *vars) /* * updates files list */ -void update_files() +void update_files(void) { if (files) { @@ -1409,7 +1409,7 @@ void update_files() /* * updates watches list */ -void update_watches() +void update_watches(void) { gchar command[1000];
@@ -1481,7 +1481,7 @@ void update_watches() /* * updates autos list */ -void update_autos() +void update_autos(void) { gchar command[1000];
@@ -1562,7 +1562,7 @@ void update_autos() /* * get autos list */ -GList* get_autos () +GList* get_autos (void) { return g_list_copy(autos); } @@ -1570,7 +1570,7 @@ GList* get_autos () /* * get watches list */ -GList* get_watches () +GList* get_watches (void) { return g_list_copy(watches); } @@ -1578,7 +1578,7 @@ GList* get_watches () /* * get files list */ -GList* get_files () +GList* get_files (void) { return g_list_copy(files); } @@ -1731,7 +1731,7 @@ gchar *evaluate_expression(gchar *expression) /* * request GDB interrupt */ -gboolean request_interrupt() +gboolean request_interrupt(void) { #ifdef DEBUG_OUTPUT char msg[1000]; @@ -1748,7 +1748,7 @@ gboolean request_interrupt() /* * get GDB error messages */ -gchar* error_message() +gchar* error_message(void) { return err_message; }
Modified: debugger/src/dconfig.c 18 files changed, 9 insertions(+), 9 deletions(-) =================================================================== @@ -324,7 +324,7 @@ static gpointer saving_thread_func(gpointer data) /* * set "debug changed" flag to save it on "saving_thread" thread */ -void config_set_debug_changed() +void config_set_debug_changed(void) { if (!debug_config_loading) { @@ -437,7 +437,7 @@ void config_set_panel_defaults(GKeyFile *keyfile) /* * initialize */ -void config_init() +void config_init(void) { /* read config */ gchar *config_dir = g_build_path(G_DIR_SEPARATOR_S, geany_data->app->configdir, "plugins", "debugger", NULL); @@ -463,7 +463,7 @@ void config_init() /* * destroy */ -void config_destroy() +void config_destroy(void) { g_cond_signal(cond); /* ??? g_thread_join(saving_thread); */ @@ -484,12 +484,12 @@ void config_destroy() * config parts getters */ /* saving option */ -gboolean config_get_save_to_project() +gboolean config_get_save_to_project(void) { return g_key_file_get_boolean(keyfile_plugin, "saving_settings", "save_to_project", NULL); } /* panel config */ -gboolean config_get_tabbed() +gboolean config_get_tabbed(void) { return g_key_file_get_boolean(keyfile_plugin, "tabbed_mode", "enabled", NULL); } @@ -497,7 +497,7 @@ int* config_get_tabs(gsize *length) { return g_key_file_get_integer_list(keyfile_plugin, "one_panel_mode", "tabs", length, NULL); } -int config_get_selected_tab_index() +int config_get_selected_tab_index(void) { return g_key_file_get_integer(keyfile_plugin, "one_panel_mode", "selected_tab_index", NULL); } @@ -505,7 +505,7 @@ int* config_get_left_tabs(gsize *length) { return g_key_file_get_integer_list(keyfile_plugin, "two_panels_mode", "left_tabs", length, NULL); } -int config_get_left_selected_tab_index() +int config_get_left_selected_tab_index(void) { return g_key_file_get_integer(keyfile_plugin, "two_panels_mode", "left_selected_tab_index", NULL); } @@ -513,7 +513,7 @@ int* config_get_right_tabs(gsize *length) { return g_key_file_get_integer_list(keyfile_plugin, "two_panels_mode", "right_tabs", length, NULL); } -int config_get_right_selected_tab_index() +int config_get_right_selected_tab_index(void) { return g_key_file_get_integer(keyfile_plugin, "two_panels_mode", "right_selected_tab_index", NULL); } @@ -549,7 +549,7 @@ void config_set_debug_store(debug_store store) /* * updates keyfile_project from a current geany project path */ -void config_update_project_keyfile() +void config_update_project_keyfile(void) { if (keyfile_project) {
Modified: debugger/src/dconfig.h 18 files changed, 9 insertions(+), 9 deletions(-) =================================================================== @@ -37,31 +37,31 @@ } debug_store;
-void config_init(); -void config_destroy(); +void config_init(void); +void config_destroy(void);
void config_set_panel(int config_part, gpointer config_value, ...);
-gboolean config_get_save_to_project(); +gboolean config_get_save_to_project(void);
-gboolean config_get_tabbed(); +gboolean config_get_tabbed(void);
int* config_get_tabs(gsize *length); -int config_get_selected_tab_index(); +int config_get_selected_tab_index(void);
int* config_get_left_tabs(gsize *length); -int config_get_left_selected_tab_index(); +int config_get_left_selected_tab_index(void);
int* config_get_right_tabs(gsize *length); -int config_get_right_selected_tab_index(); +int config_get_right_selected_tab_index(void);
-void config_set_debug_changed(); +void config_set_debug_changed(void); void config_set_debug_store(debug_store store);
void config_on_project_open(GObject *obj, GKeyFile *config, gpointer user_data); void config_on_project_close(GObject *obj, gpointer user_data); void config_on_project_save(GObject *obj, GKeyFile *config, gpointer user_data);
-void config_update_project_keyfile(); +void config_update_project_keyfile(void);
GtkWidget *config_plugin_configure(GtkDialog *dialog);
Modified: debugger/src/debug.c 40 files changed, 20 insertions(+), 20 deletions(-) =================================================================== @@ -153,7 +153,7 @@ /* * remove stack margin markers */ - void remove_stack_markers() + void remove_stack_markers(void) { int active_frame_index = active_module->get_active_frame(); @@ -182,7 +182,7 @@ /* * add stack margin markers */ -static void add_stack_markers() +static void add_stack_markers(void) { int active_frame_index = active_module->get_active_frame(); @@ -605,7 +605,7 @@ static void enable_sensitive_widgets(gboolean enable) /* * called from debug module when debugger is being run */ -static void on_debugger_run () +static void on_debugger_run (void) { /* update debug state */ debug_state = DBS_RUNNING; @@ -848,7 +848,7 @@ void on_debugger_message (const gchar* message, const gchar *color) /* * called from debugger module to clear messages tab */ -static void on_debugger_messages_clear () +static void on_debugger_messages_clear (void) { /* clear debug messages window */ GtkTextIter start, end; @@ -928,7 +928,7 @@ static void on_select_frame(int frame_number) * init debug related GUI (watch tree view) * arguments: */ -void debug_init() +void debug_init(void) { /* create watch page */ wtree = wtree_init(on_watch_expanded_callback, @@ -1025,7 +1025,7 @@ void debug_init() /* * called when plugin is being unloaded to remove current instruction marker */ -void debug_destroy() +void debug_destroy(void) { /* close PTY file descriptors */ close(pty_master); @@ -1046,7 +1046,7 @@ void debug_destroy() /* * gets current debug state */ -enum dbs debug_get_state() +enum dbs debug_get_state(void) { return debug_state; } @@ -1054,7 +1054,7 @@ enum dbs debug_get_state() /* * gets current stack frames lisy */ -GList* debug_get_stack() +GList* debug_get_stack(void) { return stack; } @@ -1080,7 +1080,7 @@ int debug_get_module_index(const gchar *modulename) /* * gets GList with all debug modules pointers */ -GList* debug_get_modules() +GList* debug_get_modules(void) { GList *mods = NULL; module_description *desc = modules; @@ -1096,7 +1096,7 @@ GList* debug_get_modules() /* * checks whether currently active debug module supports asyncronous breaks */ -gboolean debug_supports_async_breaks() +gboolean debug_supports_async_breaks(void) { return active_module->features & MF_ASYNC_BREAKS; } @@ -1104,7 +1104,7 @@ gboolean debug_supports_async_breaks() /* * starts or continues debug process */ -void debug_run() +void debug_run(void) { if (DBS_IDLE == debug_state) { @@ -1157,7 +1157,7 @@ void debug_run() /* * restarts debug process */ -void debug_restart() +void debug_restart(void) { if (DBS_STOPPED == debug_state) { @@ -1171,7 +1171,7 @@ void debug_restart() /* * stops debug process */ -void debug_stop() +void debug_stop(void) { if (DBS_STOPPED == debug_state) { @@ -1190,7 +1190,7 @@ void debug_stop() /* * step over */ -void debug_step_over() +void debug_step_over(void) { if (DBS_STOPPED == debug_state) active_module->step_over(); @@ -1199,7 +1199,7 @@ void debug_step_over() /* * step into */ -void debug_step_into() +void debug_step_into(void) { if (DBS_STOPPED == debug_state) active_module->step_into(); @@ -1208,7 +1208,7 @@ void debug_step_into() /* * step out */ -void debug_step_out() +void debug_step_out(void) { if (DBS_STOPPED == debug_state) active_module->step_out(); @@ -1271,7 +1271,7 @@ void debug_request_interrupt(bs_callback cb, gpointer data) /* * gets debug modules error message */ -gchar* debug_error_message() +gchar* debug_error_message(void) { return active_module->error_message(); } @@ -1340,7 +1340,7 @@ gchar* debug_get_calltip_for_expression(gchar* expression) * check whether source for the current instruction * is avaiable */ -gboolean debug_current_instruction_have_sources() +gboolean debug_current_instruction_have_sources(void) { frame *current = (frame*)stack->data; return current->have_source ? strlen(current->file) : 0; @@ -1349,7 +1349,7 @@ gboolean debug_current_instruction_have_sources() /* * opens position according to the current instruction */ -void debug_jump_to_current_instruction() +void debug_jump_to_current_instruction(void) { frame *current = (frame*)stack->data; editor_open_position(current->file, current->line); @@ -1369,7 +1369,7 @@ void debug_on_file_open(GeanyDocument *doc) /* * get active frame index */ -int debug_get_active_frame() +int debug_get_active_frame(void) { return active_module->get_active_frame(); }
Modified: debugger/src/debug.h 32 files changed, 16 insertions(+), 16 deletions(-) =================================================================== @@ -25,28 +25,28 @@ /* function type to execute on interrupt */ typedef void (*bs_callback)(gpointer);
-void debug_init(); -enum dbs debug_get_state(); -void debug_run(); -void debug_stop(); -void debug_step_over(); -void debug_step_into(); -void debug_step_out(); +void debug_init(void); +enum dbs debug_get_state(void); +void debug_run(void); +void debug_stop(void); +void debug_step_over(void); +void debug_step_into(void); +void debug_step_out(void); void debug_execute_until(const gchar *file, int line); gboolean debug_set_break(breakpoint* bp, break_set_activity bsa); gboolean debug_remove_break(breakpoint* bp); void debug_request_interrupt(bs_callback cb, gpointer data); -gchar* debug_error_message(); -GList* debug_get_modules(); +gchar* debug_error_message(void); +GList* debug_get_modules(void); int debug_get_module_index(const gchar *modulename); -gboolean debug_supports_async_breaks(); -void debug_destroy(); +gboolean debug_supports_async_breaks(void); +void debug_destroy(void); gchar* debug_evaluate_expression(gchar *expression); -gboolean debug_current_instruction_have_sources(); -void debug_jump_to_current_instruction(); +gboolean debug_current_instruction_have_sources(void); +void debug_jump_to_current_instruction(void); void debug_on_file_open(GeanyDocument *doc); gchar* debug_get_calltip_for_expression(gchar* expression); -GList* debug_get_stack(); -void debug_restart(); -int debug_get_active_frame(); +GList* debug_get_stack(void); +void debug_restart(void); +int debug_get_active_frame(void);
Modified: debugger/src/debug_module.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -77,7 +77,7 @@ void variable_reset(variable *var) }
/* creates new frame */ -frame* frame_new() +frame* frame_new(void) { frame *f = (frame*)malloc(sizeof(frame)); memset((void*)f, 0, sizeof(frame));
Modified: debugger/src/debug_module.h 32 files changed, 16 insertions(+), 16 deletions(-) =================================================================== @@ -30,11 +30,11 @@ enum dbs {
/* type to hold callbacks to call from debugger modules */ typedef struct _dbg_callbacks { - void (*set_run) (); + void (*set_run) (void); void (*set_stopped) (int thread_id); void (*set_exited) (int code); void (*send_message) (const gchar* message, const gchar *color); - void (*clear_messages) (); + void (*clear_messages) (void); void (*report_error) (const gchar* message); void (*add_thread) (int thread_id); void (*remove_thread) (int thread_id); @@ -98,26 +98,26 @@ enum dbs { typedef struct _dbg_module { gboolean (*run) (const gchar* target, const gchar* commandline, GList* env, GList *witer, GList *biter, const gchar* terminal_device, dbg_callbacks* callbacks); - void (*restart) (); - void (*stop) (); - void (*resume) (); - void (*step_over) (); - void (*step_into) (); - void (*step_out) (); + void (*restart) (void); + void (*stop) (void); + void (*resume) (void); + void (*step_over) (void); + void (*step_into) (void); + void (*step_out) (void); void (*execute_until)(const gchar *file, int line);
gboolean (*set_break) (breakpoint* bp, break_set_activity bsa); gboolean (*remove_break) (breakpoint* bp);
- GList* (*get_stack) (); + GList* (*get_stack) (void);
void (*set_active_frame)(int frame_number); - int (*get_active_frame)(); + int (*get_active_frame)(void); - GList* (*get_autos) (); - GList* (*get_watches) (); + GList* (*get_autos) (void); + GList* (*get_watches) (void); - GList* (*get_files) (); + GList* (*get_files) (void);
GList* (*get_children) (gchar* path); variable* (*add_watch)(gchar* expression); @@ -125,8 +125,8 @@ enum dbs {
gchar* (*evaluate_expression)(gchar *expression); - gboolean (*request_interrupt) (); - gchar* (*error_message) (); + gboolean (*request_interrupt) (void); + gchar* (*error_message) (void); module_features features; } dbg_module; @@ -163,5 +163,5 @@ enum dbs { variable* variable_new2(gchar *name, gchar *internal, variable_type vt); void variable_reset(variable *var);
-frame* frame_new(); +frame* frame_new(void); void frame_free(frame* f);
Modified: debugger/src/dpaned.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -269,7 +269,7 @@ static gboolean on_change_current_page(GtkNotebook *notebook, gpointer arg1, gui /* * create GUI and check config */ -void dpaned_init() +void dpaned_init(void) { /* create paned */ hpaned = gtk_hpaned_new(); @@ -356,7 +356,7 @@ void dpaned_init() /* * free local data, disconnect signals */ -void dpaned_destroy() +void dpaned_destroy(void) { DISCONNECT_PAGE_SIGNALS(); } @@ -364,7 +364,7 @@ void dpaned_destroy() /* * gets widget */ -GtkWidget* dpaned_get_paned() +GtkWidget* dpaned_get_paned(void) { return hpaned; }
Modified: debugger/src/dpaned.h 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -20,7 +20,7 @@ * MA 02110-1301, USA. */
-void dpaned_init(); -void dpaned_destroy(); -GtkWidget* dpaned_get_paned(); +void dpaned_init(void); +void dpaned_destroy(void); +GtkWidget* dpaned_get_paned(void); void dpaned_set_tabbed(gboolean paned);
Modified: debugger/src/envtree.c 12 files changed, 6 insertions(+), 6 deletions(-) =================================================================== @@ -72,7 +72,7 @@ enum /* * adds empty row to env tree view */ -static void add_empty_row() +static void add_empty_row(void) { if (empty_row) gtk_tree_row_reference_free(empty_row); @@ -93,7 +93,7 @@ static void add_empty_row() /* * delete selected rows from env variables page */ -static void delete_selected_rows() +static void delete_selected_rows(void) { /* path to select after deleting finishes */ GtkTreeRowReference *reference_to_select = NULL; @@ -390,7 +390,7 @@ static void on_name_changed(GtkCellRendererText *renderer, gchar *path, gchar *n /* * create env tree view and return a widget */ -GtkWidget* envtree_init() +GtkWidget* envtree_init(void) { store = gtk_list_store_new ( N_COLUMNS, @@ -438,7 +438,7 @@ GtkWidget* envtree_init() /* * deallocate data */ -void envtree_destroy() +void envtree_destroy(void) { gtk_tree_row_reference_free(empty_row); } @@ -446,7 +446,7 @@ void envtree_destroy() /* * clear tree */ -void envtree_clear() +void envtree_clear(void) { gtk_list_store_clear(store); add_empty_row(); @@ -455,7 +455,7 @@ void envtree_clear() /* * get list of environment variables */ -GList* envpage_get_environment() +GList* envpage_get_environment(void) { GList *env = NULL;
Modified: debugger/src/envtree.h 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -19,9 +19,9 @@ * MA 02110-1301, USA. */
-GtkWidget* envtree_init(); -void envtree_destroy(); -void envtree_clear(); +GtkWidget* envtree_init(void); +void envtree_destroy(void); +void envtree_clear(void); void envtree_set_readonly(gboolean readonly); void envtree_add_environment(const gchar *name, const gchar *value); -GList* envpage_get_environment(); +GList* envpage_get_environment(void);
Modified: debugger/src/keys.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -61,7 +61,7 @@ /* * init hotkeys */ -gboolean keys_init() +gboolean keys_init(void) { /* keys count */ int count = 0;
Modified: debugger/src/keys.h 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -33,4 +33,4 @@ enum KEYS KEY_CURRENT_INSTRUCTION };
-gboolean keys_init(); +gboolean keys_init(void);
Modified: debugger/src/markers.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -94,7 +94,7 @@ void markers_set_for_document(ScintillaObject *sci) /* * inits markers staff */ -void markers_init() +void markers_init(void) { /* set markers in all currently opened documents */ int i;
Modified: debugger/src/markers.h 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -19,7 +19,7 @@ * MA 02110-1301, USA. */
-void markers_init(); +void markers_init(void); void markers_set_for_document(ScintillaObject *sci); void markers_add_breakpoint(breakpoint* bp); void markers_remove_breakpoint(breakpoint* bp);
Modified: debugger/src/pixbuf.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -50,7 +50,7 @@ /* * create pixbuffers */ -void pixbufs_init() +void pixbufs_init(void) { break_pixbuf = gdk_pixbuf_new_from_xpm_data(breakpoint_xpm); break_disabled_pixbuf = gdk_pixbuf_new_from_xpm_data(breakpoint_disabled_xpm); @@ -67,7 +67,7 @@ void pixbufs_init() /* * free pixbuffers */ -void pixbufs_destroy() +void pixbufs_destroy(void) { g_object_unref(break_pixbuf); g_object_unref(break_disabled_pixbuf);
Modified: debugger/src/pixbuf.h 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -30,5 +30,5 @@ extern GdkPixbuf *frame_pixbuf; extern GdkPixbuf *frame_current_pixbuf;
-void pixbufs_init(); -void pixbufs_destroy(); +void pixbufs_init(void); +void pixbufs_destroy(void);
Modified: debugger/src/stree.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -431,7 +431,7 @@ void stree_add(frame *f) /* * clear tree view completely */ -void stree_clear() +void stree_clear(void) { gtk_tree_store_clear(store); g_hash_table_remove_all(threads); @@ -470,7 +470,7 @@ void stree_select_first_frame(gboolean make_active) /* * called on plugin exit to free module data */ -void stree_destroy() +void stree_destroy(void) { if (threads) { @@ -548,7 +548,7 @@ void stree_remove_thread(int thread_id) /* * remove all frames */ -void stree_remove_frames() +void stree_remove_frames(void) { GtkTreeRowReference *reference = (GtkTreeRowReference*)g_hash_table_lookup(threads, (gpointer)active_thread_id); GtkTreeIter thread_iter;
Modified: debugger/src/stree.h 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -20,15 +20,15 @@ */
GtkWidget* stree_init(move_to_line_cb ml, select_frame_cb sf); -void stree_destroy(); +void stree_destroy(void);
void stree_add(frame *f); -void stree_clear(); +void stree_clear(void);
void stree_add_thread(int thread_id); void stree_remove_thread(int thread_id);
void stree_select_first_frame(gboolean make_active); -void stree_remove_frames(); +void stree_remove_frames(void);
void stree_set_active_thread_id(int thread_id);
Modified: debugger/src/tpage.c 16 files changed, 8 insertions(+), 8 deletions(-) =================================================================== @@ -232,7 +232,7 @@ void tpage_pack_widgets(gboolean tabbed) /* * create widgets */ -static void tpage_create_widgets() +static void tpage_create_widgets(void) { /* target */ target_label = gtk_label_new(_("Target:")); @@ -316,7 +316,7 @@ void tpage_add_environment(const gchar *name, const gchar *value) /* * removes all data (clears widgets) */ -void tpage_clear() +void tpage_clear(void) { /* target */ gtk_entry_set_text(GTK_ENTRY(target_name), ""); @@ -335,7 +335,7 @@ void tpage_clear() /* * get target file names */ -gchar* tpage_get_target() +gchar* tpage_get_target(void) { return g_strdup(gtk_entry_get_text(GTK_ENTRY(target_name))); } @@ -343,7 +343,7 @@ gchar* tpage_get_target() /* * get selected debugger module index */ -int tpage_get_debug_module_index() +int tpage_get_debug_module_index(void) { return gtk_combo_box_get_active(GTK_COMBO_BOX(debugger_cmb)); } @@ -351,7 +351,7 @@ int tpage_get_debug_module_index() /* * get selected debugger name */ -gchar* tpage_get_debugger() +gchar* tpage_get_debugger(void) { return gtk_combo_box_get_active_text(GTK_COMBO_BOX(debugger_cmb)); } @@ -359,7 +359,7 @@ gchar* tpage_get_debugger() /* * get command line */ -gchar* tpage_get_commandline() +gchar* tpage_get_commandline(void) { GtkTextIter start, end; GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(args_textview)); @@ -379,7 +379,7 @@ gchar* tpage_get_commandline() /* * get list of environment variables */ -GList* tpage_get_environment() +GList* tpage_get_environment(void) { return envpage_get_environment(); } @@ -387,7 +387,7 @@ GList* tpage_get_environment() /* * create target page */ -void tpage_init() +void tpage_init(void) { tab_target = gtk_vbox_new(FALSE, 0); tpage_create_widgets();
Modified: debugger/src/tpage.h 14 files changed, 7 insertions(+), 7 deletions(-) =================================================================== @@ -19,24 +19,24 @@ * MA 02110-1301, USA. */
-void tpage_init(); +void tpage_init(void);
-gchar* tpage_get_target(); +gchar* tpage_get_target(void); void tpage_set_target(const gchar *newvalue);
-gchar* tpage_get_debugger(); +gchar* tpage_get_debugger(void); void tpage_set_debugger(const gchar *newvalue);
-int tpage_get_debug_module_index(); +int tpage_get_debug_module_index(void);
-gchar* tpage_get_commandline(); +gchar* tpage_get_commandline(void); void tpage_set_commandline(const gchar *newvalue);
-GList* tpage_get_environment(); +GList* tpage_get_environment(void); void tpage_add_environment(const gchar *name, const gchar *value);
void tpage_set_readonly(gboolean readonly); -void tpage_clear(); +void tpage_clear(void);
void tpage_pack_widgets(gboolean tabbed);
Modified: debugger/src/wtree.c 10 files changed, 5 insertions(+), 5 deletions(-) =================================================================== @@ -53,7 +53,7 @@ enum /* * add empty row */ -static void add_empty_row() +static void add_empty_row(void) { if (empty_row) gtk_tree_row_reference_free(empty_row); @@ -96,7 +96,7 @@ static void on_render_name(GtkTreeViewColumn *tree_column, /* * get iterator to an empty row */ -GtkTreeIter wtree_empty_row() +GtkTreeIter wtree_empty_row(void) { GtkTreeIter empty;
@@ -112,7 +112,7 @@ GtkTreeIter wtree_empty_row() /* * get an empty row path */ -GtkTreePath* wtree_empty_path() +GtkTreePath* wtree_empty_path(void) { return gtk_tree_row_reference_get_path(empty_row); } @@ -178,7 +178,7 @@ GtkWidget* wtree_init(watch_expanded_callback expanded, /* * get watches list */ -GList *wtree_get_watches() +GList *wtree_get_watches(void) { GList *watches = NULL; gtk_tree_model_foreach(gtk_tree_view_get_model(GTK_TREE_VIEW(tree)), watches_foreach_collect, &watches); @@ -189,7 +189,7 @@ GList *wtree_get_watches() /* * remove all watches from the tree view */ -void wtree_remove_all() +void wtree_remove_all(void) { gtk_tree_store_clear(store); add_empty_row();
Modified: debugger/src/wtree.h 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -24,10 +24,10 @@ GtkWidget* wtree_init(watch_expanded_callback expanded, watch_key_pressed keypressed, watch_expression_changed changed, watch_button_pressed buttonpressed); -GtkTreeIter wtree_empty_row(); -GtkTreePath* wtree_empty_path(); -GList* wtree_get_watches(); -void wtree_remove_all(); +GtkTreeIter wtree_empty_row(void); +GtkTreePath* wtree_empty_path(void); +GList* wtree_get_watches(void); +void wtree_remove_all(void); void wtree_add_watch(gchar *watch);
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org