jpayne@69: #ifndef Py_CPYTHON_FILEOBJECT_H jpayne@69: # error "this header file must not be included directly" jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *); jpayne@69: jpayne@69: #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000 jpayne@69: PyAPI_DATA(const char *) Py_FileSystemDefaultEncodeErrors; jpayne@69: #endif jpayne@69: jpayne@69: #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000 jpayne@69: PyAPI_DATA(int) Py_UTF8Mode; jpayne@69: #endif jpayne@69: jpayne@69: /* The std printer acts as a preliminary sys.stderr until the new io jpayne@69: infrastructure is in place. */ jpayne@69: PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int); jpayne@69: PyAPI_DATA(PyTypeObject) PyStdPrinter_Type; jpayne@69: jpayne@69: typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *); jpayne@69: jpayne@69: PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path); jpayne@69: PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path); jpayne@69: PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData); jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif