From 4daad9004d8f07991516970a1cbd77756fae7041 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 27 Sep 2007 10:20:47 +0000 Subject: introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). --- editors/ed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editors/ed.c') 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) 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); -- cgit v1.2.3