aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/vfprintf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-05 00:36:41 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-05 00:36:41 +0000
commite41db95b9e5cb28662585eb70b7561149e80d47e (patch)
treeec9afd4c22e5f6fcb2f23a61bcc315675c474b6e /stdio-common/vfprintf.c
parentf5f7239f689b133a0fe6f1410a5bc77cf75f84fa (diff)
downloadglibc-e41db95b9e5cb28662585eb70b7561149e80d47e.zip
glibc-e41db95b9e5cb28662585eb70b7561149e80d47e.tar.gz
glibc-e41db95b9e5cb28662585eb70b7561149e80d47e.tar.bz2
Update.
* stdio-common/vfprintf.c: Correct last patch and use outchar instead of PUTC to output single characters.
Diffstat (limited to 'stdio-common/vfprintf.c')
-rw-r--r--stdio-common/vfprintf.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
index 0f892b1..d4145a7 100644
--- a/stdio-common/vfprintf.c
+++ b/stdio-common/vfprintf.c
@@ -711,16 +711,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; \
@@ -734,24 +734,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; \
} \
\