[Kde-bindings] branches/work/kdebindings-smoke2

Arno Rehn kde at arnorehn.de
Thu Aug 9 15:54:25 UTC 2007


SVN commit 698221 by arnorehn:

* idType now returns a normal Index
* Initial port of Qyoto to the new Smoke (only relevant files added)

CCMAIL: kde-bindings at kde.org



 M  +5 -0      ChangeLog  
 A             csharp (directory)  
 A             csharp/qyoto (directory)  
 A             csharp/qyoto/src (directory)  
 A             csharp/qyoto/src/handlers.cpp   [License: no copyright GPL (v2+)]
 A             csharp/qyoto/src/qyoto.cpp   [License: GPL (v2+)]
 A             csharp/qyoto/src/smokeqyoto.h   [License: no copyright]
 M  +3 -6      smoke/smoke.h  


--- branches/work/kdebindings-smoke2/ChangeLog #698220:698221
@@ -1,3 +1,8 @@
+2007-08-09  Arno Rehn  <arno at arnorehn.de>
+
+	* idType now returns a normal Index
+	* Initial port of Qyoto to the new Smoke (only relevant files added)
+
 2007-07-26  Arno Rehn  <arno at arnorehn.de>
 
 	* Got rid of the ParentIndex stuff and based everything on Richard's
--- branches/work/kdebindings-smoke2/smoke/smoke.h #698220:698221
@@ -4,7 +4,6 @@
 #include <string.h>
 #include <string>
 #include <map>
-#include <iostream>
 
 /*
    Copyright (C) 2002, Ashley Winters <qaqortog at nwlink.com>
@@ -307,8 +306,8 @@
 	return (a > b) ? 1 : -1;
     }
 
-    inline ModuleIndex idType(const char *t) {
-	if(!t) return NullModuleIndex;
+    inline Index idType(const char *t) {
+	if(!t) return 0;
 	Index imax = numTypes;
 	Index imin = 0;
 	Index icur = -1;
@@ -327,9 +326,7 @@
 		imin = icur + 1;
 	}
 
-	Index idx = (!icmp) ? icur : 0;
-	ModuleIndex ret = { (!icmp) ? this : 0, idx };
-	return ret;
+	return (!icmp) ? icur : 0;
     }
 
     inline ModuleIndex idClass(const char *c, bool external = false) {



More information about the Kde-bindings mailing list