After a lot of googling, diving on CPython sources (2.3 to 3.0) and
help from Albert Strasheim and Matthew Knepley, I've pushed more stuff
for 'size_t' (and 'Py_ssize_t') support. Now Cython should be near to
do the right thing, but I cannot be sure until all this is not tested
on Window 32 and Windows 64.

A thing (related to recent fix by Robert) that I was not able to fix
is the unused variable warning below...

size_t.c: In function '__pyx_pf_6size_t_1A___init__':
size_t.c:390: warning: unused variable '__pyx_arg_a'
size_t.cpp: In function 'int __pyx_pf_6size_t_1A___init__(PyObject*,
PyObject*, PyObject*)':
size_t.cpp:390: warning: unused variable '__pyx_arg_a'
tryfinally.c: In function '__pyx_pf_10tryfinally_try_return_temp':

Other missing task is extend Robert's fix to 'long double' ...

BTW, Cython generates this C code... Is this PY_LONG_LONG fallback
definition supposed to be portable?

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif


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

Reply via email to