| extern "C" { | |
| /* runtime lifecycle */ | |
| extern void _PyFloat_InitState(PyInterpreterState *); | |
| extern PyStatus _PyFloat_InitTypes(PyInterpreterState *); | |
| extern void _PyFloat_Fini(PyInterpreterState *); | |
| extern void _PyFloat_FiniType(PyInterpreterState *); | |
| /* other API */ | |
| // without freelists | |
| struct _Py_float_state { | |
| /* Special free list | |
| free_list is a singly-linked list of available PyFloatObjects, | |
| linked via abuse of their ob_type members. */ | |
| int numfree; | |
| PyFloatObject *free_list; | |
| }; | |
| void _PyFloat_ExactDealloc(PyObject *op); | |
| PyAPI_FUNC(void) _PyFloat_DebugMallocStats(FILE* out); | |
| /* Format the object based on the format_spec, as defined in PEP 3101 | |
| (Advanced String Formatting). */ | |
| PyAPI_FUNC(int) _PyFloat_FormatAdvancedWriter( | |
| _PyUnicodeWriter *writer, | |
| PyObject *obj, | |
| PyObject *format_spec, | |
| Py_ssize_t start, | |
| Py_ssize_t end); | |
| } | |