]> gcc.gnu.org Git - gcc.git/commitdiff
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 2967ba036681df9997cc07003702138ed5adfc96..56ef6ccad894b7916ff7616b34196e7c1e1e2a8e 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 d3a57501097415b8b7c4aa72bb4d6a995674fee4..72940ea87cd828609dce5bab065258a169eb84af 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 4f886dcf56512d996df0bedd502d9f46ef1943ef..782cec0a234b7dcf7bb32cf07715f427218d9fb8 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;
 
This page took 0.067415 seconds and 5 git commands to generate.