diff options
Diffstat (limited to 'xps/xps_xml.c')
-rw-r--r-- | xps/xps_xml.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xps/xps_xml.c b/xps/xps_xml.c index 15c510a6..e2e958c8 100644 --- a/xps/xps_xml.c +++ b/xps/xps_xml.c @@ -1,5 +1,4 @@ -#include "fitz.h" -#include "muxps.h" +#include "muxps-internal.h" struct attribute { @@ -185,7 +184,7 @@ static void xml_emit_att_value(struct parser *parser, char *a, char *b) while (a < b) { if (*a == '&') { a += xml_parse_entity(&c, a); - s += runetochar(s, &c); + s += fz_runetochar(s, c); } else { *s++ = *a++; @@ -340,7 +339,7 @@ static char *convert_to_utf8(fz_context *doc, unsigned char *s, int n) dst = d = fz_malloc(doc, n * 2); while (s + 1 < e) { c = s[0] << 8 | s[1]; - d += runetochar(d, &c); + d += fz_runetochar(d, c); s += 2; } *d = 0; @@ -351,7 +350,7 @@ static char *convert_to_utf8(fz_context *doc, unsigned char *s, int n) dst = d = fz_malloc(doc, n * 2); while (s + 1 < e) { c = s[0] | s[1] << 8; - d += runetochar(d, &c); + d += fz_runetochar(d, c); s += 2; } *d = 0; |