diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-07 20:53:31 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-07 20:53:31 +0000 |
commit | 7a2973ba2c4865f42d02a4f878ce51ab7d72c394 (patch) | |
tree | 0ca4fe90d624796cd039f4e8608c770774d44c70 /xps | |
parent | c4e870b5422207e6ca31eb2cd6694ba44faec21e (diff) | |
download | mupdf-7a2973ba2c4865f42d02a4f878ce51ab7d72c394.tar.xz |
More release tidyups.
Add some function documentation to fitz.h.
Add fz_ prefix to runetochar, chartorune, runelen etc. Change
fz_runetochar to avoid passing unnecessary pointer.
Diffstat (limited to 'xps')
-rw-r--r-- | xps/xps_glyphs.c | 2 | ||||
-rw-r--r-- | xps/xps_xml.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xps/xps_glyphs.c b/xps/xps_glyphs.c index 2c0b339d..6cdf420b 100644 --- a/xps/xps_glyphs.c +++ b/xps/xps_glyphs.c @@ -307,7 +307,7 @@ xps_parse_glyphs_imp(xps_document *doc, fz_matrix ctm, { if (us && un > 0) { - int t = chartorune(&char_code, us); + int t = fz_chartorune(&char_code, us); us += t; un -= t; } } diff --git a/xps/xps_xml.c b/xps/xps_xml.c index b6f3eea3..aee1568e 100644 --- a/xps/xps_xml.c +++ b/xps/xps_xml.c @@ -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; |