[issue6729] Add support for ssize_t

2010-02-28 Thread Ryan Coyner
Ryan Coyner added the comment: You don't want to do c_size_t = c_void_p because that will prevent type checking. We want c_size_t to be integers; setting it to c_void_p will accept other values. The lines that define c_size_t are doing a sizeof check to determine how many bits the CPU support

[issue6729] Add support for ssize_t

2009-10-25 Thread Galen Clark Haynes
Changes by Galen Clark Haynes : -- nosy: +robotify ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6729] Add support for ssize_t

2009-09-28 Thread Nikolaus Rath
Nikolaus Rath 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

[issue6729] Add support for ssize_t

2009-09-18 Thread Thomas Heller
Thomas Heller added the comment: Find where c_size_t is defined: in Lib/ctypes/__init__.py -- ___ Python tracker ___ ___ Python-bugs-l

[issue6729] Add support for ssize_t

2009-09-17 Thread Nikolaus Rath
Nikolaus Rath added the comment: I can give it a shot if you give me a rough idea where I have to make the appropriate changes. -- ___ Python tracker ___

[issue6729] Add support for ssize_t

2009-09-17 Thread Thomas Heller
Thomas Heller added the comment: Would you like to work on a patch? -- versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___ __

[issue6729] Add support for ssize_t

2009-08-18 Thread Nikolaus Rath
New submission from Nikolaus Rath : ctypes currently has a datatype c_size_t which corresponds to size_t in C, but there is no datatype for the C ssize_t. -- assignee: theller components: ctypes messages: 91713 nosy: Nikratio, theller severity: normal status: open title: Add support for