[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Sep 11 07:21:18 UTC 2006


SVN commit 582967 by rdale:

* Applied patches from Arno Rehn:
	* Fixed a bug in emitting signals where the arguments were being
	  wrongly copied from the C# argument array to the smoke stack
	  with an 'off by one' error.
	* A Qt.dll is now built by the makefile instead of all the sources
	  always all being compiled.

CCMAIL: kde-bindings at kde.org



 M  +9 -0      ChangeLog  
 M  +14 -14    SmokeInvocation.cs  
 M  +4 -1      makefile  


--- trunk/playground/bindings/kimono/ChangeLog #582966:582967
@@ -1,3 +1,12 @@
+2006-09-11  Richard Dale  <rdale at foton.es>
+
+	* Applied patches from Arno Rehn:
+		* Fixed a bug in emitting signals where the arguments were being
+		  wrongly copied from the C# argument array to the smoke stack
+		  with an 'off by one' error.
+		* A Qt.dll is now built by the makefile instead of all the sources
+		  always all being compiled.
+
 2006-08-24  Richard Dale  <rdale at foton.es>
 
 	* Applied patches from Arno Rehn:
--- trunk/playground/bindings/kimono/SmokeInvocation.cs #582966:582967
@@ -735,34 +735,34 @@
 				for (int i = 0; i < callMessage.ArgCount; i++) {
 					if (callMessage.Args[i] == null) {
 						unsafe {
-							stack[i+1].s_class = (IntPtr) 0;
+							stack[i].s_class = (IntPtr) 0;
 						}
 					} else if (types[i] == typeof(bool)) {
-						stack[i+1].s_bool = (bool) callMessage.Args[i];
+						stack[i].s_bool = (bool) callMessage.Args[i];
 					} else if (types[i] == typeof(sbyte)) {
-						stack[i+1].s_char = (sbyte) callMessage.Args[i];
+						stack[i].s_char = (sbyte) callMessage.Args[i];
 					} else if (types[i] == typeof(byte)) {
-						stack[i+1].s_uchar = (byte) callMessage.Args[i];
+						stack[i].s_uchar = (byte) callMessage.Args[i];
 					} else if (types[i] == typeof(short)) {
-						stack[i+1].s_short = (short) callMessage.Args[i];
+						stack[i].s_short = (short) callMessage.Args[i];
 					} else if (types[i] == typeof(ushort)) {
-						stack[i+1].s_ushort = (ushort) callMessage.Args[i];
+						stack[i].s_ushort = (ushort) callMessage.Args[i];
 					} else if (types[i] == typeof(int) || types[i].IsEnum) {
-						stack[i+1].s_int = (int) callMessage.Args[i];
+						stack[i].s_int = (int) callMessage.Args[i];
 					} else if (types[i] == typeof(uint)) {
-						stack[i+1].s_uint = (uint) callMessage.Args[i];
+						stack[i].s_uint = (uint) callMessage.Args[i];
 					} else if (types[i] == typeof(long)) {
-						stack[i+1].s_long = (long) callMessage.Args[i];
+						stack[i].s_long = (long) callMessage.Args[i];
 					} else if (types[i] == typeof(ulong)) {
-						stack[i+1].s_ulong = (ulong) callMessage.Args[i];
+						stack[i].s_ulong = (ulong) callMessage.Args[i];
 					} else if (types[i] == typeof(float)) {
-						stack[i+1].s_float = (float) callMessage.Args[i];
+						stack[i].s_float = (float) callMessage.Args[i];
 					} else if (types[i] == typeof(double)) {
-						stack[i+1].s_double = (double) callMessage.Args[i];
+						stack[i].s_double = (double) callMessage.Args[i];
 					} else if (types[i] == typeof(string)) {
-						stack[i+1].s_class = (IntPtr) GCHandle.Alloc(callMessage.Args[i]);
+						stack[i].s_class = (IntPtr) GCHandle.Alloc(callMessage.Args[i]);
 					} else {
-						stack[i+1].s_class = (IntPtr) GCHandle.Alloc(callMessage.Args[i]);
+						stack[i].s_class = (IntPtr) GCHandle.Alloc(callMessage.Args[i]);
 					}
 				}
 			}
--- trunk/playground/bindings/kimono/makefile #582966:582967
@@ -4,7 +4,7 @@
 	mcs -unsafe -debug -o doit.exe doit.cs qyoto/QFont.cs SmokeInvocation.cs
 
 hello.exe: Hello.cs SmokeInvocation.cs
-	mcs -unsafe -debug -out:hello.exe Hello.cs SmokeInvocation.cs qyoto/*.cs
+	mcs -unsafe -debug -out:hello.exe Hello.cs SmokeInvocation.cs qyoto/*.cs dbus/*.cs
 
 qstringtest.exe: QStringTest.cs SmokeInvocation.cs
 	mcs -unsafe -debug -out:qstringtest.exe QStringTest.cs SmokeInvocation.cs qyoto/*.cs
@@ -12,6 +12,9 @@
 t1.exe: t1.cs SmokeInvocation.cs
 	mcs -unsafe -debug -out:t1.exe t1.cs SmokeInvocation.cs qyoto/*.cs
 
+qyoto.dll: SmokeInvocation.cs
+	mcs -unsafe -debug -out:qyoto.dll -target:library SmokeInvocation.cs qyoto/*.cs dbus/*.cs
+
 libqyoto.so:	qyoto.cpp handlers.cpp
 	gcc -shared -o libqyoto.so \
 	-I/home/sbe/devel/svn/kde/trunk/KDE/kdebindings/smoke \



More information about the Kde-bindings mailing list