[geany/geany-plugins] 91b11e: geanygdb: Use proper C prototypes for functions without arguments
Colomban Wendling
git-noreply at xxxxx
Sat Jun 9 16:35:48 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 09 Jun 2012 16:35:48
Commit: 91b11e89795d9738df944a92c20fa107f1b593a6
https://github.com/geany/geany-plugins/commit/91b11e89795d9738df944a92c20fa107f1b593a6
Log Message:
-----------
geanygdb: Use proper C prototypes for functions without arguments
Modified Paths:
--------------
geanygdb/src/gdb-io-break.c
geanygdb/src/gdb-io-envir.c
geanygdb/src/gdb-io-frame.c
geanygdb/src/gdb-io-priv.h
geanygdb/src/gdb-io-read.c
geanygdb/src/gdb-io-run.c
geanygdb/src/gdb-io-stack.c
geanygdb/src/gdb-io.h
geanygdb/src/gdb-lex.c
geanygdb/src/gdb-lex.h
geanygdb/src/gdb-ui-envir.c
geanygdb/src/gdb-ui-frame.c
geanygdb/src/gdb-ui-main.c
geanygdb/src/gdb-ui.h
geanygdb/src/geanygdb.c
Modified: geanygdb/src/gdb-io-break.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -33,7 +33,7 @@
static void
-free_breakpoint_list()
+free_breakpoint_list(void)
{
GSList *p;
for (p = breakpoint_list; p; p = p->next)
Modified: geanygdb/src/gdb-io-envir.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -33,7 +33,7 @@
static void
-free_env_info()
+free_env_info(void)
{
g_free(env_info.cwd);
g_free(env_info.path);
Modified: geanygdb/src/gdb-io-frame.c
18 files changed, 9 insertions(+), 9 deletions(-)
===================================================================
@@ -82,7 +82,7 @@
static void
-free_lists()
+free_lists(void)
{
gdbio_free_var_list(locals_list);
locals_list = NULL;
@@ -98,7 +98,7 @@
}
static void
-get_arglist()
+get_arglist(void)
{
which_list = ¤t_frame.args;
which_index = &args_index;
@@ -372,12 +372,12 @@ static gint qlen(GQueue*q)
qpush(&obj_list_queue, p);
}
static void
-pop_list()
+pop_list(void)
{
gdbio_free_var_list(qpop(&obj_list_queue));
}
static GSList *
-top_list()
+top_list(void)
{
return qtop(obj_list_queue);
}
@@ -390,12 +390,12 @@ static gint qlen(GQueue*q)
qpush(&obj_var_queue, p);
}
static void
-pop_var()
+pop_var(void)
{
gdbio_free_var(qpop(&obj_var_queue));
}
static GdbVar *
-top_var()
+top_var(void)
{
return qtop(obj_var_queue);
}
@@ -412,12 +412,12 @@ static gint qlen(GQueue*q)
qpush(&obj_func_queue, p);
}
static void
-pop_func()
+pop_func(void)
{
qpop(&obj_func_queue);
}
static GdbObjectFunc
-top_func()
+top_func(void)
{
return qtop(obj_func_queue);
}
@@ -426,7 +426,7 @@ static gint qlen(GQueue*q)
static void
-done_top()
+done_top(void)
{
pop_var();
pop_list();
Modified: geanygdb/src/gdb-io-priv.h
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -83,7 +83,7 @@
void gdbio_target_exited(gchar * reason);
void gdbio_set_target_pid(GPid pid);
-GPid gdbio_get_target_pid();
+GPid gdbio_get_target_pid(void);
void gdbio_set_running(gboolean running);
/*
Modified: geanygdb/src/gdb-io-read.c
8 files changed, 4 insertions(+), 4 deletions(-)
===================================================================
@@ -53,7 +53,7 @@
static void
-free_source_list()
+free_source_list(void)
{
free_string_list(&source_files);
}
@@ -798,7 +798,7 @@
void
-gdbio_continue()
+gdbio_continue(void)
{
gdbio_send_cmd("-exec-continue\n");
}
@@ -807,14 +807,14 @@
void
-gdbio_return()
+gdbio_return(void)
{
gdbio_send_seq_cmd(return_function, "-exec-return\n");
}
void
-gdbio_finish()
+gdbio_finish(void)
{
gdbio_send_seq_cmd(finish_function, "-exec-finish\n");
}
Modified: geanygdb/src/gdb-io-run.c
10 files changed, 5 insertions(+), 5 deletions(-)
===================================================================
@@ -265,7 +265,7 @@
static void
-kill_xterm()
+kill_xterm(void)
{
if (xterm_pid)
{
@@ -567,7 +567,7 @@
void
-gdbio_pause_target()
+gdbio_pause_target(void)
{
if (target_pid)
{
@@ -650,14 +650,14 @@
}
static gboolean
-have_console()
+have_console(void)
{
return (gdbio_status == GdbLoaded) || (gdbio_status == GdbStopped)
|| (gdbio_status == GdbFinished);
}
void
-gdbio_exit()
+gdbio_exit(void)
{
gdbio_kill_target(!have_console());
if (gdbio_pid)
@@ -862,7 +862,7 @@
GPid
-gdbio_get_target_pid()
+gdbio_get_target_pid(void)
{
return target_pid;
}
Modified: geanygdb/src/gdb-io-stack.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -40,7 +40,7 @@
static void
-free_frame_list()
+free_frame_list(void)
{
GSList *p;
for (p = frame_list; p; p = p->next)
Modified: geanygdb/src/gdb-io.h
12 files changed, 6 insertions(+), 6 deletions(-)
===================================================================
@@ -116,16 +116,16 @@
void gdbio_load(const gchar * exe_name);
/* Terminate the debugger ( and the target program, if running ) */
-void gdbio_exit();
+void gdbio_exit(void);
/* Resume execution after a breakpoint or SIGINT, etc... */
-void gdbio_continue();
+void gdbio_continue(void);
/* Complete the current function */
-void gdbio_finish();
+void gdbio_finish(void);
/* Return immediately from the current function */
-void gdbio_return();
+void gdbio_return(void);
/*
Execute the previously loaded program in the debugger.
@@ -137,11 +137,11 @@
/* Send SIGINT to target */
-void gdbio_pause_target();
+void gdbio_pause_target(void);
/* Send SIGKILL to target */
-void gdbio_kill_target();
+void gdbio_kill_target(gboolean force);
/* Send a command to GDB */
Modified: geanygdb/src/gdb-lex.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -75,7 +75,7 @@
#define ID_NTH G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS "_-"
static GScanner *
-init_scanner()
+init_scanner(void)
{
GScanner *scanner = g_scanner_new(NULL);
scanner->msg_handler = scan_error;
@@ -214,7 +214,7 @@
void
-gdblx_scanner_done()
+gdblx_scanner_done(void)
{
if (scanner)
{
Modified: geanygdb/src/gdb-lex.h
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -74,4 +74,4 @@
The global scanner object is automatically intialized as soon
as it is needed, but it must be explicitly destroyed.
*/
-void gdblx_scanner_done();
+void gdblx_scanner_done(void);
Modified: geanygdb/src/gdb-ui-envir.c
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -179,7 +179,7 @@
void
-gdbui_opts_dlg()
+gdbui_opts_dlg(void)
{
GtkWidget *dlg = gtk_dialog_new_with_buttons(_("Preferences"),
GTK_WINDOW(gdbui_setup.main_window),
@@ -272,7 +272,7 @@
void
-gdbui_opts_init()
+gdbui_opts_init(void)
{
gdbui_setup.options.term_cmd = g_strdup("xterm");
gdbui_setup.options.mono_font = g_strdup(MONO_FONT);
@@ -285,7 +285,7 @@
void
-gdbui_opts_done()
+gdbui_opts_done(void)
{
g_free(gdbui_setup.options.mono_font);
gdbui_setup.options.mono_font = NULL;
Modified: geanygdb/src/gdb-ui-frame.c
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -80,12 +80,12 @@
qpush(&obj_name_queue, g_strdup(p));
}
static void
-pop_name()
+pop_name(void)
{
g_free(qpop(&obj_name_queue));
}
static gchar *
-top_name()
+top_name(void)
{
return qtop(obj_name_queue);
}
@@ -135,7 +135,7 @@
#define MORE_INFO GTK_STOCK_ZOOM_IN
static GtkWidget *
-new_info_btn()
+new_info_btn(void)
{
GtkWidget *rv;
rv = gtk_button_new_with_mnemonic(_("_Examine"));
Modified: geanygdb/src/gdb-ui-main.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1015,7 +1015,7 @@ void gdbui_create_dview(GtkWidget * parent)
#ifdef STANDALONE
static void
-quit()
+quit(void)
{
gdbio_exit();
g_printerr("\n");
Modified: geanygdb/src/gdb-ui.h
10 files changed, 5 insertions(+), 5 deletions(-)
===================================================================
@@ -48,8 +48,8 @@
typedef void (*GdbUiLineFunc) (const gchar * filename, const gchar * line, const gchar * reason);
-typedef LocationInfo *(*GdbUiLocationFunc) ();
-typedef void (*GdbUiOptsFunc) ();
+typedef LocationInfo *(*GdbUiLocationFunc) (void);
+typedef void (*GdbUiOptsFunc) (void);
@@ -76,10 +76,10 @@
GtkWidget *gdbui_new_dialog(gchar * title);
-void gdbui_opts_init();
-void gdbui_opts_done();
+void gdbui_opts_init(void);
+void gdbui_opts_done(void);
-void gdbui_opts_dlg();
+void gdbui_opts_dlg(void);
void gdbui_stack_dlg(const GSList * frame_list);
void gdbui_break_dlg(gboolean is_watch);
Modified: geanygdb/src/geanygdb.c
12 files changed, 6 insertions(+), 6 deletions(-)
===================================================================
@@ -51,7 +51,7 @@
static gchar *config_file;
-static void show_compwin()
+static void show_compwin(void)
{
gint page = gtk_notebook_page_num(msgbook, compwin);
gtk_notebook_set_current_page(msgbook, page);
@@ -122,7 +122,7 @@ static void show_compwin()
/*
static gchar *
-get_current_word()
+get_current_word(void)
{
const gchar *word_chars = NULL;
gint pos, linenum, bol, bow, eow;
@@ -170,7 +170,7 @@ static gboolean word_check_left(gchar c)
}
static gchar *
-get_current_word()
+get_current_word(void)
{
gchar *txt;
GeanyDocument *doc;
@@ -231,7 +231,7 @@ static gboolean word_check_left(gchar c)
static LocationInfo *
-location_query_cb()
+location_query_cb(void)
{
GeanyDocument *doc = document_get_current();
if (!(doc && doc->is_valid))
@@ -258,7 +258,7 @@ static gboolean word_check_left(gchar c)
static void
-update_settings_cb()
+update_settings_cb(void)
{
GKeyFile *kf = g_key_file_new();
gchar *data;
@@ -400,7 +400,7 @@ static gboolean word_check_left(gchar c)
void
-plugin_cleanup()
+plugin_cleanup(void)
{
gdbio_exit();
update_settings_cb();
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Plugins-Commits
mailing list