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