packages: kde4-kdebindings/kde4-kdebindings-sip.patch (NEW) test patch from...

arekm arekm at pld-linux.org
Wed Oct 6 21:54:24 CEST 2010


Author: arekm                        Date: Wed Oct  6 19:54:24 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
test patch from gentoo

---- Files affected:
packages/kde4-kdebindings:
   kde4-kdebindings-sip.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/kde4-kdebindings/kde4-kdebindings-sip.patch
diff -u /dev/null packages/kde4-kdebindings/kde4-kdebindings-sip.patch:1.1
--- /dev/null	Wed Oct  6 21:54:24 2010
+++ packages/kde4-kdebindings/kde4-kdebindings-sip.patch	Wed Oct  6 21:54:19 2010
@@ -0,0 +1,64 @@
+--- kdebindings/python/pykde4/sip/kdecore/typedefs.sip	2010/01/16 10:06:39	1075490
++++ kdebindings/python/pykde4/sip/kdecore/typedefs.sip	2010/09/01 15:31:50	1170602
+@@ -733,61 +733,6 @@
+ };
+ 
+ 
+-%MappedType QList<uint>
+-{
+-%TypeHeaderCode
+-#include <qlist.h>
+-%End
+-
+-%ConvertFromTypeCode
+-    // Create the list.
+-    PyObject *l;
+-
+-    if ((l = PyList_New(sipCpp->size())) == NULL)
+-        return NULL;
+-
+-    // Set the list elements.
+-    for (int i = 0; i < sipCpp->size(); ++i) {
+-        PyObject *pobj;
+-
+-#if PY_MAJOR_VERSION >= 3
+-        if ((pobj = PyLong_FromLong(sipCpp->value(i))) == NULL) {
+-#else
+-        if ((pobj = PyInt_FromLong(sipCpp->value(i))) == NULL) {
+-#endif
+-            Py_DECREF(l);
+-
+-            return NULL;
+-        }
+-
+-        PyList_SET_ITEM(l, i, pobj);
+-    }
+-
+-    return l;
+-%End
+-
+-%ConvertToTypeCode
+-    // Check the type if that is all that is required.
+-    if (sipIsErr == NULL)
+-        return PyList_Check(sipPy);
+-
+-    QList<uint> *ql = new QList<uint>;
+- 
+-    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) {
+-#if PY_MAJOR_VERSION >= 3
+-        ql->append(PyLong_AsLong(PyList_GET_ITEM(sipPy, i)));
+-#else
+-        ql->append(PyInt_AsLong(PyList_GET_ITEM(sipPy, i)));
+-#endif        
+-    }
+-    
+-    *sipCppPtr = ql;
+- 
+-    return sipGetState(sipTransferObj);
+-%End
+-};
+-
+-
+ template <TYPE*>
+ %MappedType QStack<TYPE*>
+ {
================================================================


More information about the pld-cvs-commit mailing list