From: Juerg Billeter Date: Sat, 1 Mar 2008 14:42:39 +0000 (+0000) Subject: support cheader_filename metadata attribute for delegates X-Git-Tag: VALA_0_1_7~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e98428777896cbfeb41229538d6e5ab0621fa2e6;p=platform%2Fupstream%2Fvala.git support cheader_filename metadata attribute for delegates 2008-03-01 Juerg Billeter * vapigen/valagidlparser.vala: support cheader_filename metadata attribute for delegates svn path=/trunk/; revision=1077 --- diff --git a/ChangeLog b/ChangeLog index 923dbe6..9554026 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-03-01 Jürg Billeter + * vapigen/valagidlparser.vala: support cheader_filename metadata + attribute for delegates + +2008-03-01 Jürg Billeter + * vapi/atk.vapi, vapi/gconf-2.0.vapi, vapi/gdk-2.0.vapi, vapi/gdk-pixbuf-2.0.vapi, vapi/gnet-2.0.vapi, vapi/gnome-vfs-2.0.vapi, vapi/gstreamer-0.10.vapi, vapi/gstreamer-audio-0.10.vapi, diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 2c232c2..ea210bb 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -278,6 +278,9 @@ public class Vala.GIdlParser : CodeVisitor { private Delegate parse_delegate (IdlNodeFunction! f_node) { weak IdlNode node = (IdlNode) f_node; + + var cb = new Delegate (node.name, parse_param (f_node.result), current_source_reference); + cb.access = SymbolAccessibility.PUBLIC; var attributes = get_attributes (node.name); if (attributes != null) { @@ -287,13 +290,12 @@ public class Vala.GIdlParser : CodeVisitor { if (eval (nv[1]) == "1") { return null; } + } else if (nv[0] == "cheader_filename") { + cb.add_cheader_filename (eval (nv[1])); } } } - - var cb = new Delegate (node.name, parse_param (f_node.result), current_source_reference); - cb.access = SymbolAccessibility.PUBLIC; - + foreach (weak IdlNodeParam param in f_node.parameters) { weak IdlNode param_node = (IdlNode) param;