cpython/Modules/_ctypes
Thomas Heller 68bb9a1418 When accessing the .value attribute of a c_wchar_p instance, and the
instance does not point to a valid wchar_t zero-terminated string,
raise a ValueError.  c_char_p does this already.

The ValueError message now contains the correct pointer address.

Will backport to release25-maint.
2007-04-30 16:04:57 +00:00
..
darwin Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
libffi Patch #1649190: Adding support for _Bool to ctypes as c_bool, by David Remahl. 2007-03-13 20:42:52 +00:00
libffi_arm_wince Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
libffi_msvc Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitions 2007-01-11 21:18:56 +00:00
_ctypes.c Prevent creation (followed by a segfault) of array types when the size 2007-03-23 19:55:27 +00:00
_ctypes_test.c Replace C++ comments with C comments. 2007-01-17 09:40:34 +00:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
callbacks.c ctypes callback functions only support 'fundamental' result types. 2006-10-17 19:30:48 +00:00
callproc.c Make sure to call PyErr_NoMemory() in several places where 2007-04-30 15:44:17 +00:00
cfield.c When accessing the .value attribute of a c_wchar_p instance, and the 2007-04-30 16:04:57 +00:00
ctypes.h Apply the patch #1532975 plus ideas from the patch #1533481. 2006-08-14 11:17:48 +00:00
ctypes_dlfcn.h Add pep-291 compatibility markers. 2006-06-12 20:56:48 +00:00
malloc_closure.c Add pep-291 compatibility markers. 2006-06-12 20:56:48 +00:00
stgdict.c Make sure to call PyErr_NoMemory() in several places where 2007-04-30 15:44:17 +00:00