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
This commit is contained in:
Owen Taylor 2008-11-16 21:20:26 +00:00
parent 6cb96533b9
commit c10269cf2d

View File

@ -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)
{