[Cython] cython-devel: array declaration problems with current trunk
Lisandro Dalcin
dalcinl at gmail.com
Mon Aug 4 19:46:11 CEST 2008
Current cython-devel trunk broke my code, for example, try to run
cython on this snippet:
cdef extern from *:
cdef void foo(int[])
ctypedef int MyInt
cdef void foo(MyInt[])
struct MyStruct:
pass
cdef void bar(MyStruct[])
ctypedef MyStruct* MyStructP
cdef void baz(MyStructP[])
I get error messages like (just the first shown):
Error converting Pyrex file to C:
------------------------------------------------------------
...
cdef extern from *:
cdef void foo(int[])
ctypedef int MyInt
cdef void foo(MyInt[])
^
------------------------------------------------------------
/u/dalcinl/Devel/Cython/sandbox/arrdecl.pyx:6:23: Buffer types only
allowed as function local variables
--
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
More information about the Cython-dev
mailing list