[vala] dova: Fix cname of null type



commit d3638625c7a5c7bb4c801906899e11c0a74e3b5b
Author: Jürg Billeter <j bitron ch>
Date:   Fri Jul 23 10:48:58 2010 +0200

    dova: Fix cname of null type

 vala/valanulltype.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/vala/valanulltype.vala b/vala/valanulltype.vala
index ca2bce6..fdba4a7 100644
--- a/vala/valanulltype.vala
+++ b/vala/valanulltype.vala
@@ -1,6 +1,6 @@
 /* valanulltype.vala
  *
- * Copyright (C) 2007-2009  Jürg Billeter
+ * Copyright (C) 2007-2010  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
@@ -63,7 +63,11 @@ public class Vala.NullType : ReferenceType {
 	}
 
 	public override string? get_cname () {
-		return "gpointer";
+		if (CodeContext.get ().profile == Profile.GOBJECT) {
+			return "gpointer";
+		} else {
+			return "void *";
+		}
 	}
 
 	public override bool is_disposable () {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]