fileobject.h 721 B

123456789101112131415161718192021222324
  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. /* The std printer acts as a preliminary sys.stderr until the new io
  9. infrastructure is in place. */
  10. PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
  11. PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
  12. typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *);
  13. PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path);
  14. PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path);
  15. PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData);
  16. #ifdef __cplusplus
  17. }
  18. #endif