cpython/Modules/_ctypes
Victor Stinner 7cdc2a0f4b
pycore_pystate.h no longer redefines PyThreadState_GET() (GH-28921)
Redefining the PyThreadState_GET() macro in pycore_pystate.h is
useless since it doesn't affect files not including it. Either use
_PyThreadState_GET() directly, or don't use pycore_pystate.h internal
C API. For example, the _testcapi extension don't use the internal C
API, but use the public PyThreadState_Get() function instead.

Replace PyThreadState_Get() with _PyThreadState_GET(). The
_PyThreadState_GET() macro is more efficient than PyThreadState_Get()
and PyThreadState_GET() function calls which call fail with a fatal
Python error.

posixmodule.c and _ctypes extension now include <windows.h> before
pycore header files (like pycore_call.h).

_PyTraceback_Add() now uses _PyErr_Fetch()/_PyErr_Restore() instead
of PyErr_Fetch()/PyErr_Restore().

The _decimal and _xxsubinterpreters extensions are now built with the
Py_BUILD_CORE_MODULE macro defined to get access to the internal C
API.
2021-10-13 14:09:13 +02:00
..
darwin Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
libffi_osx Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
_ctypes.c pycore_pystate.h no longer redefines PyThreadState_GET() (GH-28921) 2021-10-13 14:09:13 +02:00
_ctypes_test.c bpo-44854: Remove trailing whitespaces (GH-27689) 2021-08-09 21:32:54 +03: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 pycore_pystate.h no longer redefines PyThreadState_GET() (GH-28921) 2021-10-13 14:09:13 +02:00
callproc.c Fix typos in the Modules directory (GH-28761) 2021-10-07 01:34:42 -07:00
cfield.c pycore_pystate.h no longer redefines PyThreadState_GET() (GH-28921) 2021-10-13 14:09:13 +02:00
ctypes.h Fix typos in the Modules directory (GH-28761) 2021-10-07 01:34:42 -07:00
ctypes_dlfcn.h Remove outdated PEP 291 compatibility requirement comment 2016-05-14 05:55:38 +00:00
malloc_closure.c bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) 2020-12-22 03:12:07 -08:00
stgdict.c pycore_pystate.h no longer redefines PyThreadState_GET() (GH-28921) 2021-10-13 14:09:13 +02:00