diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-03-08 05:41:45 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-08 05:41:45 +0000 |
commit | 6aac5ce82cb8dc18602b2465c07d537e0da9d9a2 (patch) | |
tree | 5f5336664c917d768f70f6f6b562546421086ef2 /gobject | |
parent | 0fa2c2b3662e253bc3f85bfac7fc81b50e487496 (diff) |
Define G_GNUC_NULL_TERMINATED. (#164706, Marc Meissner)
2005-03-08 Matthias Clasen <mclasen@redhat.com>
* glib/gmacros.h: Define G_GNUC_NULL_TERMINATED.
(#164706, Marc Meissner)
* glib/gstrfuncs.h:
* glib/gfileutils.h: Use G_GNUC_NULL_TERMINATED where
appropriate.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/ChangeLog | 3 | ||||
-rw-r--r-- | gobject/gobject.h | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 47aaf02db..50eb694f9 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,5 +1,8 @@ 2005-03-08 Matthias Clasen <mclasen@redhat.com> + * gobject.h: Use G_GNUC_NULL_TERMINATED where + appropriate. (#164706, Marc Meissner) + * gvaluearray.h: Small cleanup (use G_BEGIN/END_DECLS). (#168474, Fabricio Barros Cabral) diff --git a/gobject/gobject.h b/gobject/gobject.h index 6522a0087..f3935ca9e 100644 --- a/gobject/gobject.h +++ b/gobject/gobject.h @@ -131,7 +131,7 @@ GParamSpec**g_object_interface_list_properties (gpointer g_iface, gpointer g_object_new (GType object_type, const gchar *first_property_name, - ...); + ...) G_GNUC_NULL_TERMINATED; gpointer g_object_newv (GType object_type, guint n_parameters, GParameter *parameters); @@ -140,16 +140,16 @@ GObject* g_object_new_valist (GType object_type, va_list var_args); void g_object_set (gpointer object, const gchar *first_property_name, - ...); + ...) G_GNUC_NULL_TERMINATED; void g_object_get (gpointer object, const gchar *first_property_name, - ...); + ...) G_GNUC_NULL_TERMINATED; gpointer g_object_connect (gpointer object, const gchar *signal_spec, - ...); + ...) G_GNUC_NULL_TERMINATED; void g_object_disconnect (gpointer object, const gchar *signal_spec, - ...); + ...) G_GNUC_NULL_TERMINATED; void g_object_set_valist (GObject *object, const gchar *first_property_name, va_list var_args); |