summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-03-15 17:26:52 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-03-22 12:07:26 +0100
commit8e791ab5cd73dc783aded93f2dd7c77d89623fe8 (patch)
treeb96eb72513bf2dd89517cd59efee051b7b2a5286 /include
parentcfb66cd25bbf31857b471735e5ff0f7c2aea4d3c (diff)
downloadmupdf-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.h3
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.