aboutsummaryrefslogtreecommitdiff
path: root/editors/ed.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
commit4daad9004d8f07991516970a1cbd77756fae7041 (patch)
treef1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /editors/ed.c
parent1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff)
downloadbusybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz
busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.bz2
busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.zip
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'editors/ed.c')
-rw-r--r--editors/ed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/ed.c b/editors/ed.c
index cd3836aed..31185d9b6 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -853,14 +853,14 @@ static int printLines(int num1, int num2, int expandFlag)
853 ch &= 0x7f; 853 ch &= 0x7f;
854 } 854 }
855 if (ch < ' ') { 855 if (ch < ' ') {
856 fputc('^', stdout); 856 bb_putchar('^');
857 ch += '@'; 857 ch += '@';
858 } 858 }
859 if (ch == 0x7f) { 859 if (ch == 0x7f) {
860 fputc('^', stdout); 860 bb_putchar('^');
861 ch = '?'; 861 ch = '?';
862 } 862 }
863 fputc(ch, stdout); 863 bb_putchar(ch);
864 } 864 }
865 865
866 fputs("$\n", stdout); 866 fputs("$\n", stdout);