summaryrefslogtreecommitdiff
path: root/xps/xps_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'xps/xps_xml.c')
-rw-r--r--xps/xps_xml.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xps/xps_xml.c b/xps/xps_xml.c
index 15c510a6..aee1568e 100644
--- a/xps/xps_xml.c
+++ b/xps/xps_xml.c
@@ -1,4 +1,4 @@
-#include "fitz.h"
+#include "fitz-internal.h"
#include "muxps.h"
struct attribute
@@ -185,7 +185,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 +340,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 +351,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;