mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
Update.
* stdio-common/vfprintf.c: Correct last patch and use outchar instead of PUTC to output single characters.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
1999-10-04 Ulrich Drepper <drepper@cygnus.com>
|
1999-10-04 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* stdio-common/vfprintf.c: Correct last patch and use outchar
|
||||||
|
instead of PUTC to output single characters.
|
||||||
|
|
||||||
* configure.in: Add additional options --with-gd-include and
|
* configure.in: Add additional options --with-gd-include and
|
||||||
--with-gd-lib to help people with strange installations.
|
--with-gd-lib to help people with strange installations.
|
||||||
|
|
||||||
|
@@ -711,16 +711,16 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
|
|||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
if (is_negative) \
|
if (is_negative) \
|
||||||
PUTC (L_('-'), s); \
|
outchar (L_('-')); \
|
||||||
else if (showsign) \
|
else if (showsign) \
|
||||||
PUTC (L_('+'), s); \
|
outchar (L_('+')); \
|
||||||
else if (space) \
|
else if (space) \
|
||||||
PUTC (L_(' '), s); \
|
outchar (L_(' ')); \
|
||||||
\
|
\
|
||||||
if (number.word != 0 && alt && base == 16) \
|
if (number.word != 0 && alt && base == 16) \
|
||||||
{ \
|
{ \
|
||||||
PUTC (L_('0'), s); \
|
outchar (L_('0')); \
|
||||||
PUTC (spec, s); \
|
outchar (spec); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
width += prec; \
|
width += prec; \
|
||||||
@@ -734,24 +734,24 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
|
|||||||
{ \
|
{ \
|
||||||
if (is_negative) \
|
if (is_negative) \
|
||||||
{ \
|
{ \
|
||||||
PUTC (L_('-'), s); \
|
outchar (L_('-')); \
|
||||||
--width; \
|
--width; \
|
||||||
} \
|
} \
|
||||||
else if (showsign) \
|
else if (showsign) \
|
||||||
{ \
|
{ \
|
||||||
PUTC (L_('+'), s); \
|
outchar (L_('+')); \
|
||||||
--width; \
|
--width; \
|
||||||
} \
|
} \
|
||||||
else if (space) \
|
else if (space) \
|
||||||
{ \
|
{ \
|
||||||
PUTC (L_(' '), s); \
|
outchar (L_(' ')); \
|
||||||
--width; \
|
--width; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
if (number.word != 0 && alt && base == 16) \
|
if (number.word != 0 && alt && base == 16) \
|
||||||
{ \
|
{ \
|
||||||
PUTC (L_('0'), s); \
|
outchar (L_('0')); \
|
||||||
PUTC (spec, s); \
|
outchar (spec); \
|
||||||
width -= 2; \
|
width -= 2; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
Reference in New Issue
Block a user