[Python-checkins] CVS: python/dist/src/Include fileobject.h,2.25,2.26

Martin v. L?wis loewis@users.sourceforge.net
Fri, 15 Mar 2002 09:42:19 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv10488/Include

Modified Files:
	fileobject.h 
Log Message:
Patch #530105: Allow file object may to be subtyped


Index: fileobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/fileobject.h,v
retrieving revision 2.25
retrieving revision 2.26
diff -C2 -d -r2.25 -r2.26
*** fileobject.h	28 Nov 2001 22:13:25 -0000	2.25
--- fileobject.h	15 Mar 2002 17:42:16 -0000	2.26
***************
*** 8,11 ****
--- 8,22 ----
  #endif
  
+ typedef struct {
+ 	PyObject_HEAD
+ 	FILE *f_fp;
+ 	PyObject *f_name;
+ 	PyObject *f_mode;
+ 	int (*f_close)(FILE *);
+ 	int f_softspace; /* Flag used by 'print' command */
+ 	int f_binary; /* Flag which indicates whether the file is
+ 			 open in binary (1) or test (0) mode */
+ } PyFileObject;
+ 
  extern DL_IMPORT(PyTypeObject) PyFile_Type;