[vala] Declare element types of arrays
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Declare element types of arrays
- Date: Tue, 31 Mar 2009 11:31:03 -0400 (EDT)
commit eb877fe0f29c7f22affedde0ffb92bd9216c3237
Author: Jürg Billeter <j bitron ch>
Date: Tue Mar 31 17:30:22 2009 +0200
Declare element types of arrays
---
gobject/valaccodebasemodule.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gobject/valaccodebasemodule.vala b/gobject/valaccodebasemodule.vala
index f7803c9..4cbccb5 100644
--- a/gobject/valaccodebasemodule.vala
+++ b/gobject/valaccodebasemodule.vala
@@ -1077,6 +1077,9 @@ internal class Vala.CCodeBaseModule : CCodeModule {
} else if (type is StructValueType) {
var struct_type = (StructValueType) type;
generate_struct_declaration ((Struct) struct_type.type_symbol, decl_space);
+ } else if (type is ArrayType) {
+ var array_type = (ArrayType) type;
+ generate_type_declaration (array_type.element_type, decl_space);
}
foreach (DataType type_arg in type.get_type_arguments ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]