summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-07-04 14:53:43 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-07-04 14:53:43 (GMT)
commit637f6642f258b4d823ada61e2fb5d2fedc376036 (patch)
tree030d4d714835afd0afc830bbd3b49fa8db1cc849 /Modules/pyexpat.c
parent5baaf66525aa7b3a61d2fec14b945539cd36d689 (diff)
downloadcpython-637f6642f258b4d823ada61e2fb5d2fedc376036.zip
cpython-637f6642f258b4d823ada61e2fb5d2fedc376036.tar.gz
cpython-637f6642f258b4d823ada61e2fb5d2fedc376036.tar.bz2
Fixes for compilation problems on Tru64 reported by Mark Favas
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index a1ef8cb..a403d94 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -66,7 +66,7 @@ struct HandlerInfo {
xmlhandler handler;
};
-staticforward struct HandlerInfo handler_info[];
+staticforward struct HandlerInfo handler_info[64];
/* Convert an array of attributes and their values into a Python dict */
@@ -984,49 +984,49 @@ void pyxml_SetEndCdataSection( XML_Parser *parser,
statichere struct HandlerInfo handler_info[]=
{{"StartElementHandler",
pyxml_SetStartElementHandler,
- my_StartElementHandler},
+ (xmlhandler)my_StartElementHandler},
{"EndElementHandler",
pyxml_SetEndElementHandler,
- my_EndElementHandler},
+ (xmlhandler)my_EndElementHandler},
{"ProcessingInstructionHandler",
(xmlhandlersetter)XML_SetProcessingInstructionHandler,
- my_ProcessingInstructionHandler},
+ (xmlhandler)my_ProcessingInstructionHandler},
{"CharacterDataHandler",
(xmlhandlersetter)XML_SetCharacterDataHandler,
- my_CharacterDataHandler},
+ (xmlhandler)my_CharacterDataHandler},
{"UnparsedEntityDeclHandler",
(xmlhandlersetter)XML_SetUnparsedEntityDeclHandler,
- my_UnparsedEntityDeclHandler },
+ (xmlhandler)my_UnparsedEntityDeclHandler },
{"NotationDeclHandler",
(xmlhandlersetter)XML_SetNotationDeclHandler,
- my_NotationDeclHandler },
+ (xmlhandler)my_NotationDeclHandler },
{"StartNamespaceDeclHandler",
pyxml_SetStartNamespaceDeclHandler,
- my_StartNamespaceDeclHandler },
+ (xmlhandler)my_StartNamespaceDeclHandler },
{"EndNamespaceDeclHandler",
pyxml_SetEndNamespaceDeclHandler,
- my_EndNamespaceDeclHandler },
+ (xmlhandler)my_EndNamespaceDeclHandler },
{"CommentHandler",
(xmlhandlersetter)XML_SetCommentHandler,
- my_CommentHandler},
+ (xmlhandler)my_CommentHandler},
{"StartCdataSectionHandler",
pyxml_SetStartCdataSection,
- my_StartCdataSectionHandler},
+ (xmlhandler)my_StartCdataSectionHandler},
{"EndCdataSectionHandler",
pyxml_SetEndCdataSection,
- my_EndCdataSectionHandler},
+ (xmlhandler)my_EndCdataSectionHandler},
{"DefaultHandler",
(xmlhandlersetter)XML_SetDefaultHandler,
- my_DefaultHandler},
+ (xmlhandler)my_DefaultHandler},
{"DefaultHandlerExpand",
(xmlhandlersetter)XML_SetDefaultHandlerExpand,
- my_DefaultHandlerExpandHandler},
+ (xmlhandler)my_DefaultHandlerExpandHandler},
{"NotStandaloneHandler",
(xmlhandlersetter)XML_SetNotStandaloneHandler,
- my_NotStandaloneHandler},
+ (xmlhandler)my_NotStandaloneHandler},
{"ExternalEntityRefHandler",
(xmlhandlersetter)XML_SetExternalEntityRefHandler,
- my_ExternalEntityRefHandler },
+ (xmlhandler)my_ExternalEntityRefHandler },
{NULL, NULL, NULL } /* sentinel */
};