diff options
author | Panu Matilainen <Panu Matilainen pmatilai@redhat.com> | 2011-08-17 10:59:49 +0300 |
---|---|---|
committer | Panu Matilainen <Panu Matilainen pmatilai@redhat.com> | 2011-08-17 10:59:49 +0300 |
commit | 1f1e5e88a1f6c60cf2d11014d809000e97a63aad (patch) | |
tree | 0e6750e51b3d7b39b052142637f841d4ab715725 /rpmio | |
parent | 4387be59b3a541a3bf91546fdf396fdc76cc7a24 (diff) | |
download | rpm-1f1e5e88a1f6c60cf2d11014d809000e97a63aad.tar.gz rpm-1f1e5e88a1f6c60cf2d11014d809000e97a63aad.tar.bz2 rpm-1f1e5e88a1f6c60cf2d11014d809000e97a63aad.zip |
Handle query format field width centrally in formatValue()
- Eliminate the quirky formatPrefix buffer argument to formatter functions,
deal with the width at formatValue() if specified.
- This not only simplifies things a great deal, removes a nasty
unbounded buffer writing from formatter functions and speeds things
up somewhat by removing extra rasprintf()'s in many cases, it also
gives us width formatting of everything including "error messages"
like "(none)" and "(not a number)" which previously got dumped without
any formatting.
- The cost of this is the loss of zero padding support for numeric
data but that's hardly a big deal.
Diffstat (limited to 'rpmio')
0 files changed, 0 insertions, 0 deletions