From 932272884c8fbdbed70c5a69dc408ece5044a527 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 1 Aug 2005 16:07:19 +0000 Subject: 2005-08-01 Colin Walters Patch from Joe Markus Clarke: * glib/dbus-gvalue.c (dbus_g_value_types_init): * glib/dbus-gvalue-utils.c (dbus_g_type_specialized_builtins_init) * glib/dbus-gobject.c (write_interface): Don't use C99 style initializers (bug #3933). --- ChangeLog | 10 ++++++++++ glib/dbus-gobject.c | 2 +- glib/dbus-gvalue-utils.c | 7 +++---- glib/dbus-gvalue.c | 8 ++++---- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index c434f547..69956bc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-08-01 Colin Walters + + Patch from Joe Markus Clarke: + + * glib/dbus-gvalue.c (dbus_g_value_types_init): + * glib/dbus-gvalue-utils.c (dbus_g_type_specialized_builtins_init) + * glib/dbus-gobject.c (write_interface): + + Don't use C99 style initializers (bug #3933). + 2005-07-31 Havoc Pennington * tools/dbus-viewer.c (load_child_nodes): fix invocation of diff --git a/glib/dbus-gobject.c b/glib/dbus-gobject.c index e6ef38db..9fddf5fe 100644 --- a/glib/dbus-gobject.c +++ b/glib/dbus-gobject.c @@ -373,8 +373,8 @@ write_interface (gpointer key, gpointer val, gpointer user_data) for (; methods; methods = methods->next) { DBusGMethodInfo *method; - method = methods->data; const char *args; + method = methods->data; g_string_append_printf (xml, " \n", method_name_from_object_info (object_info, method)); diff --git a/glib/dbus-gvalue-utils.c b/glib/dbus-gvalue-utils.c index af2fff19..04afaee2 100644 --- a/glib/dbus-gvalue-utils.c +++ b/glib/dbus-gvalue-utils.c @@ -855,7 +855,6 @@ dbus_g_type_specialized_builtins_init (void) NULL }; - dbus_g_type_register_collection ("GArray", &array_vtable, 0); static const DBusGTypeSpecializedCollectionVtable ptrarray_vtable = { { @@ -869,7 +868,6 @@ dbus_g_type_specialized_builtins_init (void) NULL, }; - dbus_g_type_register_collection ("GPtrArray", &ptrarray_vtable, 0); static const DBusGTypeSpecializedCollectionVtable slist_vtable = { { @@ -883,8 +881,6 @@ dbus_g_type_specialized_builtins_init (void) slist_end_append, }; - dbus_g_type_register_collection ("GSList", &slist_vtable, 0); - static const DBusGTypeSpecializedMapVtable hashtable_vtable = { { hashtable_constructor, @@ -898,6 +894,9 @@ dbus_g_type_specialized_builtins_init (void) hashtable_append }; + dbus_g_type_register_collection ("GSList", &slist_vtable, 0); + dbus_g_type_register_collection ("GArray", &array_vtable, 0); + dbus_g_type_register_collection ("GPtrArray", &ptrarray_vtable, 0); dbus_g_type_register_map ("GHashTable", &hashtable_vtable, 0); } diff --git a/glib/dbus-gvalue.c b/glib/dbus-gvalue.c index 2570f2a6..282b3747 100644 --- a/glib/dbus-gvalue.c +++ b/glib/dbus-gvalue.c @@ -189,6 +189,10 @@ dbus_g_value_types_init (void) { static gboolean types_initialized; + static const DBusGTypeMarshalVtable basic_vtable = { + marshal_basic, + demarshal_basic + }; if (types_initialized) return; @@ -196,10 +200,6 @@ dbus_g_value_types_init (void) dbus_g_type_specialized_init (); dbus_g_type_specialized_builtins_init (); - static const DBusGTypeMarshalVtable basic_vtable = { - marshal_basic, - demarshal_basic - }; /* Register basic types */ { -- cgit v1.2.3