summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-object.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/pdf/pdf-object.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/pdf/pdf-object.c')
-rw-r--r--source/pdf/pdf-object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index 736fe88b..86a204a6 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -2132,13 +2132,13 @@ int pdf_print_obj(fz_context *ctx, fz_output *out, pdf_obj *obj, int tight)
if ((n + 1) < sizeof buf)
{
pdf_sprint_obj(ctx, buf, sizeof buf, obj, tight);
- fz_write(ctx, out, buf, n);
+ fz_write_data(ctx, out, buf, n);
}
else
{
ptr = fz_malloc(ctx, n + 1);
pdf_sprint_obj(ctx, ptr, n + 1, obj, tight);
- fz_write(ctx, out, ptr, n);
+ fz_write_data(ctx, out, ptr, n);
fz_free(ctx, ptr);
}
return n;