Gentoo Archives: gentoo-commits

From: "Theo Chatzimichos (tampakrap)" <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/pykde4/files: pykde4-mapped-type-fix.patch
Date: Mon, 06 Sep 2010 02:00:22
Message-Id: 20100906020019.603D720051@flycatcher.gentoo.org
1 tampakrap 10/09/06 02:00:19
2
3 Added: pykde4-mapped-type-fix.patch
4 Log:
5 Version bump KDE SC 4.5.1
6
7 (Portage version: 2.2_rc75/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.1 kde-base/pykde4/files/pykde4-mapped-type-fix.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/files/pykde4-mapped-type-fix.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/files/pykde4-mapped-type-fix.patch?rev=1.1&content-type=text/plain
14
15 Index: pykde4-mapped-type-fix.patch
16 ===================================================================
17 --- trunk/KDE/kdebindings/python/pykde4/sip/kdecore/typedefs.sip 2010/01/16 10:06:39 1075490
18 +++ trunk/KDE/kdebindings/python/pykde4/sip/kdecore/typedefs.sip 2010/09/01 15:31:50 1170602
19 @@ -733,61 +733,6 @@
20 };
21
22
23 -%MappedType QList<uint>
24 -{
25 -%TypeHeaderCode
26 -#include <qlist.h>
27 -%End
28 -
29 -%ConvertFromTypeCode
30 - // Create the list.
31 - PyObject *l;
32 -
33 - if ((l = PyList_New(sipCpp->size())) == NULL)
34 - return NULL;
35 -
36 - // Set the list elements.
37 - for (int i = 0; i < sipCpp->size(); ++i) {
38 - PyObject *pobj;
39 -
40 -#if PY_MAJOR_VERSION >= 3
41 - if ((pobj = PyLong_FromLong(sipCpp->value(i))) == NULL) {
42 -#else
43 - if ((pobj = PyInt_FromLong(sipCpp->value(i))) == NULL) {
44 -#endif
45 - Py_DECREF(l);
46 -
47 - return NULL;
48 - }
49 -
50 - PyList_SET_ITEM(l, i, pobj);
51 - }
52 -
53 - return l;
54 -%End
55 -
56 -%ConvertToTypeCode
57 - // Check the type if that is all that is required.
58 - if (sipIsErr == NULL)
59 - return PyList_Check(sipPy);
60 -
61 - QList<uint> *ql = new QList<uint>;
62 -
63 - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) {
64 -#if PY_MAJOR_VERSION >= 3
65 - ql->append(PyLong_AsLong(PyList_GET_ITEM(sipPy, i)));
66 -#else
67 - ql->append(PyInt_AsLong(PyList_GET_ITEM(sipPy, i)));
68 -#endif
69 - }
70 -
71 - *sipCppPtr = ql;
72 -
73 - return sipGetState(sipTransferObj);
74 -%End
75 -};
76 -
77 -
78 template <TYPE*>
79 %MappedType QStack<TYPE*>
80 {