| 1 |
#ifndef Py_INTERNAL_FLOATOBJECT_H |
| 2 |
#define Py_INTERNAL_FLOATOBJECT_H |
| 3 |
#ifdef __cplusplus |
| 4 |
extern "C" { |
| 5 |
#endif |
| 6 |
|
| 7 |
#ifndef Py_BUILD_CORE |
| 8 |
# error "this header requires Py_BUILD_CORE define" |
| 9 |
#endif |
| 10 |
|
| 11 |
#include "pycore_unicodeobject.h" // _PyUnicodeWriter |
| 12 |
|
| 13 |
/* runtime lifecycle */ |
| 14 |
|
| 15 |
extern void _PyFloat_InitState(PyInterpreterState *); |
| 16 |
extern PyStatus _PyFloat_InitTypes(PyInterpreterState *); |
| 17 |
extern void _PyFloat_FiniType(PyInterpreterState *); |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
PyAPI_FUNC(void) _PyFloat_ExactDealloc(PyObject *op); |
| 23 |
|
| 24 |
|
| 25 |
extern void _PyFloat_DebugMallocStats(FILE* out); |
| 26 |
|
| 27 |
|
| 28 |
/* Format the object based on the format_spec, as defined in PEP 3101 |
| 29 |
(Advanced String Formatting). */ |
| 30 |
extern int _PyFloat_FormatAdvancedWriter( |
| 31 |
_PyUnicodeWriter *writer, |
| 32 |
PyObject *obj, |
| 33 |
PyObject *format_spec, |
| 34 |
Py_ssize_t start, |
| 35 |
Py_ssize_t end); |
| 36 |
|
| 37 |
extern PyObject* _Py_string_to_number_with_underscores( |
| 38 |
const char *str, Py_ssize_t len, const char *what, PyObject *obj, void *arg, |
| 39 |
PyObject *(*innerfunc)(const char *, Py_ssize_t, void *)); |
| 40 |
|
| 41 |
extern double _Py_parse_inf_or_nan(const char *p, char **endptr); |
| 42 |
|
| 43 |
extern int _Py_convert_int_to_double(PyObject **v, double *dbl); |
| 44 |
|
| 45 |
|
| 46 |
#ifdef __cplusplus |
| 47 |
} |
| 48 |
#endif |
| 49 |
#endif /* !Py_INTERNAL_FLOATOBJECT_H */ |