summaryrefslogtreecommitdiff
path: root/source/fitz/util.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-03-12 11:19:09 -0500
committerTor Andersson <tor.andersson@artifex.com>2017-03-22 12:07:26 +0100
commitcfb66cd25bbf31857b471735e5ff0f7c2aea4d3c (patch)
tree8d8d06c9e2c880611a3c8cc025d8c35fe38d59ba /source/fitz/util.c
parent3832d0c7ab87aa1f2b3a3dbebe43a37e4055d121 (diff)
downloadmupdf-cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c.tar.xz
Rename fz_putc/puts/printf to fz_write_*.
Rename fz_write to fz_write_data. Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*. Be consistent in naming: fz_write_* calls write to fz_output. fz_append_* calls append to fz_buffer. Update documentation.
Diffstat (limited to 'source/fitz/util.c')
-rw-r--r--source/fitz/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/util.c b/source/fitz/util.c
index 8d32346e..346ebaeb 100644
--- a/source/fitz/util.c
+++ b/source/fitz/util.c
@@ -464,11 +464,11 @@ fz_new_buffer_from_stext_page(fz_context *ctx, fz_stext_page *text, const fz_rec
if (need_newline)
{
if (crlf)
- fz_write_buffer_rune(ctx, buf, '\r');
- fz_write_buffer_rune(ctx, buf, '\n');
+ fz_append_byte(ctx, buf, '\r');
+ fz_append_byte(ctx, buf, '\n');
need_newline = 0;
}
- fz_write_buffer_rune(ctx, buf, c);
+ fz_append_rune(ctx, buf, c);
}
}
}