]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Modules/expat/xmlparse.c
AppPkg/Applications/Python: Add support for the pyexpat module.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Modules / expat / xmlparse.c
index cb84274d0ac4954744fa914c376984944ef36b9a..87ee2ea126d93d50985ea2064e5d29849b262843 100644 (file)
 #include <string.h>                     /* memset(), memcpy() */\r
 #include <assert.h>\r
 \r
+#if defined(UEFI_C_SOURCE)\r
+  #include <expat/expat.h>\r
+#else\r
 #include "expat.h"\r
+#endif\r
 \r
 #ifdef XML_UNICODE\r
 #define XML_ENCODE_MAX XML_UTF16_ENCODE_MAX\r
@@ -1493,6 +1497,10 @@ XML_Parse(XML_Parser parser, const char *s, int len, int isFinal)
           ps_parsing = XML_FINISHED;\r
           return result;\r
         }\r
+        break;\r
+      default:\r
+        /* XML_FINISHED case required by compiler - but not tested - djv */\r
+        return XML_STATUS_OK;\r
       }\r
     }\r
 \r