summaryrefslogtreecommitdiff
path: root/giscanner/scannerparser.y
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/scannerparser.y
parentc7d2a0712f6301aa670f87a98e8f217bf3c54a7a (diff)
downloadgobject-introspection-d15f8cde47100a77189d5febb8704c0e4d736594.tar.gz
Bug 557786 - support fixed size arrays
svn path=/trunk/; revision=814
Diffstat (limited to 'giscanner/scannerparser.y')
-rw-r--r--giscanner/scannerparser.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y
index e3ca20e2..64cf11b3 100644
--- a/giscanner/scannerparser.y
+++ b/giscanner/scannerparser.y
@@ -923,12 +923,12 @@ direct_declarator
| direct_declarator '[' assignment_expression ']'
{
$$ = $1;
- gi_source_symbol_merge_type ($$, gi_source_array_new ());
+ gi_source_symbol_merge_type ($$, gi_source_array_new ($3));
}
| direct_declarator '[' ']'
{
$$ = $1;
- gi_source_symbol_merge_type ($$, gi_source_array_new ());
+ gi_source_symbol_merge_type ($$, gi_source_array_new (NULL));
}
| direct_declarator '(' parameter_list ')'
{
@@ -1059,22 +1059,22 @@ direct_abstract_declarator
| '[' ']'
{
$$ = gi_source_symbol_new (CSYMBOL_TYPE_INVALID);
- gi_source_symbol_merge_type ($$, gi_source_array_new ());
+ gi_source_symbol_merge_type ($$, gi_source_array_new (NULL));
}
| '[' assignment_expression ']'
{
$$ = gi_source_symbol_new (CSYMBOL_TYPE_INVALID);
- gi_source_symbol_merge_type ($$, gi_source_array_new ());
+ gi_source_symbol_merge_type ($$, gi_source_array_new ($2));
}
| direct_abstract_declarator '[' ']'
{
$$ = $1;
- gi_source_symbol_merge_type ($$, gi_source_array_new ());
+ gi_source_symbol_merge_type ($$, gi_source_array_new (NULL));
}
| direct_abstract_declarator '[' assignment_expression ']'
{
$$ = $1;
- gi_source_symbol_merge_type ($$, gi_source_array_new ());
+ gi_source_symbol_merge_type ($$, gi_source_array_new ($3));
}
| '(' ')'
{