[geany/geany-plugins] 4c69a9: codenav: Use proper C prototypes
Colomban Wendling
git-noreply at xxxxx
Mon Jun 4 23:10:06 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 04 Jun 2012 23:10:06
Commit: 4c69a9c6b0e0fd382e6d41358d408de46a5b1cea
https://github.com/geany/geany-plugins/commit/4c69a9c6b0e0fd382e6d41358d408de46a5b1cea
Log Message:
-----------
codenav: Use proper C prototypes
Modified Paths:
--------------
codenav/src/codenavigation.h
codenav/src/goto_file.c
codenav/src/goto_file.h
codenav/src/switch_head_impl.c
codenav/src/switch_head_impl.h
Modified: codenav/src/codenavigation.h
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -65,7 +65,7 @@ static void log_debug(const gchar* s, ...)
#define log_func() g_print("[CODENAV FUNC] : %s", G_STRFUNC)
#else
static void log_debug(const gchar* s, ...) {}
-static void log_func() {}
+#define log_func() {}
#endif
/* IDs for keybindings */
Modified: codenav/src/goto_file.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -45,7 +45,7 @@
* ---------------------------------------------------------------------
*/
void
-goto_file_init()
+goto_file_init(void)
{
GtkWidget* edit_menu;
@@ -77,7 +77,7 @@
* ---------------------------------------------------------------------
*/
void
-goto_file_cleanup()
+goto_file_cleanup(void)
{
log_func();
Modified: codenav/src/goto_file.h
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -27,10 +27,10 @@
/* Initialization */
void
-goto_file_init();
+goto_file_init(void);
/* Cleanup */
void
-goto_file_cleanup();
+goto_file_cleanup(void);
#endif /* GOTO_FILE_H */
Modified: codenav/src/switch_head_impl.c
10 files changed, 5 insertions(+), 5 deletions(-)
===================================================================
@@ -54,7 +54,7 @@
/********************** Functions for the feature *********************/
static void
-fill_default_languages_list();
+fill_default_languages_list(void);
static void
menu_item_activate(guint key_id);
@@ -73,7 +73,7 @@
* ---------------------------------------------------------------------
*/
void
-switch_head_impl_init()
+switch_head_impl_init(void)
{
GtkWidget* edit_menu;
@@ -108,7 +108,7 @@
* ---------------------------------------------------------------------
*/
void
-switch_head_impl_cleanup()
+switch_head_impl_cleanup(void)
{
GSList* iter = NULL;
@@ -136,7 +136,7 @@
* ---------------------------------------------------------------------
*/
static void
-fill_default_languages_list()
+fill_default_languages_list(void)
{
Language* lang = NULL;
@@ -445,7 +445,7 @@
/* ----- Finally, the configuration widget ----- */
GtkWidget*
-switch_head_impl_config_widget()
+switch_head_impl_config_widget(void)
{
GtkWidget *frame, *vbox, *tree_view;
GtkWidget *hbox_buttons, *add_button, *remove_button;
Modified: codenav/src/switch_head_impl.h
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -27,15 +27,15 @@
/* Initialization */
void
-switch_head_impl_init();
+switch_head_impl_init(void);
/* Cleanup */
void
-switch_head_impl_cleanup();
+switch_head_impl_cleanup(void);
/* Configuration widget */
GtkWidget*
-switch_head_impl_config_widget();
+switch_head_impl_config_widget(void);
/* Write the configuration of the feature */
void
@@ 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