• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_CPYTHON_FILEOBJECT_H
2 #  error "this header file must not be included directly"
3 #endif
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
10 
11 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
12 PyAPI_DATA(const char *) Py_FileSystemDefaultEncodeErrors;
13 #endif
14 
15 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
16 PyAPI_DATA(int) Py_UTF8Mode;
17 #endif
18 
19 /* The std printer acts as a preliminary sys.stderr until the new io
20    infrastructure is in place. */
21 PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
22 PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
23 
24 typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *);
25 
26 PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path);
27 PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path);
28 PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33