cpython/Modules/_ctypes
Sergey B Kirpichev 8d0e07eb89
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>
2025-05-05 11:23:30 +02:00
..
clinic gh-100926: Move ctype's pointers cache from _pointer_type_cache to StgInfo (GH-131282) 2025-05-02 19:06:37 +02:00
_ctypes.c gh-100926: Move ctype's pointers cache from _pointer_type_cache to StgInfo (GH-131282) 2025-05-02 19:06:37 +02:00
_ctypes_test.c gh-61103: don't use C _Complex types to implement F/D/G in ctypes (GH-133237) 2025-05-05 11:23:30 +02:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
_ctypes_test_generated.c.h gh-128715: Expose ctypes.CField, with info attributes (GH-128950) 2025-03-24 14:18:34 +01:00
callbacks.c gh-128715: Expose ctypes.CField, with info attributes (GH-128950) 2025-03-24 14:18:34 +01:00
callproc.c gh-61103: don't use C _Complex types to implement F/D/G in ctypes (GH-133237) 2025-05-05 11:23:30 +02:00
cfield.c gh-61103: don't use C _Complex types to implement F/D/G in ctypes (GH-133237) 2025-05-05 11:23:30 +02:00
ctypes.h gh-61103: don't use C _Complex types to implement F/D/G in ctypes (GH-133237) 2025-05-05 11:23:30 +02:00
malloc_closure.c gh-127945: add locking to malloc closure in free-threading (#131662) 2025-03-25 16:48:46 +05:30
stgdict.c gh-100926: Move ctype's pointers cache from _pointer_type_cache to StgInfo (GH-131282) 2025-05-02 19:06:37 +02:00