diff options
Diffstat (limited to 'Modules/expat')
-rw-r--r-- | Modules/expat/expat_config.h | 19 | ||||
-rw-r--r-- | Modules/expat/xmlparse.c | 8 | ||||
-rw-r--r-- | Modules/expat/xmlrole.c | 4 | ||||
-rw-r--r-- | Modules/expat/xmltok.c | 4 |
4 files changed, 27 insertions, 8 deletions
diff --git a/Modules/expat/expat_config.h b/Modules/expat/expat_config.h new file mode 100644 index 0000000..b8c1639 --- /dev/null +++ b/Modules/expat/expat_config.h @@ -0,0 +1,19 @@ +/* + * Expat configuration for python. This file is not part of the expat + * distribution. + */ +#ifndef EXPAT_CONFIG_H +#define EXPAT_CONFIG_H + +#include <pyconfig.h> +#ifdef WORDS_BIGENDIAN +#define BYTEORDER 4321 +#else +#define BYTEORDER 1234 +#endif + +#define XML_NS 1 +#define XML_DTD 1 +#define XML_CONTEXT_BYTES 1024 + +#endif /* EXPAT_CONFIG_H */ diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c index 3372bc9..42d95b7 100644 --- a/Modules/expat/xmlparse.c +++ b/Modules/expat/xmlparse.c @@ -2,10 +2,6 @@ See the file COPYING for copying permission. */ -#include <stddef.h> -#include <string.h> /* memset(), memcpy() */ -#include <assert.h> - #define XML_BUILDING_EXPAT 1 #ifdef COMPILED_FROM_DSP @@ -16,6 +12,10 @@ #include <expat_config.h> #endif /* ndef COMPILED_FROM_DSP */ +#include <stddef.h> +#include <string.h> /* memset(), memcpy() */ +#include <assert.h> + #include "expat.h" #ifdef XML_UNICODE diff --git a/Modules/expat/xmlrole.c b/Modules/expat/xmlrole.c index 1924fcb..2587fdf 100644 --- a/Modules/expat/xmlrole.c +++ b/Modules/expat/xmlrole.c @@ -2,8 +2,6 @@ See the file COPYING for copying permission. */ -#include <stddef.h> - #ifdef COMPILED_FROM_DSP #include "winconfig.h" #elif defined(MACOS_CLASSIC) @@ -14,6 +12,8 @@ #endif #endif /* ndef COMPILED_FROM_DSP */ +#include <stddef.h> + #include "expat_external.h" #include "internal.h" #include "xmlrole.h" diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c index 160fa40..8b9d997 100644 --- a/Modules/expat/xmltok.c +++ b/Modules/expat/xmltok.c @@ -2,8 +2,6 @@ See the file COPYING for copying permission. */ -#include <stddef.h> - #ifdef COMPILED_FROM_DSP #include "winconfig.h" #elif defined(MACOS_CLASSIC) @@ -14,6 +12,8 @@ #endif #endif /* ndef COMPILED_FROM_DSP */ +#include <stddef.h> + #include "expat_external.h" #include "internal.h" #include "xmltok.h" |