1#ifdef __cplusplus
2extern "C" {
3#endif
4
5#ifndef Py_BUILD_CORE
6#  error "this header requires Py_BUILD_CORE define"
7#endif
8
9#include "pycore_pymath.h"        // _PY_SHORT_FLOAT_REPR
10
11
12#if _PY_SHORT_FLOAT_REPR == 1
13
14/* These functions are used by modules compiled as C extension like math:
15   they must be exported. */
16
17PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr);
18PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
19                        int *decpt, int *sign, char **rve);
20PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);
21PyAPI_FUNC(double) _Py_dg_stdnan(int sign);
22PyAPI_FUNC(double) _Py_dg_infinity(int sign);
23
24#endif // _PY_SHORT_FLOAT_REPR == 1
25
26#ifdef __cplusplus
27}
28#endif
29