commit | 4daad9004d8f07991516970a1cbd77756fae7041 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Thu Sep 27 10:20:47 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Thu Sep 27 10:20:47 2007 +0000 |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 [diff] [blame] |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
diff --git a/editors/ed.c b/editors/ed.c index cd3836a..31185d9 100644 --- a/editors/ed.c +++ b/editors/ed.c
@@ -853,14 +853,14 @@ ch &= 0x7f; } if (ch < ' ') { - fputc('^', stdout); + bb_putchar('^'); ch += '@'; } if (ch == 0x7f) { - fputc('^', stdout); + bb_putchar('^'); ch = '?'; } - fputc(ch, stdout); + bb_putchar(ch); } fputs("$\n", stdout);