blob: 3005ce1f00f9d5b7644fde56fb064ade7abbff5f [file] [log] [blame]
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02001#ifndef Py_CPYTHON_FILEOBJECT_H
2# error "this header file must not be included directly"
3#endif
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
10
11/* The std printer acts as a preliminary sys.stderr until the new io
12 infrastructure is in place. */
13PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
14PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
15
16typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *);
17
18PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path);
19PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path);
20PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData);
21
22#ifdef __cplusplus
23}
24#endif