From: Owen Taylor Date: Sun, 16 Nov 2008 21:20:26 +0000 (+0000) Subject: Respect is_pointer in serialize_type() X-Git-Tag: GOBJECT_INTROSPECTION_0_6_1~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bf360cf9b695a50f4c7cdba2ae75768018a43d5;p=platform%2Fupstream%2Fgobject-introspection.git Respect is_pointer in serialize_type() Add a '*' to the serialization for the cases where we set is_pointer in the type blob we write out depending on node->is_pointer. Don't add the '*' in the cases where is_pointer is set or not set in a fixed fashion. http://bugzilla.gnome.org/show_bug.cgi?id=561087 svn path=/trunk/; revision=931 --- diff --git a/ChangeLog b/ChangeLog index 7bb958f..7165fc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2008-11-16 Owen Taylor + Bug 561087 - Respect is_pointer in serialize_type() + + Add a '*' to the serialization for the cases where we set is_pointer + in the type blob we write out depending on node->is_pointer. Don't + add the '*' in the cases where is_pointer is set or not set in a + fixed fashion. + + http://bugzilla.gnome.org/show_bug.cgi?id=561087 + +2008-11-16 Owen Taylor + Bug 560825 – Add size and alignment to typelib Include the size and alignment of structures and unions in the typelib, diff --git a/girepository/girnode.c b/girepository/girnode.c index 9f809d4..9c5cf5b 100644 --- a/girepository/girnode.c +++ b/girepository/girnode.c @@ -1191,7 +1191,8 @@ serialize_type (GIrModule *module, if (node->tag < GI_TYPE_TAG_ARRAY) { - g_string_append_printf (str, "%s", basic[node->tag]); + g_string_append_printf (str, "%s%s", basic[node->tag], + node->is_pointer ? "*" : ""); } else if (node->tag == GI_TYPE_TAG_ARRAY) { @@ -1227,7 +1228,8 @@ serialize_type (GIrModule *module, name = node->interface; } - g_string_append_printf (str, "%s", name); + g_string_append_printf (str, "%s%s", name, + node->is_pointer ? "*" : ""); } else if (node->tag == GI_TYPE_TAG_GLIST) {