diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-22 16:24:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-22 16:24:42 +0200 |
commit | 95d364ccd9f4650b46e5e308b38d449720a88a91 (patch) | |
tree | 18ef3b8761aed64f49d8956a4e1ffe6d25c73ddb /libxsde/xsde/c/expat/xmltok.h | |
parent | 5be9507b672e68aa4bc33768f56588674531a2bf (diff) |
Upgrade expat to 2.1.0
Diffstat (limited to 'libxsde/xsde/c/expat/xmltok.h')
-rw-r--r-- | libxsde/xsde/c/expat/xmltok.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libxsde/xsde/c/expat/xmltok.h b/libxsde/xsde/c/expat/xmltok.h index ca867aa..752007e 100644 --- a/libxsde/xsde/c/expat/xmltok.h +++ b/libxsde/xsde/c/expat/xmltok.h @@ -130,6 +130,12 @@ typedef int (PTRCALL *SCANNER)(const ENCODING *, const char *, const char **); +enum XML_Convert_Result { + XML_CONVERT_COMPLETED = 0, + XML_CONVERT_INPUT_INCOMPLETE = 1, + XML_CONVERT_OUTPUT_EXHAUSTED = 2 /* and therefore potentially input remaining as well */ +}; + struct encoding { SCANNER scanners[XML_N_STATES]; SCANNER literalScanners[XML_N_LITERAL_TYPES]; @@ -158,12 +164,12 @@ struct encoding { const char *ptr, const char *end, const char **badPtr); - void (PTRCALL *utf8Convert)(const ENCODING *enc, + enum XML_Convert_Result (PTRCALL *utf8Convert)(const ENCODING *enc, const char **fromP, const char *fromLim, char **toP, const char *toLim); - void (PTRCALL *utf16Convert)(const ENCODING *enc, + enum XML_Convert_Result (PTRCALL *utf16Convert)(const ENCODING *enc, const char **fromP, const char *fromLim, unsigned short **toP, |