diff options
author | Guido van Rossum <guido@python.org> | 2000-03-31 16:18:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-03-31 16:18:11 (GMT) |
commit | 5961f5a06df92ba1722748da673d6353ca82a0bb (patch) | |
tree | 77f4be7a818b29a460149e3efa1f8150992cc06a | |
parent | 7025599f3d5d3b499c281e6f2d9b04e94f49ef43 (diff) | |
download | cpython-5961f5a06df92ba1722748da673d6353ca82a0bb.zip cpython-5961f5a06df92ba1722748da673d6353ca82a0bb.tar.gz cpython-5961f5a06df92ba1722748da673d6353ca82a0bb.tar.bz2 |
Make it compile on Windows.
-rw-r--r-- | Modules/pyexpat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index cdbbfe9..db0ae85 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -79,7 +79,7 @@ struct HandlerInfo{ xmlhandler handler; }; -static struct HandlerInfo handler_info[]; +staticforward struct HandlerInfo handler_info[]; static PyObject *conv_atts( XML_Char **atts){ PyObject *attrs_obj=NULL; @@ -147,8 +147,10 @@ static RC my_##NAME##Handler PARAMS {\ return RETURN; \ } +#define NOTHING /**/ + #define VOID_HANDLER( NAME, PARAMS, PARAM_FORMAT ) \ - RC_HANDLER( void, NAME, PARAMS, , PARAM_FORMAT, , ,\ + RC_HANDLER( void, NAME, PARAMS, NOTHING, PARAM_FORMAT, NOTHING, NOTHING,\ (xmlparseobject *)userData ) #define INT_HANDLER( NAME, PARAMS, PARAM_FORMAT )\ |