summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.c
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-10-25 15:20:54 +0000
committerColin Walters <walters@src.gnome.org>2008-10-25 15:20:54 +0000
commitd15f8cde47100a77189d5febb8704c0e4d736594 (patch)
tree651b1c0990dbf5ec99c77139e1a648aca63d5ec5 /giscanner/sourcescanner.c
parentc7d2a0712f6301aa670f87a98e8f217bf3c54a7a (diff)
downloadgobject-introspection-d15f8cde47100a77189d5febb8704c0e4d736594.tar.gz
Bug 557786 - support fixed size arrays
svn path=/trunk/; revision=814
Diffstat (limited to 'giscanner/sourcescanner.c')
-rw-r--r--giscanner/sourcescanner.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.c b/giscanner/sourcescanner.c
index ebdcf0d5..c7bb57e0 100644
--- a/giscanner/sourcescanner.c
+++ b/giscanner/sourcescanner.c
@@ -163,9 +163,11 @@ gi_source_pointer_new (GISourceType * base_type)
}
GISourceType *
-gi_source_array_new (void)
+gi_source_array_new (GISourceSymbol *size)
{
GISourceType *array = gi_source_type_new (CTYPE_ARRAY);
+ if (size != NULL && size->type == CSYMBOL_TYPE_CONST && size->const_int_set)
+ array->child_list = g_list_append (array->child_list, size);
return array;
}