diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-11 21:09:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 21:09:40 (GMT) |
commit | 7103356455c8b0c2ba3523929327756413337a31 (patch) | |
tree | 7fc7286a502fe00cf42bd2f9c6759064f0f6df82 /Python/pystrtod.c | |
parent | a9fe1a8e5b4698937e06c2c419da92e6f78f2ee7 (diff) | |
download | cpython-7103356455c8b0c2ba3523929327756413337a31.zip cpython-7103356455c8b0c2ba3523929327756413337a31.tar.gz cpython-7103356455c8b0c2ba3523929327756413337a31.tar.bz2 |
bpo-45412: Move _Py_SET_53BIT_PRECISION_START to pycore_pymath.h (GH-28882)
Move the following macros , to pycore_pymath.h (internal C API):
* _Py_SET_53BIT_PRECISION_HEADER
* _Py_SET_53BIT_PRECISION_START
* _Py_SET_53BIT_PRECISION_END
PEP 7: add braces to if and "do { ... } while (0)" in these macros.
Move also _Py_get_387controlword() and _Py_set_387controlword()
definitions to pycore_pymath.h. These functions are no longer
exported.
pystrtod.c now includes pycore_pymath.h.
Diffstat (limited to 'Python/pystrtod.c')
-rw-r--r-- | Python/pystrtod.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 9145d4e..ab5814d 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -2,6 +2,7 @@ #include <Python.h> #include "pycore_dtoa.h" +#include "pycore_pymath.h" // _Py_SET_53BIT_PRECISION_START #include <locale.h> /* Case-insensitive string match used for nan and inf detection; t should be |