home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / FILEOBJECT.H < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-01  |  983 b   |  30 lines

  1.  
  2. /* File object interface */
  3.  
  4. #ifndef Py_FILEOBJECT_H
  5. #define Py_FILEOBJECT_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. extern DL_IMPORT(PyTypeObject) PyFile_Type;
  11.  
  12. #define PyFile_Check(op) ((op)->ob_type == &PyFile_Type)
  13.  
  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 *,
  17.                                              int (*)(FILE *));
  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 *);
  25.  
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* !Py_FILEOBJECT_H */
  30.