cpython/Modules/_ctypes
Sergey B Kirpichev 6988ff02a5
gh-61103: Support double complex (_Complex) type in ctypes (#120894)
Example:

```pycon
>>> import ctypes
>>> ctypes.__STDC_IEC_559_COMPLEX__
1
>>> libm = ctypes.CDLL('libm.so.6')
>>> libm.clog.argtypes = [ctypes.c_double_complex]
>>> libm.clog.restype = ctypes.c_double_complex
>>> libm.clog(1+1j)
(0.34657359027997264+0.7853981633974483j)
```

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2024-07-01 10:54:33 +02:00
..
clinic gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712) 2024-05-29 11:37:04 +02:00
_ctypes.c gh-61103: Support double complex (_Complex) type in ctypes (#120894) 2024-07-01 10:54:33 +02:00
_ctypes_test.c gh-61103: Support double complex (_Complex) type in ctypes (#120894) 2024-07-01 10:54:33 +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-97588: Align ctypes struct layout to GCC/MSVC (GH-97702) 2024-05-29 12:02:53 +02:00
callbacks.c gh-117142: Port _ctypes to multi-phase init (GH-117181) 2024-04-10 11:00:01 +00:00
callproc.c gh-61103: Support double complex (_Complex) type in ctypes (#120894) 2024-07-01 10:54:33 +02:00
cfield.c gh-61103: Support double complex (_Complex) type in ctypes (#120894) 2024-07-01 10:54:33 +02:00
ctypes.h gh-61103: Support double complex (_Complex) type in ctypes (#120894) 2024-07-01 10:54:33 +02:00
malloc_closure.c gh-108765: Python.h no longer includes <unistd.h> (#108783) 2023-09-02 16:50:18 +02:00
stgdict.c gh-121040: Use __attribute__((fallthrough)) (#121044) 2024-06-27 09:58:44 +00:00