]> granicus.if.org Git - python/commit
Include <malloc.h> on windows, to avoid warnings when compiling with mingw.
authorThomas Heller <theller@ctypes.org>
Wed, 22 Mar 2006 12:59:53 +0000 (12:59 +0000)
committerThomas Heller <theller@ctypes.org>
Wed, 22 Mar 2006 12:59:53 +0000 (12:59 +0000)
commit59feb6f5cc2d32360f8bdebdd2e0d5df88a389d9
tree7ea28835c5334441e588402b1cdf385c141347ba
parentc61c0499557921bf8d2c0f808d7dbaa8f38f96a0
Include <malloc.h> on windows, to avoid warnings when compiling with mingw.
Don't use SEH when compiling wth mingw.
Use IS_INTRESOURCE to determine function name from function ordinal.

Rewrite the code that allocates and frees callback functions, hopefully
this avoids the coverty warnings: Remove the THUNK typedef, and move the
definition of struct ffi_info into the header file.
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callbacks.c
Modules/_ctypes/callproc.c
Modules/_ctypes/ctypes.h