From ffc0bc9c264742ef951be0f32ae184c69fd5e80e Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Mon, 20 Aug 2007 20:00:35 +0000 Subject: [PATCH] support cheader_filename attribute, fixes bug 464988 2007-08-20 Juerg Billeter * vala/valafield.vala: support cheader_filename attribute, fixes bug 464988 svn path=/trunk/; revision=488 --- ChangeLog | 5 +++++ vala/valafield.vala | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1e38389..b428228 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-08-20 Jürg Billeter + * vala/valafield.vala: support cheader_filename attribute, + fixes bug 464988 + +2007-08-20 Jürg Billeter + * ccode/valaccodedeclaration.vala, ccode/valaccodemodifiers.vala, gobject/valacodegenerator.vala: fix initialization of external variables diff --git a/vala/valafield.vala b/vala/valafield.vala index 5e3e8d7..8c9c4da 100644 --- a/vala/valafield.vala +++ b/vala/valafield.vala @@ -115,6 +115,12 @@ public class Vala.Field : Member, Invokable, Lockable { if (a.has_argument ("cname")) { set_cname (a.get_string ("cname")); } + if (a.has_argument ("cheader_filename")) { + var val = a.get_string ("cheader_filename"); + foreach (string filename in val.split (",")) { + add_cheader_filename (filename); + } + } } /** -- 2.7.4