From: Juerg Billeter Date: Sat, 24 Nov 2007 15:31:19 +0000 (+0000) Subject: fix is_out support for parameters X-Git-Tag: VALA_0_1_5~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4461dcc6044cd60fa4cdaea44ee52911b919c28;p=platform%2Fupstream%2Fvala.git fix is_out support for parameters 2007-11-24 Juerg Billeter * vapigen/valagidlparser.vala: fix is_out support for parameters svn path=/trunk/; revision=717 --- diff --git a/ChangeLog b/ChangeLog index fa9802e..9170bda 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-11-24 Jürg Billeter + * vapigen/valagidlparser.vala: fix is_out support for parameters + +2007-11-24 Jürg Billeter + * vapigen/valagidlparser.vala: support is_out for parameters in the metadata diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 251ba6f..31ce76e 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -1072,10 +1072,6 @@ public class Vala.GIdlParser : CodeVisitor { return_type.array_rank = 1; return_type.is_out = false; } - } else if (nv[0] == "is_out") { - if (eval (nv[1]) == "1") { - return_type.is_out = true; - } } } } @@ -1115,8 +1111,14 @@ public class Vala.GIdlParser : CodeVisitor { foreach (string attr in attributes) { var nv = attr.split ("=", 2); if (nv[0] == "is_array") { - p.type_reference.array_rank = 1; - p.type_reference.is_out = false; + if (eval (nv[1]) == "1") { + p.type_reference.array_rank = 1; + p.type_reference.is_out = false; + } + } else if (nv[0] == "is_out") { + if (eval (nv[1]) == "1") { + p.type_reference.is_out = true; + } } } }