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

Tim Peters tim_one@users.sourceforge.net
Wed, 28 Nov 2001 14:13:27 -0800


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

Modified Files:
	fileobject.h 
Log Message:
PyFile_WriteString():  change prototype so that the string arg is
const char* instead of char*.  The change is conceptually correct, and
indirectly fixes a compiler wng introduced when somebody else innocently
passed a const char* to this function.


Index: fileobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/fileobject.h,v
retrieving revision 2.24
retrieving revision 2.25
diff -C2 -d -r2.24 -r2.25
*** fileobject.h	2001/09/13 05:38:55	2.24
--- fileobject.h	2001/11/28 22:13:25	2.25
***************
*** 22,26 ****
  extern DL_IMPORT(int) PyFile_WriteObject(PyObject *, PyObject *, int);
  extern DL_IMPORT(int) PyFile_SoftSpace(PyObject *, int);
! extern DL_IMPORT(int) PyFile_WriteString(char *, PyObject *);
  extern DL_IMPORT(int) PyObject_AsFileDescriptor(PyObject *);
  
--- 22,26 ----
  extern DL_IMPORT(int) PyFile_WriteObject(PyObject *, PyObject *, int);
  extern DL_IMPORT(int) PyFile_SoftSpace(PyObject *, int);
! extern DL_IMPORT(int) PyFile_WriteString(const char *, PyObject *);
  extern DL_IMPORT(int) PyObject_AsFileDescriptor(PyObject *);