fileobject.h revision ea9cb5aebf38741871ad4f28971dcd23ddd77ad2
1/*********************************************************** 2Copyright (c) 2000, BeOpen.com. 3Copyright (c) 1995-2000, Corporation for National Research Initiatives. 4Copyright (c) 1990-1995, Stichting Mathematisch Centrum. 5All rights reserved. 6 7See the file "Misc/COPYRIGHT" for information on usage and 8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. 9******************************************************************/ 10 11/* File object interface */ 12 13#ifndef Py_FILEOBJECT_H 14#define Py_FILEOBJECT_H 15#ifdef __cplusplus 16extern "C" { 17#endif 18 19extern DL_IMPORT(PyTypeObject) PyFile_Type; 20 21#define PyFile_Check(op) ((op)->ob_type == &PyFile_Type) 22 23extern DL_IMPORT(PyObject *) PyFile_FromString(char *, char *); 24extern DL_IMPORT(void) PyFile_SetBufSize(PyObject *, int); 25extern DL_IMPORT(PyObject *) PyFile_FromFile(FILE *, char *, char *, 26 int (*)(FILE *)); 27extern DL_IMPORT(FILE *) PyFile_AsFile(PyObject *); 28extern DL_IMPORT(PyObject *) PyFile_Name(PyObject *); 29extern DL_IMPORT(PyObject *) PyFile_GetLine(PyObject *, int); 30extern DL_IMPORT(int) PyFile_WriteObject(PyObject *, PyObject *, int); 31extern DL_IMPORT(int) PyFile_SoftSpace(PyObject *, int); 32extern DL_IMPORT(int) PyFile_WriteString(char *, PyObject *); 33 34#ifdef __cplusplus 35} 36#endif 37#endif /* !Py_FILEOBJECT_H */ 38