aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-11 00:35:01 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-11 00:35:01 +0000
commitb51f5d3ebded8f6db9a61d57fc05604a0e529daf (patch)
treeb92c13eadd6bd5c65908221861ad66a3bd326319 /libio
parentafe7ec58e8a498bf4c6ce6de3db30871c9bd16ac (diff)
* iostream.cc (ostream::operator<<(long double)): Don't use
labeled initializers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17842 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r--libio/ChangeLog5
-rw-r--r--libio/iostream.cc52
2 files changed, 31 insertions, 26 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog
index dff76cef605..fca6ef12272 100644
--- a/libio/ChangeLog
+++ b/libio/ChangeLog
@@ -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>
* config.shared (FLAGS_TO_PASS): Don't emit PICFLAG.
diff --git a/libio/iostream.cc b/libio/iostream.cc
index 96ebd6ee57a..500a9f3501c 100644
--- a/libio/iostream.cc
+++ b/libio/iostream.cc
@@ -621,21 +621,21 @@ ostream& ostream::operator<<(double n)
// Do actual conversion.
#if _G_HAVE_PRINTF_FP
{
- struct printf_info info = { prec: prec,
- width: width(0),
- spec: format_char,
- is_long_double: 0,
- is_short: 0,
- is_long: 0,
- alt: (flags() & ios::showpoint) != 0,
- space: 0,
- left: (flags() & ios::left) != 0,
- showsign: (flags() & ios::showpos) != 0,
- group: 0,
+ struct printf_info info = { /* prec: */ prec,
+ /* width: */ width(0),
+ /* spec: */ format_char,
+ /* is_long_double: */ 0,
+ /* is_short: */ 0,
+ /* is_long: */ 0,
+ /* alt: */ (flags() & ios::showpoint) != 0,
+ /* space: */ 0,
+ /* left: */ (flags() & ios::left) != 0,
+ /* showsign: */ (flags() & ios::showpos) != 0,
+ /* group: */ 0,
#if defined __GLIBC__ && __GLIBC__ >= 2
- extra: 0,
+ /* extra: */ 0,
#endif
- pad: fill()
+ /* pad: */ fill()
};
const void *ptr = (const void *) &n;
if (__printf_fp (rdbuf(), &info, &ptr) < 0)
@@ -724,21 +724,21 @@ ostream& ostream::operator<<(long double n)
#if _G_HAVE_PRINTF_FP
// Do actual conversion.
- struct printf_info info = { prec: prec,
- width: width(0),
- spec: format_char,
- is_long_double: 1,
- is_short: 0,
- is_long: 0,
- alt: (flags() & ios::showpoint) != 0,
- space: 0,
- left: (flags() & ios::left) != 0,
- showsign: (flags() & ios::showpos) != 0,
- group: 0,
+ struct printf_info info = { /* prec: */ prec,
+ /* width: */ width(0),
+ /* spec: */ format_char,
+ /* is_long_double: */ 1,
+ /* is_short: */ 0,
+ /* is_long: */ 0,
+ /* alt: */ (flags() & ios::showpoint) != 0,
+ /* space: */ 0,
+ /* left: */ (flags() & ios::left) != 0,
+ /* showsign: */ (flags() & ios::showpos) != 0,
+ /* group: */ 0,
#if defined __GLIBC__ && __GLIBC__ >= 2
- extra: 0,
+ /* extra: */ 0,
#endif
- pad: fill()
+ /* pad: */ fill()
};
const void *ptr = (const void *) &n;