locale.cc: Match orderings for static members.
authorBenjamin Kosnik <bkoz@purist.soma.redhat.com>
Thu, 2 Nov 2000 08:05:16 +0000 (08:05 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 2 Nov 2000 08:05:16 +0000 (08:05 +0000)
2000-11-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

* src/locale.cc: Match orderings for static members.
* include/bits/fstream.tcc: Fixes for cin.

From-SVN: r37200

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/src/locale.cc

index 2967ba0..56ef6cc 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
+
+       * src/locale.cc: Match orderings for static members.
+       * include/bits/fstream.tcc: Fixes for cin.
+
 2000-11-02  Gabriel Dos Reis  <gdr@codesourcery.com>
 
        * include/bits/std_complex.h (complex<>): Remove (cos<>, cosh<>,
index d3a5750..72940ea 100644 (file)
@@ -240,18 +240,15 @@ namespace std
              if (0 < __size)
                {
                  _M_set_determinate(__size);
+                 if (__testout)
+                   _M_out_cur = _M_in_cur;
+                 __ret = traits_type::to_int_type(*_M_in_cur);
                  streamoff __p = _M_file->seekoff(0 - __size, ios_base::cur, 
                                                   ios_base::in);
                  if (__p == -1)
                    {
                      // XXX Something is wrong, do error checking.
                    }
-                 else
-                   {
-                     if (__testout)
-                       _M_out_cur = _M_in_cur;
-                     __ret = traits_type::to_int_type(*_M_in_cur);
-                   }
                }
 #else
              // 2000-08-04 bkoz disable
index 4f886dc..782cec0 100644 (file)
@@ -53,8 +53,8 @@ namespace std {
   const locale::category       locale::messages;
   const locale::category       locale::all;
 
-  locale::_Impl*               locale::_S_global; 
   locale::_Impl*               locale::_S_classic;
+  locale::_Impl*               locale::_S_global; 
   const int                    locale::_S_categories_num;
   const int                    locale::_S_facets_num;