[vala] Fix type declaration for static fields
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Fix type declaration for static fields
- Date: Thu, 25 Jun 2009 13:19:35 +0000 (UTC)
commit 8421e368d4bbd04b5fe5757e6e7857d5264e1aa7
Author: Jürg Billeter <j bitron ch>
Date: Thu Jun 25 15:19:09 2009 +0200
Fix type declaration for static fields
codegen/valaccodebasemodule.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index dfd11cc..23d0568 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -800,6 +800,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
return;
}
+ generate_type_declaration (f.field_type, decl_space);
+
string field_ctype = f.field_type.get_cname ();
if (f.is_volatile) {
field_ctype = "volatile " + field_ctype;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]