fileobject.h 818 B

12345678910111213141516171819
  1. #ifndef Py_CPYTHON_FILEOBJECT_H
  2. # error "this header file must not be included directly"
  3. #endif
  4. PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
  5. PyAPI_FUNC(char *) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*);
  6. /* The std printer acts as a preliminary sys.stderr until the new io
  7. infrastructure is in place. */
  8. PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
  9. PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
  10. typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *);
  11. PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path);
  12. PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path);
  13. PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData);
  14. PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *);