]> gcc.gnu.org Git - gcc.git/commitdiff
iostream.cc (ostream::operator<<(long double)): Don't use labeled initializers.
authorMark Mitchell <mmitchell@usa.net>
Wed, 11 Feb 1998 00:35:01 +0000 (00:35 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 11 Feb 1998 00:35:01 +0000 (19:35 -0500)
* iostream.cc (ostream::operator<<(long double)): Don't use
labeled initializers.

From-SVN: r17842

libio/ChangeLog
libio/iostream.cc

index dff76cef6051d9c551b33fe4ff0d57c07623a9eb..fca6ef12272b2da2bdfb5df39451d37f5e574f44 100644 (file)
@@ -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.
index 96ebd6ee57a85fd0e475dfc647c6a4779ca8cf38..500a9f3501ca9c1f1d7572ef1cf4135cfde361b7 100644 (file)
@@ -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;
This page took 0.065426 seconds and 5 git commands to generate.