gobject-introspection r931 - in trunk: . girepository
- From: otaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r931 - in trunk: . girepository
- Date: Sun, 16 Nov 2008 21:20:26 +0000 (UTC)
Author: otaylor
Date: Sun Nov 16 21:20:26 2008
New Revision: 931
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=931&view=rev
Log:
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
Modified:
trunk/ChangeLog
trunk/girepository/girnode.c
Modified: trunk/girepository/girnode.c
==============================================================================
--- trunk/girepository/girnode.c (original)
+++ trunk/girepository/girnode.c Sun Nov 16 21:20:26 2008
@@ -1191,7 +1191,8 @@
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 @@
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]