summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/printfcommon.h
Commit message (Collapse)AuthorAgeFilesLines
* Add support for multibyte thousands_sep encodings, e.g., U+066C.das2009-01-221-50/+5
| | | | | | | | The integer thousands' separator code is rewritten in order to avoid having to preallocate a buffer for the largest possible digit string with the most possible instances of the longest possible multibyte thousands' separator. The new version inserts thousands' separators for integers using the same code as floating point.
* Simplify printf's inlined output buffering routines. On amd64, thisdas2009-01-171-18/+18
| | | | reduces the code size by about 10% and improves performance slightly.
* Reduce code duplication by moving functions that are identical in bothdas2009-01-151-0/+216
| | | | | vfprintf.c and vfwprintf.c (except for char/wchar_t differences) to a common header file.
* Convert the insidious macros that handle printf()'s buffering intodas2009-01-151-0/+130
slightly less evil inline functions, and move the buffering state into a struct. This will make it possible for helper routines to produce output for printf() directly, making it possible to untangle the code somewhat. In wprintf(), use the same buffering mechanism to reduce diffs to printf(). This has the side-effect of causing wprintf() to catch write errors that it previously ignored.
OpenPOWER on IntegriCloud