| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ | |||
| 23 | 23 | # define _Py_thread_local __thread | |
| 24 | 24 | #endif | |
| 25 | 25 | ||
| 26 | - #if defined(Py_FFI_SUPPORT_C_COMPLEX) | ||
| 26 | + #if defined(_Py_FFI_SUPPORT_C_COMPLEX) | ||
| 27 | 27 | # include <complex.h> // csqrt() | |
| 28 | 28 | # undef I // for _ctypes_test_generated.c.h | |
| 29 | 29 | #endif | |
@@ -457,7 +457,7 @@ EXPORT(double) my_sqrt(double a) | |||
| 457 | 457 | return sqrt(a); | |
| 458 | 458 | } | |
| 459 | 459 | ||
| 460 | - #if defined(Py_FFI_SUPPORT_C_COMPLEX) | ||
| 460 | + #if defined(_Py_FFI_SUPPORT_C_COMPLEX) | ||
| 461 | 461 | EXPORT(double complex) my_csqrt(double complex a) | |
| 462 | 462 | { | |
| 463 | 463 | return csqrt(a); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -759,7 +759,7 @@ d_get(void *ptr, Py_ssize_t size) | |||
| 759 | 759 | return PyFloat_FromDouble(val); | |
| 760 | 760 | } | |
| 761 | 761 | ||
| 762 | - #if defined(Py_FFI_SUPPORT_C_COMPLEX) | ||
| 762 | + #if defined(_Py_FFI_SUPPORT_C_COMPLEX) | ||
| 763 | 763 | ||
| 764 | 764 | /* We don't use _Complex types here, using arrays instead, as the C11+ | |
| 765 | 765 | standard says: "Each complex type has the same representation and alignment | |
@@ -1599,7 +1599,7 @@ for base_code, base_c_type in [ | |||
| 1599 | 1599 | /////////////////////////////////////////////////////////////////////////// | |
| 1600 | 1600 | ||
| 1601 | 1601 | TABLE_ENTRY_SW(d, &ffi_type_double); | |
| 1602 | - #if defined(Py_FFI_SUPPORT_C_COMPLEX) | ||
| 1602 | + #if defined(_Py_FFI_SUPPORT_C_COMPLEX) | ||
| 1603 | 1603 | if (Py_FFI_COMPLEX_AVAILABLE) { | |
| 1604 | 1604 | TABLE_ENTRY(D, &ffi_type_complex_double); | |
| 1605 | 1605 | TABLE_ENTRY(F, &ffi_type_complex_float); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | 24 | // Do we support C99 complex types in ffi? | |
| 25 | 25 | // For Apple's libffi, this must be determined at runtime (see gh-128156). | |
| 26 | - #if defined(Py_FFI_SUPPORT_C_COMPLEX) | ||
| 26 | + #if defined(_Py_FFI_SUPPORT_C_COMPLEX) | ||
| 27 | 27 | # if USING_APPLE_OS_LIBFFI && defined(__has_builtin) | |
| 28 | 28 | # if __has_builtin(__builtin_available) | |
| 29 | 29 | # define Py_FFI_COMPLEX_AVAILABLE __builtin_available(macOS 10.15, *) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4163,7 +4163,7 @@ int main(void) | |||
| 4163 | 4163 | [ac_cv_ffi_complex_double_supported=no]) | |
| 4164 | 4164 | ])]) | |
| 4165 | 4165 | if test "$ac_cv_ffi_complex_double_supported" = "yes"; then | |
| 4166 | - AC_DEFINE([Py_FFI_SUPPORT_C_COMPLEX], [1], | ||
| 4166 | + AC_DEFINE([_Py_FFI_SUPPORT_C_COMPLEX], [1], | ||
| 4167 | 4167 | [Defined if _Complex C type can be used with libffi.]) | |
| 4168 | 4168 | fi | |
| 4169 | 4169 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1736,9 +1736,6 @@ | |||
| 1736 | 1736 | /* Defined if Python is built as a shared library. */ | |
| 1737 | 1737 | #undef Py_ENABLE_SHARED | |
| 1738 | 1738 | ||
| 1739 | - /* Defined if _Complex C type can be used with libffi. */ | ||
| 1740 | - #undef Py_FFI_SUPPORT_C_COMPLEX | ||
| 1741 | - | ||
| 1742 | 1739 | /* Define if you want to disable the GIL */ | |
| 1743 | 1740 | #undef Py_GIL_DISABLED | |
| 1744 | 1741 | ||
@@ -2026,6 +2023,9 @@ | |||
| 2026 | 2023 | /* Maximum length in bytes of a thread name */ | |
| 2027 | 2024 | #undef _PYTHREAD_NAME_MAXLEN | |
| 2028 | 2025 | ||
| 2026 | + /* Defined if _Complex C type can be used with libffi. */ | ||
| 2027 | + #undef _Py_FFI_SUPPORT_C_COMPLEX | ||
| 2028 | + | ||
| 2029 | 2029 | /* Define to force use of thread-safe errno, h_errno, and other functions */ | |
| 2030 | 2030 | #undef _REENTRANT | |
| 2031 | 2031 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments