Always use proper functions argument lists

This commit is contained in:
Colomban Wendling 2013-11-10 01:41:01 +01:00
parent 39fa004619
commit 1f2279aefe
13 changed files with 20 additions and 20 deletions

View File

@ -654,7 +654,7 @@ static gboolean show_save_as_gtk(GeanyDocument *doc)
*
* @return @c TRUE if the file was saved, otherwise @c FALSE.
**/
gboolean dialogs_show_save_as()
gboolean dialogs_show_save_as(void)
{
GeanyDocument *doc = document_get_current();
gboolean result = FALSE;
@ -864,7 +864,7 @@ on_font_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
/* This shows the font selection dialog to choose a font. */
void dialogs_show_open_font()
void dialogs_show_open_font(void)
{
#ifdef G_OS_WIN32
win32_show_font_dialog();

View File

@ -266,13 +266,13 @@ GeanyDocument *document_get_current(void)
}
void document_init_doclist()
void document_init_doclist(void)
{
documents_array = g_ptr_array_new();
}
void document_finalize()
void document_finalize(void)
{
guint i;

View File

@ -3974,7 +3974,7 @@ void editor_indentation_by_one_space(GeanyEditor *editor, gint pos, gboolean dec
}
void editor_finalize()
void editor_finalize(void)
{
scintilla_release_resources();
}

View File

@ -646,7 +646,7 @@ static void init_custom_filetypes(const gchar *path)
/* Create the filetypes array and fill it with the known filetypes.
* Warning: GTK isn't necessarily initialized yet. */
void filetypes_init_types()
void filetypes_init_types(void)
{
filetype_id ft_id;
gchar *f;
@ -761,7 +761,7 @@ static void create_set_filetype_menu(void)
}
void filetypes_init()
void filetypes_init(void)
{
GSList *node;

View File

@ -451,7 +451,7 @@ static void set_sci_style(ScintillaObject *sci, guint style, guint ft_id, guint
}
void highlighting_free_styles()
void highlighting_free_styles(void)
{
guint i;

View File

@ -907,7 +907,7 @@ static GtkWidget *create_dialog(void)
}
static void key_dialog_show_prefs()
static void key_dialog_show_prefs(void)
{
GtkWidget *wid;

View File

@ -1236,7 +1236,7 @@ static void queue_free(GQueue *queue)
}
void main_quit()
void main_quit(void)
{
geany_debug("Quitting...");

View File

@ -50,7 +50,7 @@ static GtkAction *navigation_buttons[2];
void navqueue_init()
void navqueue_init(void)
{
navigation_queue = g_queue_new();
nav_queue_pos = 0;
@ -63,7 +63,7 @@ void navqueue_init()
}
void navqueue_free()
void navqueue_free(void)
{
while (! g_queue_is_empty(navigation_queue))
{
@ -184,7 +184,7 @@ static gboolean goto_file_pos(const gchar *file, gint pos)
}
void navqueue_go_back()
void navqueue_go_back(void)
{
filepos *fprev;
@ -208,7 +208,7 @@ void navqueue_go_back()
}
void navqueue_go_forward()
void navqueue_go_forward(void)
{
filepos *fnext;

View File

@ -534,7 +534,7 @@ static gboolean notebook_tab_bar_click_cb(GtkWidget *widget, GdkEventButton *eve
}
void notebook_init()
void notebook_init(void)
{
g_signal_connect_after(main_widgets.notebook, "button-press-event",
G_CALLBACK(notebook_tab_bar_click_cb), NULL);
@ -561,7 +561,7 @@ void notebook_free(void)
}
static void setup_tab_dnd()
static void setup_tab_dnd(void)
{
GtkWidget *notebook = main_widgets.notebook;

View File

@ -53,7 +53,7 @@ static char *br_last_value = (char*)NULL;
static void
br_free_last_value ()
br_free_last_value (void)
{
if (br_last_value)
free (br_last_value);

View File

@ -529,7 +529,7 @@ void sidebar_openfiles_update(GeanyDocument *doc)
}
void sidebar_openfiles_update_all()
void sidebar_openfiles_update_all(void)
{
guint i;

View File

@ -800,7 +800,7 @@ static FILE *open_std_handle(DWORD handle, const char *mode)
}
static void debug_setup_console()
static void debug_setup_console(void)
{
static const WORD MAX_CONSOLE_LINES = 500;
CONSOLE_SCREEN_BUFFER_INFO coninfo;

View File

@ -91,7 +91,7 @@ void tm_workspace_free(gpointer workspace)
}
}
const TMWorkspace *tm_get_workspace()
const TMWorkspace *tm_get_workspace(void)
{
if (NULL == theWorkspace)
tm_create_workspace();