From: Ulrich Drepper Date: Tue, 5 Oct 1999 00:38:18 +0000 (+0000) Subject: Correct last patch and use outchar instead of PUTC to output single characters. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e642387cec1fefe4f0d85cb756f3788c1ffa2859;p=thirdparty%2Fglibc.git Correct last patch and use outchar instead of PUTC to output single characters. --- diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index ce565e70d5b..3703e535f66 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -677,16 +677,16 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap) } \ \ if (is_negative) \ - PUTC (L_('-'), s); \ + outchar (L_('-')); \ else if (showsign) \ - PUTC (L_('+'), s); \ + outchar (L_('+')); \ else if (space) \ - PUTC (L_(' '), s); \ + outchar (L_(' ')); \ \ if (number.word != 0 && alt && base == 16) \ { \ - PUTC (L_('0'), s); \ - PUTC (spec, s); \ + outchar (L_('0')); \ + outchar (spec); \ } \ \ width += prec; \ @@ -700,24 +700,24 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap) { \ if (is_negative) \ { \ - PUTC (L_('-'), s); \ + outchar (L_('-')); \ --width; \ } \ else if (showsign) \ { \ - PUTC (L_('+'), s); \ + outchar (L_('+')); \ --width; \ } \ else if (space) \ { \ - PUTC (L_(' '), s); \ + outchar (L_(' ')); \ --width; \ } \ \ if (number.word != 0 && alt && base == 16) \ { \ - PUTC (L_('0'), s); \ - PUTC (spec, s); \ + outchar (L_('0')); \ + outchar (spec); \ width -= 2; \ } \ \