Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 1 | #ifndef Py_CPYTHON_FILEOBJECT_H |
| 2 | # error "this header file must not be included directly" |
| 3 | #endif |
| 4 | |
Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 5 | PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *); |
| 6 | |
Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 7 | /* The std printer acts as a preliminary sys.stderr until the new io |
| 8 | infrastructure is in place. */ |
| 9 | PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int); |
| 10 | PyAPI_DATA(PyTypeObject) PyStdPrinter_Type; |
| 11 | |
| 12 | typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *); |
| 13 | |
| 14 | PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path); |
| 15 | PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path); |
| 16 | PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData); |
| 17 | |
Yi Kong | 7119932 | 2022-08-30 15:53:45 +0800 | [diff] [blame] | 18 | PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *); |