]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-61103: don't use C _Complex types to implement F/D/G in ctypes (GH-133237)
authorSergey B Kirpichev <skirpichev@gmail.com>
Mon, 5 May 2025 09:23:30 +0000 (12:23 +0300)
committerGitHub <noreply@github.com>
Mon, 5 May 2025 09:23:30 +0000 (11:23 +0200)
commit8d0e07eb8993cb8b084a577e79083e8112ef8c7f
tree2acf7b38690394d606e825df1dd8eaa53cb2ca53
parentd530e74e444fc483f6d2077f701160e55d3003d8
gh-61103: don't use C _Complex types to implement F/D/G in ctypes (GH-133237)

According to the C standard, the memory representation of _Complex types
is equivalent to 2-element arrays. Unlike _Complex, arrays are always available.

- drop _complex.h header
- use appropriate real arrays to replace complex types

Co-authored-by: Lisandro Dalcin <dalcinl@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Makefile.pre.in
Modules/_complex.h [deleted file]
Modules/_ctypes/_ctypes_test.c
Modules/_ctypes/callproc.c
Modules/_ctypes/cfield.c
Modules/_ctypes/ctypes.h
Modules/_struct.c