cpython/Modules/_ctypes
Thomas Heller 291a1b89c6 Backport of r51379 from trunk:
Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'm not 1000% sure about the non-NULL, raise
a RuntimeError for safety.

This should fix the klocwork issues that Neal sent me.  If so,
it should be applied to the release25-maint branch also.
2006-09-06 17:48:56 +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 #1536908: Add support for AMD64 / OpenBSD. 2006-08-14 16:17:41 +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 so that _ctypes can be compiled with the MingW compiler. 2006-07-03 08:04:05 +00:00
_ctypes.c Backport of r51379 from trunk: 2006-09-06 17:48:56 +00:00
_ctypes_test.c Remove unused, buggy test function. 2006-08-14 07:13:05 +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 Remove the special casing of Py_None when converting the return value 2006-08-16 15:10:12 +00:00
callproc.c Apply the patch #1532975 plus ideas from the patch #1533481. 2006-08-14 11:17:48 +00:00
cfield.c The __repr__ method of a NULL py_object does no longer raise an 2006-08-16 14:07:44 +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 Move assert to after NULL check, otherwise we deref NULL in the assert. 2006-08-19 04:18:39 +00:00