AppPkg/Applications/Python: Add support for the pyexpat module.

Add required flags to [BuildOptions] in PythonCore.inf.
Add initialization routine to Efi/config.c.
Alter #include targets if building for UEFI in expat_external.h and xmlparse.c.
Add expat modifications to PyMod-2.7.2/Modules/expat.

Contributed-under: TianoCore Contribution Agreement 1.0
Submitted-by:   Duane Voth <duanev@gmail.com>
Signed-off-by:  daryl.mcdaniel@intel.com
Reviewed-by:    duanev@gmail.com
Reviewed-by:    daryl.mcdaniel@intel.com


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14071 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
darylm503
2013-01-18 20:36:27 +00:00
parent 23b0693579
commit ffc6107d40
6 changed files with 6480 additions and 60 deletions

View File

@ -18,7 +18,11 @@
#include <string.h> /* memset(), memcpy() */
#include <assert.h>
#if defined(UEFI_C_SOURCE)
#include <expat/expat.h>
#else
#include "expat.h"
#endif
#ifdef XML_UNICODE
#define XML_ENCODE_MAX XML_UTF16_ENCODE_MAX
@ -1493,6 +1497,10 @@ XML_Parse(XML_Parser parser, const char *s, int len, int isFinal)
ps_parsing = XML_FINISHED;
return result;
}
break;
default:
/* XML_FINISHED case required by compiler - but not tested - djv */
return XML_STATUS_OK;
}
}