]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: improve handling of padding
authorEric Blake <ebb9@byu.net>
Thu, 12 Jun 2008 17:05:09 +0000 (11:05 -0600)
committerJim Meyering <meyering@redhat.com>
Fri, 13 Jun 2008 21:07:58 +0000 (23:07 +0200)
commit20c0b8701fda7e34f3a2f944d795da487274cf10
tree78b451e6a8d764f27387b26906fa303738d1b78f
parent46a811b9e7c0e9fefb75864d198f9a4f3fd0e6cf
od: improve handling of padding

* src/od.c (decode_one_format): Alter the format, again.
(FMT_BYTES_ALLOCATED): Reduce size by adjusting to new format.
(MAX_INTEGRAL_TYPE_SIZE): Move earlier in the file.
(charname): Turn it into a 2D array, since there's no need for
pointers now.
(PRINT_TYPE, print_named_ascii, print_ascii): Add a width
parameter.
(write_block): Account for width parameter.
Using ideas from Paul Eggert.
src/od.c