Commit d83c7eb4 by Benjamin Kosnik Committed by Benjamin Kosnik

locale.cc: Match orderings for static members.


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
parent 59889957
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> 2000-11-02 Gabriel Dos Reis <gdr@codesourcery.com>
* include/bits/std_complex.h (complex<>): Remove (cos<>, cosh<>, * include/bits/std_complex.h (complex<>): Remove (cos<>, cosh<>,
......
...@@ -240,18 +240,15 @@ namespace std ...@@ -240,18 +240,15 @@ namespace std
if (0 < __size) if (0 < __size)
{ {
_M_set_determinate(__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, streamoff __p = _M_file->seekoff(0 - __size, ios_base::cur,
ios_base::in); ios_base::in);
if (__p == -1) if (__p == -1)
{ {
// XXX Something is wrong, do error checking. // 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 #else
// 2000-08-04 bkoz disable // 2000-08-04 bkoz disable
......
...@@ -53,8 +53,8 @@ namespace std { ...@@ -53,8 +53,8 @@ namespace std {
const locale::category locale::messages; const locale::category locale::messages;
const locale::category locale::all; const locale::category locale::all;
locale::_Impl* locale::_S_global;
locale::_Impl* locale::_S_classic; locale::_Impl* locale::_S_classic;
locale::_Impl* locale::_S_global;
const int locale::_S_categories_num; const int locale::_S_categories_num;
const int locale::_S_facets_num; const int locale::_S_facets_num;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment