Supose this fragment:

cdef extern from *:
    ctypedef long Py_ssize_t
    ctypedef unsigned long size_t

With this patch, these ctypedef's seems to be just ignored. This is
good for the sake of Cython-backward and Pyrex compatibility. However,
it would be nice to make Cython generate a warning. But the right
place to do that is not at the point of parsing basic C types, but on
parsing a ctypedef statement itself.



-- 
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

Attachment: SPECIAL_C_TYPES.diff
Description: Binary data

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to