summaryrefslogtreecommitdiff
path: root/Build/source/extra/expat/xmlwf/wfcheckmessage.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/extra/expat/xmlwf/wfcheckmessage.c')
-rw-r--r--Build/source/extra/expat/xmlwf/wfcheckmessage.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/Build/source/extra/expat/xmlwf/wfcheckmessage.c b/Build/source/extra/expat/xmlwf/wfcheckmessage.c
new file mode 100644
index 00000000000..95e811f49dc
--- /dev/null
+++ b/Build/source/extra/expat/xmlwf/wfcheckmessage.c
@@ -0,0 +1,30 @@
+#include "wfcheck.h"
+
+const char *wfCheckMessage(enum WfCheckResult result)
+{
+ static const char *message[] = {
+ 0,
+ "out of memory",
+ "syntax error",
+ "no element found",
+ "not well-formed",
+ "unclosed token",
+ "unclosed token",
+ "mismatched tag",
+ "duplicate attribute",
+ "junk after document element",
+ "parameter entity reference not allowed within declaration in internal subset",
+ "undefined entity",
+ "recursive entity reference",
+ "asynchronous entity",
+ "reference to invalid character number",
+ "reference to binary entity",
+ "reference to external entity in attribute",
+ "xml pi not at start of external entity",
+ "unknown encoding",
+ "encoding specified in XML declaration is incorrect"
+ };
+ if (result > 0 && result < sizeof(message)/sizeof(message[0]))
+ return message[result];
+ return 0;
+}