Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-05-10 | Fix stack overflow in fz_vfprintf. | Tor Andersson | |
Thanks to Triet Lai. | |||
2014-03-25 | Add va_copy/va_copy_end macros to support both C89 and C99. | Tor Andersson | |
2014-03-25 | fix warnings in fitz/printf.c | Simon Bünzli | |
This fixes three instances of warning C4706, allows compilation with VS2013 and prevents an accidental va_end for when va_end is defined (which is the case for debug builds). | |||
2014-03-19 | Fix MSVC compiles of printf.c | Robin Watts | |
Stupid MSVC has no strtof. | |||
2014-03-19 | Add %q and %( formatting to fz_printf to print escaped strings. | Tor Andersson | |
%q escapes using C syntax and wraps the string in double quotes. %( escapes using PS/PDF syntax and wraps the string in parens. | |||
2014-03-19 | Implement our own vsnprintf variant. | Tor Andersson | |
The primary motivator for this is so that we can print floating point values and get the full accuracy out, without having to print 1.5 as 1.5000000, and without getting 23e24 etc. We only support %c, %f, %d, %o, %x and %s currently. We only support the zero padding qualifier, for integers. We do support some extensions: %C turns values >=128 into UTF-8. %M prints a fz_matrix. %R prints a fz_rect. %P prints a fz_point. We also implement a fprintf variant on top of this to allow for consistent results when using fz_output. a |