mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Bug 557786 - support fixed size arrays
svn path=/trunk/; revision=814
This commit is contained in:
parent
d9ab34b17c
commit
2d1e6e2c5c
@ -217,16 +217,19 @@ write_type_info (const gchar *namespace,
|
||||
}
|
||||
else if (tag == GI_TYPE_TAG_ARRAY)
|
||||
{
|
||||
gint length;
|
||||
|
||||
gint length, size;
|
||||
|
||||
xml_start_element (file, "array");
|
||||
|
||||
type = g_type_info_get_param_type (info, 0);
|
||||
|
||||
length = g_type_info_get_array_length (info);
|
||||
|
||||
if (length >= 0)
|
||||
xml_printf (file, " length=\"%d\"", length);
|
||||
xml_printf (file, " length=\"%d\"", length);
|
||||
|
||||
size = g_type_info_get_array_fixed_size (info);
|
||||
if (size >= 0)
|
||||
xml_printf (file, " fixed-size=\"%d\"", size);
|
||||
|
||||
if (g_type_info_is_zero_terminated (info))
|
||||
xml_printf (file, " zero-terminated=\"1\"");
|
||||
|
Loading…
Reference in New Issue
Block a user