From: Matthias Clasen Date: Thu, 19 Jun 2008 05:21:29 +0000 (+0000) Subject: Annotate functions X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=cbf3cb02a85d9e303b1eb95322a7f8e1a1d7d96a;p=dana%2Fcg-glib.git Annotate functions svn path=/trunk/; revision=7059 --- diff --git a/ChangeLog b/ChangeLog index 75c54411..67aa18f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-06-19 Matthias Clasen + + 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 Bug 539067 – The document g_io_channel_win32_new_fd() says that "Your diff --git a/glib/glib.symbols b/glib/glib.symbols index 305db1d9..db14b7c8 100644 --- a/glib/glib.symbols +++ b/glib/glib.symbols @@ -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 diff --git a/glib/gstrfuncs.h b/glib/gstrfuncs.h index 4875517b..8f53e8ea 100644 --- a/glib/gstrfuncs.h +++ b/glib/gstrfuncs.h @@ -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