od: code shrink, fix "od --traditional FILE"

function                                             old     new   delta
parse_old_offset                                     107     125     +18
packed_usage                                       28715   28691     -24
od_main                                             2312    2275     -37

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-05-21 17:43:06 +02:00
parent 232ebaa568
commit 5c10fa5c24
3 changed files with 121 additions and 121 deletions

View File

@ -11,11 +11,12 @@
* Original copyright notice is retained at the end of this file.
*/
//usage:#if !ENABLE_DESKTOP
//usage:#define od_trivial_usage
//usage: "[-aBbcDdeFfHhIiLlOovXx] " IF_DESKTOP("[-t TYPE] ") "[FILE]"
//usage: "[-aBbcDdeFfHhIiLlOovXx] [FILE]"
//usage:#define od_full_usage "\n\n"
//usage: "Write an unambiguous representation, octal bytes by default, of FILE\n"
//usage: "(or stdin) to stdout"
//usage: "Print FILE (or stdin) unambiguously, as octal bytes by default"
//usage:#endif
#include "libbb.h"
#if ENABLE_DESKTOP