[vala/wip/attributes] fixup! Drop C specific methods from the code tree
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/attributes] fixup! Drop C specific methods from the code tree
- Date: Mon, 1 Aug 2011 14:27:14 +0000 (UTC)
commit 08e0298e8295f73062b1c000d5c4aa02a81b79e5
Author: JÃrg Billeter <j bitron ch>
Date: Mon Aug 1 16:26:43 2011 +0200
fixup! Drop C specific methods from the code tree
codegen/valaccodeattribute.vala | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valaccodeattribute.vala b/codegen/valaccodeattribute.vala
index d8a3dd7..b28e968 100644
--- a/codegen/valaccodeattribute.vala
+++ b/codegen/valaccodeattribute.vala
@@ -593,11 +593,15 @@ public class Vala.CCodeAttribute : AttributeCache {
} else if (node is ErrorType) {
return "GError*";
} else if (node is GenericType) {
- var type = (GenericType) node;
- if (type.value_owned) {
- return "gpointer";
+ if (CodeContext.get ().profile == Profile.GOBJECT) {
+ var type = (GenericType) node;
+ if (type.value_owned) {
+ return "gpointer";
+ } else {
+ return "gconstpointer";
+ }
} else {
- return "gconstpointer";
+ return "void *";
}
} else if (node is MethodType) {
return "gpointer";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]