Yes. The diffs are attached.
On Fri, 3 Dec 2004 11:25:10 -0500, Isr Gish <[EMAIL PROTECTED]> wrote: > Hi Anthony > > >On the XML parsing front I did manage to produce a port of pyexpat for > >Windows CE that worked for me quite well. I posted the patches to this > >list a few weeks ago. They are quite small and self-contained so they > >probably could be included in the main distribution. > > Can you post the pyexpat port again? > > Thanks > Isr > >
--- /u01/src/Python-2.3.4/Modules/expat/xmlparse.c 2003-10-21 14:02:34.000000000 -0600 +++ xmlparse.c 2004-10-20 09:11:35.452299114 -0600 @@ -5648,7 +5648,7 @@ int blockSize = (pool->end - pool->start)*2; pool->blocks = (BLOCK *) pool->mem->realloc_fcn(pool->blocks, - (offsetof(BLOCK, s) + (sizeof(struct block*) + sizeof(int) + blockSize * sizeof(XML_Char))); if (pool->blocks == NULL) return XML_FALSE; @@ -5664,7 +5664,7 @@ blockSize = INIT_BLOCK_SIZE; else blockSize *= 2; - tem = (BLOCK *)pool->mem->malloc_fcn(offsetof(BLOCK, s) + tem = (BLOCK *)pool->mem->malloc_fcn(sizeof(struct block*) + sizeof(int) + blockSize * sizeof(XML_Char)); if (!tem) return XML_FALSE;
--- /u01/src/Python-2.3.4/Modules/expat/xmltok.c 2003-10-21 14:02:35.000000000 -0600 +++ xmltok.c 2004-10-20 09:13:03.429377702 -0600 @@ -2,6 +2,8 @@ See the file COPYING for copying permission. */ +#include <stdio.h> + #ifdef COMPILED_FROM_DSP #include "winconfig.h" #elif defined(MACOS_CLASSIC)
_______________________________________________ PythonCE mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/pythonce