iostream.cc (ostream::operator<<(long double)): Don't use labeled initializers.
* iostream.cc (ostream::operator<<(long double)): Don't use labeled initializers. From-SVN: r17842
This commit is contained in:
parent
00c79232ab
commit
9b713d5e50
@ -1,3 +1,8 @@
|
|||||||
|
1998-02-10 Mark Mitchell <mmitchell@usa.net>
|
||||||
|
|
||||||
|
* iostream.cc (ostream::operator<<(long double)): Don't use
|
||||||
|
labeled initializers.
|
||||||
|
|
||||||
Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
|
Fri Feb 6 01:35:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
|
||||||
|
|
||||||
* config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
|
* config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
|
||||||
|
@ -621,21 +621,21 @@ ostream& ostream::operator<<(double n)
|
|||||||
// Do actual conversion.
|
// Do actual conversion.
|
||||||
#if _G_HAVE_PRINTF_FP
|
#if _G_HAVE_PRINTF_FP
|
||||||
{
|
{
|
||||||
struct printf_info info = { prec: prec,
|
struct printf_info info = { /* prec: */ prec,
|
||||||
width: width(0),
|
/* width: */ width(0),
|
||||||
spec: format_char,
|
/* spec: */ format_char,
|
||||||
is_long_double: 0,
|
/* is_long_double: */ 0,
|
||||||
is_short: 0,
|
/* is_short: */ 0,
|
||||||
is_long: 0,
|
/* is_long: */ 0,
|
||||||
alt: (flags() & ios::showpoint) != 0,
|
/* alt: */ (flags() & ios::showpoint) != 0,
|
||||||
space: 0,
|
/* space: */ 0,
|
||||||
left: (flags() & ios::left) != 0,
|
/* left: */ (flags() & ios::left) != 0,
|
||||||
showsign: (flags() & ios::showpos) != 0,
|
/* showsign: */ (flags() & ios::showpos) != 0,
|
||||||
group: 0,
|
/* group: */ 0,
|
||||||
#if defined __GLIBC__ && __GLIBC__ >= 2
|
#if defined __GLIBC__ && __GLIBC__ >= 2
|
||||||
extra: 0,
|
/* extra: */ 0,
|
||||||
#endif
|
#endif
|
||||||
pad: fill()
|
/* pad: */ fill()
|
||||||
};
|
};
|
||||||
const void *ptr = (const void *) &n;
|
const void *ptr = (const void *) &n;
|
||||||
if (__printf_fp (rdbuf(), &info, &ptr) < 0)
|
if (__printf_fp (rdbuf(), &info, &ptr) < 0)
|
||||||
@ -724,21 +724,21 @@ ostream& ostream::operator<<(long double n)
|
|||||||
|
|
||||||
#if _G_HAVE_PRINTF_FP
|
#if _G_HAVE_PRINTF_FP
|
||||||
// Do actual conversion.
|
// Do actual conversion.
|
||||||
struct printf_info info = { prec: prec,
|
struct printf_info info = { /* prec: */ prec,
|
||||||
width: width(0),
|
/* width: */ width(0),
|
||||||
spec: format_char,
|
/* spec: */ format_char,
|
||||||
is_long_double: 1,
|
/* is_long_double: */ 1,
|
||||||
is_short: 0,
|
/* is_short: */ 0,
|
||||||
is_long: 0,
|
/* is_long: */ 0,
|
||||||
alt: (flags() & ios::showpoint) != 0,
|
/* alt: */ (flags() & ios::showpoint) != 0,
|
||||||
space: 0,
|
/* space: */ 0,
|
||||||
left: (flags() & ios::left) != 0,
|
/* left: */ (flags() & ios::left) != 0,
|
||||||
showsign: (flags() & ios::showpos) != 0,
|
/* showsign: */ (flags() & ios::showpos) != 0,
|
||||||
group: 0,
|
/* group: */ 0,
|
||||||
#if defined __GLIBC__ && __GLIBC__ >= 2
|
#if defined __GLIBC__ && __GLIBC__ >= 2
|
||||||
extra: 0,
|
/* extra: */ 0,
|
||||||
#endif
|
#endif
|
||||||
pad: fill()
|
/* pad: */ fill()
|
||||||
};
|
};
|
||||||
|
|
||||||
const void *ptr = (const void *) &n;
|
const void *ptr = (const void *) &n;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user