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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user