[Python-checkins] CVS: python/dist/src/Modules pyexpat.c,2.4,2.5
A.M. Kuchling
python-dev@python.org
Mon, 26 Jun 2000 17:33:33 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv25294
Modified Files:
pyexpat.c
Log Message:
Added support for passing Unicode strings to Expat handlers by default.
This version still includes #ifdef hackery to compile with 1.5.2.
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.4
retrieving revision 2.5
diff -C2 -r2.4 -r2.5
*** pyexpat.c 2000/05/03 23:44:33 2.4
--- pyexpat.c 2000/06/27 00:33:30 2.5
***************
*** 39,57 ****
enum HandlerTypes{
! StartElement,
! EndElement,
! ProcessingInstruction,
! CharacterData,
! UnparsedEntityDecl,
! NotationDecl,
! StartNamespaceDecl,
! EndNamespaceDecl,
[...1633 lines suppressed...]
! my_StartCdataSectionHandler},
{"EndCdataSectionHandler",
! pyxml_SetEndCdataSection,
! my_EndCdataSectionHandler},
{"DefaultHandler",
! (xmlhandlersetter)XML_SetDefaultHandler,
! my_DefaultHandler},
{"DefaultHandlerExpand",
! (xmlhandlersetter)XML_SetDefaultHandlerExpand,
! my_DefaultHandlerExpandHandler},
{"NotStandaloneHandler",
! (xmlhandlersetter)XML_SetNotStandaloneHandler,
! my_NotStandaloneHandler},
{"ExternalEntityRefHandler",
! (xmlhandlersetter)XML_SetExternalEntityRefHandler,
! my_ExternalEntityRefHandler },
{NULL, NULL, NULL } /* sentinel */
};