Revision: 911 http://svn.sourceforge.net/geany/?rev=911&view=rev Author: ntrel Date: 2006-10-21 04:01:34 -0700 (Sat, 21 Oct 2006)
Log Message: ----------- Add G_GNUC_PRINTF checks for variable argument function prototypes.
Modified Paths: -------------- trunk/ChangeLog trunk/src/dialogs.h trunk/src/main.h trunk/src/msgwindow.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-10-21 11:00:37 UTC (rev 910) +++ trunk/ChangeLog 2006-10-21 11:01:34 UTC (rev 911) @@ -4,8 +4,12 @@ Make search bar automatically wraparound if necessary. Detect when Find has searched all text and display a 'not found' message on the status bar. + * src/build.c: Remove unused argument. + * src/callbacks.c, src/document.c, src/document.h: + Rename document_find_next() document_search_bar_find(). + * src/msgwindow.h, src/dialogs.h, src/main.h: + Add G_GNUC_PRINTF checks for variable argument function prototypes.
- 2006-10-20 Nick Treleaven nick.treleaven@btinternet.com
* src/interface.c, src/main.c, geany.glade:
Modified: trunk/src/dialogs.h =================================================================== --- trunk/src/dialogs.h 2006-10-21 11:00:37 UTC (rev 910) +++ trunk/src/dialogs.h 2006-10-21 11:01:34 UTC (rev 911) @@ -30,9 +30,9 @@ /* This shows the file selection dialog to save a file. */ void dialogs_show_save_as();
-void dialogs_show_info(const gchar *text, ...); +void dialogs_show_info(const gchar *text, ...) G_GNUC_PRINTF (1, 2);
-void dialogs_show_error(const gchar *text, ...); +void dialogs_show_error(const gchar *text, ...) G_GNUC_PRINTF (1, 2);
gboolean dialogs_show_unsaved_file(gint idx);
@@ -54,11 +54,11 @@
void dialogs_show_file_properties(gint idx);
-gboolean dialogs_show_question(const gchar *text, ...); +gboolean dialogs_show_question(const gchar *text, ...) G_GNUC_PRINTF (1, 2);
/* extra_text can be NULL; otherwise it is displayed below main_text. */ gboolean dialogs_show_question_full(const gchar *yes_btn, const gchar *no_btn, - const gchar *extra_text, const gchar *main_text, ...); + const gchar *extra_text, const gchar *main_text, ...) G_GNUC_PRINTF (4, 5);
void dialogs_show_keyboard_shortcuts();
Modified: trunk/src/main.h =================================================================== --- trunk/src/main.h 2006-10-21 11:00:37 UTC (rev 910) +++ trunk/src/main.h 2006-10-21 11:01:34 UTC (rev 911) @@ -34,7 +34,7 @@ extern CommandLineOptions cl_options;
-void geany_debug(gchar const *format, ...); +void geany_debug(gchar const *format, ...) G_GNUC_PRINTF (1, 2);
gchar *get_argv_filename(const gchar *filename);
Modified: trunk/src/msgwindow.h =================================================================== --- trunk/src/msgwindow.h 2006-10-21 11:00:37 UTC (rev 910) +++ trunk/src/msgwindow.h 2006-10-21 11:01:34 UTC (rev 911) @@ -67,9 +67,10 @@
void msgwin_msg_add(gint line, gint idx, gchar *string);
-void msgwin_compiler_add(gint msg_color, gboolean scroll, gchar const *format, ...); +void msgwin_compiler_add(gint msg_color, gboolean scroll, gchar const *format, ...) + G_GNUC_PRINTF (3, 4);
-void msgwin_status_add(gchar const *format, ...); +void msgwin_status_add(gchar const *format, ...) G_GNUC_PRINTF (1, 2);
GtkWidget *msgwin_create_message_popup_menu(gint type);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.