mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
Correct last patch and use outchar instead of PUTC to output single characters.
This commit is contained in:
parent
9247d73b24
commit
e642387cec
@ -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; \
|
||||
} \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user