2008-11-16 Owen Taylor <otaylor@redhat.com>
+ 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 <otaylor@redhat.com>
+
Bug 560825 – Add size and alignment to typelib
Include the size and alignment of structures and unions in the typelib,
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)
{
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)
{