diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-02-04 17:06:50 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-02-04 23:18:18 +0000 |
commit | d13793b9e3511b0a1ada04c1863527e2bc948f1a (patch) | |
tree | af9e79f45fea8043cb165f33a4cc0e9fbe508254 /fitz/fitz-internal.h | |
parent | fc9281079e0b15a219337fe6e1ad8f8d1389bad1 (diff) | |
download | mupdf-d13793b9e3511b0a1ada04c1863527e2bc948f1a.tar.xz |
Add fz_output, and make output functions use it.
Various functions in the code output to FILE *, when there are times
we'd like them to output to other things, such as fz_buffers.
Add an fz_output type, together with fz_printf to allow things to
output to this.
Diffstat (limited to 'fitz/fitz-internal.h')
-rw-r--r-- | fitz/fitz-internal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 4839af7d..7e817190 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -651,11 +651,11 @@ void fz_write_buffer_bits(fz_context *ctx, fz_buffer *buf, int val, int bits); void fz_write_buffer_pad(fz_context *ctx, fz_buffer *buf); /* - fz_buffer_printf: print formatted to a buffer. The buffer will - grow, but the caller must ensure that no more than 256 bytes are - added to the buffer per call. + fz_buffer_printf: print formatted to a buffer. The buffer will grow + as required. */ -void fz_buffer_printf(fz_context *ctx, fz_buffer *buffer, const char *fmt, ...); +int fz_buffer_printf(fz_context *ctx, fz_buffer *buffer, const char *fmt, ...); +int fz_buffer_vprintf(fz_context *ctx, fz_buffer *buffer, const char *fmt, va_list args); /* fz_buffer_printf: print a string formatted as a pdf string to a buffer. |