]> granicus.if.org Git - python/commit
Add a new function uses_seh() to the _ctypes extension module. This
authorThomas Heller <theller@ctypes.org>
Mon, 3 Jul 2006 08:08:14 +0000 (08:08 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 3 Jul 2006 08:08:14 +0000 (08:08 +0000)
commitf780be4239817192a93c34b768f6565aee8c2130
tree61c0d37eaa3af547d62e98126be3fbf5666f2f69
parent638f7addf39afe167aab84521202a54d1cd42587
Add a new function uses_seh() to the _ctypes extension module.  This
will return True if Windows Structured Exception handling (SEH) is
used when calling functions, False otherwise.

Currently, only MSVC supports SEH.

Fix the test so that it doesn't crash when run with MingW compiled
_ctypes.  Note that two tests are still failing when mingw is used, I
suspect structure layout differences and function calling conventions
between MSVC and MingW.
Lib/ctypes/test/test_win32.py
Modules/_ctypes/callproc.c