diff options
author | Denys Vlasenko | 2013-02-25 01:24:32 +0100 |
---|---|---|
committer | Denys Vlasenko | 2013-02-25 01:24:32 +0100 |
commit | af0255f49681bcc78830a56af885e891eca210f4 (patch) | |
tree | 89fa748e057d2543c69205300f7614a4ef326fdf /coreutils/head_tail.c | |
parent | 8e6a1ea8250137d1dd9b0a37b7a1d6d596a91099 (diff) | |
download | busybox-af0255f49681bcc78830a56af885e891eca210f4.zip busybox-af0255f49681bcc78830a56af885e891eca210f4.tar.gz |
head,tail: use common suffix struct. simplify help text.
function old new delta
head_tail_suffixes - 32 +32
head_main 415 406 -9
packed_usage 29252 29234 -18
tail_suffixes 32 - -32
head_suffixes 32 - -32
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 0/2 up/down: 32/-91) Total: -59 bytes
text data bss dec hex filename
890474 497 7584 898555 db5fb busybox_old
890415 497 7584 898496 db5c0 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/head_tail.c')
-rw-r--r-- | coreutils/head_tail.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/coreutils/head_tail.c b/coreutils/head_tail.c new file mode 100644 index 0000000..1658c0d --- /dev/null +++ b/coreutils/head_tail.c @@ -0,0 +1,14 @@ +/* + * Copyright (C) 2013 Denys Vlasenko + * + * Licensed under GPLv2, see file LICENSE in this source tree. + */ +#include "libbb.h" +#include "head_tail.h" + +const struct suffix_mult head_tail_suffixes[] = { + { "b", 512 }, + { "k", 1024 }, + { "m", 1024*1024 }, + { "", 0 } +}; |