mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
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:
parent
6cb96533b9
commit
c10269cf2d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user