2 /* File object interface */
4 #ifndef Py_FILEOBJECT_H
5 #define Py_FILEOBJECT_H
10 extern DL_IMPORT(PyTypeObject
) PyFile_Type
;
12 #define PyFile_Check(op) ((op)->ob_type == &PyFile_Type)
14 extern DL_IMPORT(PyObject
*) PyFile_FromString(char *, char *);
15 extern DL_IMPORT(void) PyFile_SetBufSize(PyObject
*, int);
16 extern DL_IMPORT(PyObject
*) PyFile_FromFile(FILE *, char *, char *,
18 extern DL_IMPORT(FILE *) PyFile_AsFile(PyObject
*);
19 extern DL_IMPORT(PyObject
*) PyFile_Name(PyObject
*);
20 extern DL_IMPORT(PyObject
*) PyFile_GetLine(PyObject
*, int);
21 extern DL_IMPORT(int) PyFile_WriteObject(PyObject
*, PyObject
*, int);
22 extern DL_IMPORT(int) PyFile_SoftSpace(PyObject
*, int);
23 extern DL_IMPORT(int) PyFile_WriteString(char *, PyObject
*);
24 extern DL_IMPORT(int) PyObject_AsFileDescriptor(PyObject
*);
29 #endif /* !Py_FILEOBJECT_H */