diff options
author | Mark Mitchell <mmitchell@usa.net> | 1998-02-11 00:35:01 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-02-10 19:35:01 -0500 |
commit | 9b713d5e5077b9bdb1376c09a7f07c817de0af16 (patch) | |
tree | b92c13eadd6bd5c65908221861ad66a3bd326319 /libio/iostream.cc | |
parent | 00c79232abd8b6bb1142b5aba51109075e780034 (diff) | |
download | gcc-9b713d5e5077b9bdb1376c09a7f07c817de0af16.zip gcc-9b713d5e5077b9bdb1376c09a7f07c817de0af16.tar.gz gcc-9b713d5e5077b9bdb1376c09a7f07c817de0af16.tar.bz2 |
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
Diffstat (limited to 'libio/iostream.cc')
-rw-r--r-- | libio/iostream.cc | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/libio/iostream.cc b/libio/iostream.cc index 96ebd6e..500a9f3 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; |