istream.tcc (ignore(streamsize), [...]): Reset _M_gcount to numeric_limits<streamsize>::min().

2005-01-03  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
	int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
	* src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
	basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
	* src/istream.cc (basic_istream<char>::ignore(streamsize),
	basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.

From-SVN: r92827
This commit is contained in:
Paolo Carlini 2005-01-03 14:07:26 +00:00 committed by Paolo Carlini
parent 86c7e0da54
commit ab4af6a549
3 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,12 @@
2005-01-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
* src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
* src/istream.cc (basic_istream<char>::ignore(streamsize),
basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
2005-01-02 Paolo Carlini <pcarlini@suse.de>
* src/istream.cc (basic_istream<char>::ignore(streamsize),

View File

@ -695,7 +695,7 @@ namespace std
}
if (__n == numeric_limits<streamsize>::max()
&& !traits_type::eq_int_type(__c, __eof))
_M_gcount = 0;
_M_gcount = numeric_limits<streamsize>::min();
else
break;
}
@ -742,7 +742,7 @@ namespace std
if (__n == numeric_limits<streamsize>::max()
&& !traits_type::eq_int_type(__c, __eof)
&& !traits_type::eq_int_type(__c, __delim))
_M_gcount = 0;
_M_gcount = numeric_limits<streamsize>::min();
else
break;
}

View File

@ -146,7 +146,7 @@ namespace std
}
if (__n == numeric_limits<streamsize>::max()
&& !traits_type::eq_int_type(__c, __eof))
_M_gcount == 0;
_M_gcount = numeric_limits<streamsize>::min();
else
break;
}
@ -211,7 +211,7 @@ namespace std
if (__n == numeric_limits<streamsize>::max()
&& !traits_type::eq_int_type(__c, __eof)
&& !traits_type::eq_int_type(__c, __delim))
_M_gcount = 0;
_M_gcount = numeric_limits<streamsize>::min();
else
break;
}
@ -424,7 +424,7 @@ namespace std
}
if (__n == numeric_limits<streamsize>::max()
&& !traits_type::eq_int_type(__c, __eof))
_M_gcount == 0;
_M_gcount = numeric_limits<streamsize>::min();
else
break;
}
@ -489,7 +489,7 @@ namespace std
if (__n == numeric_limits<streamsize>::max()
&& !traits_type::eq_int_type(__c, __eof)
&& !traits_type::eq_int_type(__c, __delim))
_M_gcount = 0;
_M_gcount = numeric_limits<streamsize>::min();
else
break;
}