fileobject.h 951 B

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