[vala] Declare base types of pointer types



commit fd4d6c70ce2150abd6e7f72063312a6c74689bda
Author: Jürg Billeter <j bitron ch>
Date:   Fri Apr 10 17:09:53 2009 +0200

    Declare base types of pointer types
---
 gobject/valaccodebasemodule.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gobject/valaccodebasemodule.vala b/gobject/valaccodebasemodule.vala
index a4e5506..b5d9c30 100644
--- a/gobject/valaccodebasemodule.vala
+++ b/gobject/valaccodebasemodule.vala
@@ -1095,6 +1095,9 @@ internal class Vala.CCodeBaseModule : CCodeModule {
 			if (error_type.error_domain != null) {
 				generate_error_domain_declaration (error_type.error_domain, decl_space);
 			}
+		} else if (type is PointerType) {
+			var pointer_type = (PointerType) type;
+			generate_type_declaration (pointer_type.base_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]