hush/coreutils
Bartosz Golaszewski 79c618c411 Refactor catv. Move visible() from stty to libbb.
Fixes the following TODO:

  stty's visible() function and catv's guts are identical. Merge them into
  an appropriate libbb function.

Also makes catv behave exactly like coreutils' cat -v e.g. it'll print 'M-^I'
instead of 'M-   '.

function                                             old     new   delta
visible                                                -      70     +70
do_display                                           431     379     -52
catv_main                                            306     250     -56
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 70/-108)           Total: -38 bytes

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-07-30 06:29:42 +02:00
..
libcoreutils
basename.c
cal.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
cat.c
catv.c Refactor catv. Move visible() from stty to libbb. 2013-07-30 06:29:42 +02:00
chgrp.c
chmod.c
chown.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
chroot.c
cksum.c
comm.c
Config.src sha3sum: new applet 2013-01-14 05:20:50 +01:00
cp.c cp: trim help text 2012-03-05 10:09:18 +01:00
cut.c
date.c
dd.c
df.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
dirname.c
dos2unix.c
du.c
echo.c
env.c
expand.c
expr.c add INIT_G()'s. No code changes. 2011-09-21 01:59:15 +02:00
false.c
fold.c
fsync.c
head.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
hostid.c hostid: do not output sign-extended host id. Closes 6056 2013-03-04 03:04:38 +01:00
id_test.sh
id.c platform: use KERNEL_VERSION to simplify uClibc version checking 2013-03-12 11:13:22 -04:00
install.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
Kbuild.src head,tail: use common suffix struct. simplify help text. 2013-02-25 01:24:32 +01:00
length.c.disabled
ln.c ln: support -T and -v 2012-05-06 13:18:35 +02:00
logname.c
ls.c
md5_sha1_sum.c foo*sum: Correct syntax error 2013-07-04 11:33:42 +02:00
mkdir.c
mkfifo.c
mknod.c whitespace cleanup. no code changes 2013-01-14 15:57:44 +01:00
mv.c
nice.c
nohup.c
od_bloaty.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
od.c
printenv.c
printf.c
pwd.c
readlink.c readlink: note that our -f is really -e 2013-03-12 11:38:03 -04:00
realpath.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
rm.c
rmdir.c
seq.c
sleep.c
sort.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
split.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
stat.c libbb: introduce and use strftime_[YYYYMMDD]HHMMSS() 2013-03-29 12:30:33 +01:00
stty.c Refactor catv. Move visible() from stty to libbb. 2013-07-30 06:29:42 +02:00
sum.c whitespace fixes. no code changes 2013-01-15 13:58:01 +01:00
sync.c move help text from include/usage.src.h to coreutils/*.c 2011-03-31 14:43:25 +02:00
tac.c
tail.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
tee.c
test_ptr_hack.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
test.c whitespace cleanup. no code changes 2013-01-14 15:57:44 +01:00
touch.c touch: add new option FEATURE_TOUCH_SUSV3 2011-12-14 08:48:59 +01:00
tr.c
true.c
tty.c
uname.c
uniq.c
usleep.c
uudecode.c
uuencode.c
wc.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
who.c
whoami.c
yes.c