[issue6729] Add support for ssize_t
Nikolaus Rath
report at bugs.python.org
Tue Sep 29 01:34:05 CEST 2009
Nikolaus Rath <Nikolaus at rath.org> added the comment:
Ok, apparently the lines that define c_size_t are these:
if sizeof(c_uint) == sizeof(c_void_p):
c_size_t = c_uint
elif sizeof(c_ulong) == sizeof(c_void_p):
c_size_t = c_ulong
elif sizeof(c_ulonglong) == sizeof(c_void_p):
c_size_t = c_ulonglong
(side remark: wouldn't a simple c_size_t = c_void_p do exactly the same
as the above and be much clearer?)
Unfortunately I have no real idea how to come up with something similar
for ssize_t, since there is no predefined object that is of type ssize_t
(as c_void_p is for type size_t). Any ideas what to do?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6729>
_______________________________________
More information about the Python-bugs-list
mailing list