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