[Python-checkins] python/dist/src/Modules pyexpat.c,2.74,2.75

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Tue, 24 Sep 2002 09:24:56 -0700


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

Modified Files:
	pyexpat.c 
Log Message:
Be more careful with the type of the xmlhandlersetter; it takes an
XML_Parser, which happens to be a pointer type, not an XML_Parser*.
This generated warnings when compiled with Expat 1.95.5, which no
longer defines XML_Parser to be void*.


Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.74
retrieving revision 2.75
diff -C2 -d -r2.74 -r2.75
*** pyexpat.c	2 Sep 2002 15:54:06 -0000	2.74
--- pyexpat.c	24 Sep 2002 16:24:54 -0000	2.75
***************
*** 69,73 ****
  static PyTypeObject Xmlparsetype;
  
! typedef void (*xmlhandlersetter)(XML_Parser *self, void *meth);
  typedef void* xmlhandler;
  
--- 69,73 ----
  static PyTypeObject Xmlparsetype;
  
! typedef void (*xmlhandlersetter)(XML_Parser self, void *meth);
  typedef void* xmlhandler;