mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00

Add the Python/dtoa.c file containing the main algorithms; add corresponding include file and include in Python.h; include license information for Python/dtoa.c; add dtoa.c and dtoa.h to Makefile.
15 lines
338 B
C
15 lines
338 B
C
#ifndef PY_NO_SHORT_FLOAT_REPR
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr);
|
|
PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
|
|
int *decpt, int *sign, char **rve);
|
|
PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|