diff options
Diffstat (limited to 'Build/source/libs/expat/xmlwf/wfcheck.h')
-rw-r--r-- | Build/source/libs/expat/xmlwf/wfcheck.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Build/source/libs/expat/xmlwf/wfcheck.h b/Build/source/libs/expat/xmlwf/wfcheck.h new file mode 100644 index 00000000000..ea8fe573502 --- /dev/null +++ b/Build/source/libs/expat/xmlwf/wfcheck.h @@ -0,0 +1,38 @@ + +#include <stddef.h> + +enum WfCheckResult { + wellFormed, + noMemory, + syntaxError, + noElements, + invalidToken, + unclosedToken, + partialChar, + tagMismatch, + duplicateAttribute, + junkAfterDocElement, + paramEntityRef, + undefinedEntity, + recursiveEntityRef, + asyncEntity, + badCharRef, + binaryEntityRef, + attributeExternalEntityRef, + misplacedXmlPi, + unknownEncoding, + incorrectEncoding +}; + +enum EntityType { + documentEntity, + generalTextEntity +}; + +enum WfCheckResult wfCheck(enum EntityType entityType, + const char *s, size_t n, + const char **errorPtr, + unsigned long *errorLineNumber, + unsigned long *errorColNumber); +const char *wfCheckMessage(enum WfCheckResult); + |