support cheader_filename metadata attribute for enums
authorJuerg Billeter <j@bitron.ch>
Tue, 22 Jan 2008 10:16:47 +0000 (10:16 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 22 Jan 2008 10:16:47 +0000 (10:16 +0000)
2008-01-22  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support cheader_filename metadata
  attribute for enums

svn path=/trunk/; revision=881

ChangeLog
vapigen/valagidlparser.vala

index 27cae5a..53a3e13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-01-22  Jürg Billeter  <j@bitron.ch>
 
+       * vapigen/valagidlparser.vala: support cheader_filename metadata
+         attribute for enums
+
+2008-01-22  Jürg Billeter  <j@bitron.ch>
+
        * vala/scanner.l: fix nullable types for local variables
 
 2008-01-22  Jürg Billeter  <j@bitron.ch>
index 9500480..78e2dcb 100644 (file)
@@ -725,6 +725,8 @@ public class Vala.GIdlParser : CodeVisitor {
                                var nv = attr.split ("=", 2);
                                if (nv[0] == "common_prefix") {
                                        common_prefix = eval (nv[1]);
+                               } else if (nv[0] == "cheader_filename") {
+                                       en.add_cheader_filename (eval (nv[1]));
                                } else if (nv[0] == "hidden") {
                                        if (eval (nv[1]) == "1") {
                                                return null;