Dear all, After the trick of using a string buffer for obtaining tmp memory and let python manage the automatic deallocation, now a pure malloc/free based way that does not need even to declare a custom class. It just used PyCObject objects created with the pointer to memory (obtained with malloc) and a destructor function (calling free). It can be easily modified to use memalign if needed.
Any one interested, please comment on the attached pxi file. -- 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
memalloc.pxi
Description: Binary data
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
