Currently, if one has something like this:
# mymod.pyx
cdef public api class Foo [type PyFoo_Type, object PyFooObject]:
cdef int bar
The generated C header file contains this:
# mymod.h
struct PyFooObject {
PyObject_HEAD
int bar;
};
Could the generated code be changed to say like this ??:
typedef struct PyFooObject {
PyObject_HEAD
int bar;
} PyFooObject;
or perhaps this (though AFAIK they are equivalent)
struct PyFooObject {
PyObject_HEAD
int bar;
};
typedef struct PyFooObject PyFooObject;
If this is accepted, I could take the task of writing the patch (of
course, iff I actually can figure out the way). I would love to get
this in ASAP, because other project (from Brian Granger) depending on
mpi4py will need this and that project is scheduled for completion in
about 3 weeks.
--
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