Annotate functions
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 19 Jun 2008 05:21:29 +0000 (05:21 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 19 Jun 2008 05:21:29 +0000 (05:21 +0000)
svn path=/trunk/; revision=7059

ChangeLog
glib/glib.symbols
glib/gstrfuncs.h

index 75c5441..67aa18f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2008-06-19  Matthias Clasen  <mclasen@redhat.com>
 
+       Bug 535949 – annotate g_strip_context and g_dpgettext with
+       G_GNUC_FORMAT
+
+       * glib/gstrfuncs.h:
+       * glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT.
+       Patch by Christian Persch
+
+2008-06-19  Matthias Clasen  <mclasen@redhat.com>
+
        Bug 539067 – The document g_io_channel_win32_new_fd() says that "Your
        code should call only g_io_channel_read()." but gio_channel_read() is
        deprecated
index 305db1d..db14b7c 100644 (file)
@@ -1148,10 +1148,10 @@ g_strup
 g_strdown
 #endif
 g_strv_length
-g_strip_context
+g_strip_context G_GNUC_FORMAT(1)
 g_dgettext
 g_dngettext
-g_dpgettext
+g_dpgettext G_GNUC_FORMAT(2)
 #endif
 #endif
 
index 4875517..8f53e8e 100644 (file)
@@ -245,7 +245,7 @@ gchar*                g_stpcpy         (gchar        *dest,
                                         const char   *src);
 
 G_CONST_RETURN gchar *g_strip_context  (const gchar *msgid, 
-                                       const gchar *msgval);
+                                       const gchar *msgval) G_GNUC_FORMAT(1);
 
 G_CONST_RETURN gchar *g_dgettext       (const gchar *domain,
                                        const gchar *msgid);
@@ -256,7 +256,7 @@ G_CONST_RETURN gchar *g_dngettext      (const gchar *domain,
                                        gulong       n);
 G_CONST_RETURN gchar *g_dpgettext      (const gchar *domain,
                                         const gchar *msgctxtid,
-                                        gsize        msgidoffset);
+                                        gsize        msgidoffset) G_GNUC_FORMAT(2);
 
 G_END_DECLS