vala r1970 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1970 - in trunk: . gobject
- Date: Mon, 3 Nov 2008 21:44:16 +0000 (UTC)
Author: juergbi
Date: Mon Nov 3 21:44:16 2008
New Revision: 1970
URL: http://svn.gnome.org/viewvc/vala?rev=1970&view=rev
Log:
2008-11-03 JÃrg Billeter <j bitron ch>
* gobject/valaccodebasemodule.vala:
* gobject/valadbusclientmodule.vala:
Move dbus_use_ptr_array to DBusClientModule
Modified:
trunk/ChangeLog
trunk/gobject/valaccodebasemodule.vala
trunk/gobject/valadbusclientmodule.vala
Modified: trunk/gobject/valaccodebasemodule.vala
==============================================================================
--- trunk/gobject/valaccodebasemodule.vala (original)
+++ trunk/gobject/valaccodebasemodule.vala Mon Nov 3 21:44:16 2008
@@ -4193,32 +4193,6 @@
}
}
- public bool dbus_use_ptr_array (ArrayType array_type) {
- if (array_type.element_type.data_type == string_type.data_type) {
- // use char**
- return false;
- } else if (array_type.element_type.data_type == bool_type.data_type
- || array_type.element_type.data_type == char_type.data_type
- || array_type.element_type.data_type == uchar_type.data_type
- || array_type.element_type.data_type == int_type.data_type
- || array_type.element_type.data_type == uint_type.data_type
- || array_type.element_type.data_type == long_type.data_type
- || array_type.element_type.data_type == ulong_type.data_type
- || array_type.element_type.data_type == int8_type.data_type
- || array_type.element_type.data_type == uint8_type.data_type
- || array_type.element_type.data_type == int32_type.data_type
- || array_type.element_type.data_type == uint32_type.data_type
- || array_type.element_type.data_type == int64_type.data_type
- || array_type.element_type.data_type == uint64_type.data_type
- || array_type.element_type.data_type == double_type.data_type) {
- // use GArray
- return false;
- } else {
- // use GPtrArray
- return true;
- }
- }
-
public CCodeNode? get_ccodenode (CodeNode node) {
if (node.ccodenode == null) {
node.accept (codegen);
Modified: trunk/gobject/valadbusclientmodule.vala
==============================================================================
--- trunk/gobject/valadbusclientmodule.vala (original)
+++ trunk/gobject/valadbusclientmodule.vala Mon Nov 3 21:44:16 2008
@@ -476,4 +476,30 @@
return new CCodeIdentifier (data_type.data_type.get_type_id ());
}
}
+
+ public bool dbus_use_ptr_array (ArrayType array_type) {
+ if (array_type.element_type.data_type == string_type.data_type) {
+ // use char**
+ return false;
+ } else if (array_type.element_type.data_type == bool_type.data_type
+ || array_type.element_type.data_type == char_type.data_type
+ || array_type.element_type.data_type == uchar_type.data_type
+ || array_type.element_type.data_type == int_type.data_type
+ || array_type.element_type.data_type == uint_type.data_type
+ || array_type.element_type.data_type == long_type.data_type
+ || array_type.element_type.data_type == ulong_type.data_type
+ || array_type.element_type.data_type == int8_type.data_type
+ || array_type.element_type.data_type == uint8_type.data_type
+ || array_type.element_type.data_type == int32_type.data_type
+ || array_type.element_type.data_type == uint32_type.data_type
+ || array_type.element_type.data_type == int64_type.data_type
+ || array_type.element_type.data_type == uint64_type.data_type
+ || array_type.element_type.data_type == double_type.data_type) {
+ // use GArray
+ return false;
+ } else {
+ // use GPtrArray
+ return true;
+ }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]