diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-15 17:26:52 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-22 12:07:26 +0100 |
commit | 8e791ab5cd73dc783aded93f2dd7c77d89623fe8 (patch) | |
tree | b96eb72513bf2dd89517cd59efee051b7b2a5286 /include | |
parent | cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c (diff) | |
download | mupdf-8e791ab5cd73dc783aded93f2dd7c77d89623fe8.tar.xz |
Always use %g for short-as-possible format character.
Call fz_append_string instead of fz_append_printf for static strings.
Call fz_write_string instead of fz_write_printf for static strings.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/output.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mupdf/fitz/output.h b/include/mupdf/fitz/output.h index d1282352..023153a9 100644 --- a/include/mupdf/fitz/output.h +++ b/include/mupdf/fitz/output.h @@ -273,8 +273,9 @@ static inline void fz_write_rune(fz_context *ctx, fz_output *out, int rune) /* fz_vsnprintf: Our customised vsnprintf routine. Takes %c, %d, %o, %s, %u, %x, as usual. Modifiers are not supported except for zero-padding ints (e.g. %02d, %03o, %04x, etc). - %f and %g both output in "as short as possible hopefully lossless non-exponent" form, + %g output in "as short as possible hopefully lossless non-exponent" form, see fz_ftoa for specifics. + %f and %e output as usual. %C outputs a utf8 encoded int. %M outputs a fz_matrix*. %R outputs a fz_rect*. %P outputs a fz_point*. %q and %( output escaped strings in C/PDF syntax. |