Hi,

In Python 2.5, PyString_AsStringAndSize takes Py_ssize_t* instead of int* as
its last argument.  This causes ELinks 0.12 build failures on 64bit archs if
Python 2.5 is used for building the Python hooks.

I understand that the way to fix this sort of a thing in ELinks is to define a
new type (say Py_ssize_t_T) that maps to the right thing.  What would be the
best place to do it? src/osdep/types.h doesn't look to the right place because
I will have to include Python.h (and hence python patchlevel.h) and define
Py_ssize_t_T conditionally depending on PY_VERSION_HEX.

Or do you suggest that I just fix this in src/scripting/python/hooks.c where
PyString_AsStringAndSize is used? i.e. cast the third argument conditionally
or declare len conditionally there.

Giridhar

-- 
Y Giridhar Appaji Nag | http://appaji.net/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to