Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 08 Jul 2012 14:48:02 Commit: 23dd34c6879b7eb74e47fd0661c904a6cbe42aa8 https://github.com/geany/geany-plugins/commit/23dd34c6879b7eb74e47fd0661c904...
Log Message: ----------- xmlsnippets: Use proper C prototypes for functions without arguments
Modified Paths: -------------- xmlsnippets/src/test-stubs.c xmlsnippets/src/test-stubs.h xmlsnippets/src/tests.c
Modified: xmlsnippets/src/test-stubs.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -31,12 +31,12 @@
GHashTable *completions;
-void test_stubs_init() +void test_stubs_init(void) { completions = g_hash_table_new(g_str_hash, g_str_equal); }
-void test_stubs_finalize() +void test_stubs_finalize(void) { g_hash_table_destroy(completions); }
Modified: xmlsnippets/src/test-stubs.h 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -29,13 +29,13 @@
extern GHashTable *completions;
-void test_stubs_init(); +void test_stubs_init(void);
const gchar *editor_find_snippet(GeanyEditor *editor, const gchar *snippet_name);
const gchar *utils_find_open_xml_tag_pos(const gchar sel[], gint size);
-void test_stubs_finalize(); +void test_stubs_finalize(void);
#endif #endif
Modified: xmlsnippets/src/tests.c 16 files changed, 8 insertions(+), 8 deletions(-) =================================================================== @@ -30,20 +30,20 @@ #include <string.h>
-static void init(); -static void finalize(); +static void init(void); +static void finalize(void); static gboolean test(gint ordinal, const gchar *input, const gchar *completion_needed); -static void fill_completions(); -static gboolean run_tests(); +static void fill_completions(void); +static gboolean run_tests(void);
-static void init() +static void init(void) { test_stubs_init(); fill_completions(); }
-static void finalize() +static void finalize(void) { test_stubs_finalize(); } @@ -97,7 +97,7 @@ static gboolean test(gint ordinal, const gchar *input, const gchar *completion_n }
-static void fill_completions() +static void fill_completions(void) { g_hash_table_insert(completions, "ai", "<a><img/></a>"); g_hash_table_insert(completions, "empty", ""); @@ -112,7 +112,7 @@ static void fill_completions() g_hash_table_insert(completions, "cursor", "<cursor%cursor%>"); }
-static gboolean run_tests() +static gboolean run_tests(void) { gboolean success = TRUE;
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).