The only thing that I'm not completely sure about is the
implementation of this, though it works fine in my 32bit Linux box
static INLINE size_t __pyx_PyInt_AsSize_t(PyObject* b);
Appart, from that, the testsuite seems to run fine for me...
Of course, this change is not backward compatible... Cython will not
compile the code:
cdef extern from "stdlib.h":
ctypedef unsigned long size_t
However, I've noticed that if I try to ctypedef Py_ssize_t, then
Cython does not even emit a warning !!!
What should be the behavior if the user tries to ctypedef 'Py_ssize_t'
or 'size_t', provided that Cython treats them as pre-defined C types?
Finally, can I push the changes?
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev