From: Juerg Billeter Date: Mon, 9 Jul 2007 04:53:32 +0000 (+0000) Subject: support # modifier to transfer ownership in method parameters X-Git-Tag: VALA_0_1_0~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e0a98102277c7966bddaab21941ec8a123101d6;p=platform%2Fupstream%2Fvala.git support # modifier to transfer ownership in method parameters 2007-07-09 Juerg Billeter * vala/parser.y: support # modifier to transfer ownership in method parameters svn path=/trunk/; revision=331 --- diff --git a/ChangeLog b/ChangeLog index 741806b..f6ca8f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-09 Jürg Billeter + + * vala/parser.y: support # modifier to transfer ownership in method + parameters + 2007-07-05 Jürg Billeter * vapi/glib-2.0.vala: fix TimeVal binding diff --git a/vala/parser.y b/vala/parser.y index a802165..56016fe 100644 --- a/vala/parser.y +++ b/vala/parser.y @@ -509,6 +509,15 @@ type vala_type_reference_set_non_null ($$, TRUE); } } + | type_name opt_rank_specifier opt_op_neg HASH + { + $$ = $1; + vala_type_reference_set_is_ref ($$, TRUE); + vala_type_reference_set_array_rank ($$, $2); + if ($3) { + vala_type_reference_set_non_null ($$, TRUE); + } + } | REF type_name opt_rank_specifier opt_op_neg { $$ = $2;