summaryrefslogtreecommitdiff
path: root/ccode/valaccodefragment.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2007-05-10 11:33:08 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-05-10 11:33:08 +0000
commit0899abe8173717f18a972f6e55b45dcea6eb9071 (patch)
treebbb7fa8cb2d05b92bd2a44834c606b80a66b8060 /ccode/valaccodefragment.vala
parent8e156af4e4c740b9c62f59768a2f72870d997fa6 (diff)
downloadvala-0899abe8173717f18a972f6e55b45dcea6eb9071.tar.gz
separate declaration output remove comma at end of enum remove unused
2007-05-10 Jürg Billeter <j@bitron.ch> * ccode/valaccodeblock.vala, ccode/valaccodedeclaration.vala, ccode/valaccodedeclarator.vala, ccode/valaccodefragment.vala, ccode/valaccodefunctiondeclarator.vala, ccode/valaccodenode.vala, ccode/valaccodeoncesection.vala, ccode/valaccodestruct.vala, ccode/valaccodetypedefinition.vala, ccode/valaccodevariabledeclarator.vala: separate declaration output * vala/parser.y: remove comma at end of enum * vala/valaclass.vala, vala/valastruct.vala: remove unused methods * vala/Makefile.am: update * gobject/valacodegeneratorsourcefile.vala: support declaration separation in C code * gobject/valaclassregisterfunction.vala, gobject/valainterfaceregisterfunction.vala, gobject/valatyperegisterfunction.vala: move from vala directory, move interface info declarations to the beginning of the block * gobject/Makefile.am: update svn path=/trunk/; revision=315
Diffstat (limited to 'ccode/valaccodefragment.vala')
-rw-r--r--ccode/valaccodefragment.vala8
1 files changed, 7 insertions, 1 deletions
diff --git a/ccode/valaccodefragment.vala b/ccode/valaccodefragment.vala
index ef578b0d3..6f2e05bbf 100644
--- a/ccode/valaccodefragment.vala
+++ b/ccode/valaccodefragment.vala
@@ -1,6 +1,6 @@
/* valaccodefragment.vala
*
- * Copyright (C) 2006 Jürg Billeter
+ * Copyright (C) 2006-2007 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -51,4 +51,10 @@ public class Vala.CCodeFragment : CCodeNode {
node.write (writer);
}
}
+
+ public override void write_declaration (CCodeWriter! writer) {
+ foreach (CCodeNode node in children) {
+ node.write_declaration (writer);
+ }
+ }
}