diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-14 02:52:05 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-14 02:52:05 +0000 |
commit | 979a04507d13ef056c1d11a2979bbf42ebc5f3c3 (patch) | |
tree | 94f2f4de4e06e819e5d44c00159d978e3bc98aae /libstdc++-v3/include/bits | |
parent | dde836b51f72f58a1bf8aed4ebf7730cffe39a5c (diff) | |
download | ppe42-gcc-979a04507d13ef056c1d11a2979bbf42ebc5f3c3.tar.gz ppe42-gcc-979a04507d13ef056c1d11a2979bbf42ebc5f3c3.zip |
* config/locale/generic/c_locale.h: Include <cstdlib> and
<cstring>.
* include/bits/boost_concept_check.h: Add this-> to unqualified
method calls.
* include/bits/deque.tcc: Likewise.
* include/bits/locale_facets.h : Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/vector.tcc: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/stdio_filebuf.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits')
-rw-r--r-- | libstdc++-v3/include/bits/boost_concept_check.h | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/deque.tcc | 14 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets.h | 16 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/ostream.tcc | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_algo.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_bvector.h | 20 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_deque.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_list.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_tree.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_vector.h | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/vector.tcc | 6 |
11 files changed, 40 insertions, 40 deletions
diff --git a/libstdc++-v3/include/bits/boost_concept_check.h b/libstdc++-v3/include/bits/boost_concept_check.h index b3ef7afe8f9..f6e3b08d101 100644 --- a/libstdc++-v3/include/bits/boost_concept_check.h +++ b/libstdc++-v3/include/bits/boost_concept_check.h @@ -88,7 +88,7 @@ struct _Aux_require_same<_Tp,_Tp> { typedef _Tp _Type; }; template <class _Tp> struct _IntegerConcept { void __constraints() { - __error_type_must_be_an_integer_type(); + this->__error_type_must_be_an_integer_type(); } }; template <> struct _IntegerConcept<short> { void __constraints() {} }; @@ -104,7 +104,7 @@ struct _Aux_require_same<_Tp,_Tp> { typedef _Tp _Type; }; template <class _Tp> struct _SignedIntegerConcept { void __constraints() { - __error_type_must_be_a_signed_integer_type(); + this->__error_type_must_be_a_signed_integer_type(); } }; template <> struct _SignedIntegerConcept<short> { void __constraints() {} }; @@ -115,7 +115,7 @@ struct _Aux_require_same<_Tp,_Tp> { typedef _Tp _Type; }; template <class _Tp> struct _UnsignedIntegerConcept { void __constraints() { - __error_type_must_be_an_unsigned_integer_type(); + this->__error_type_must_be_an_unsigned_integer_type(); } }; template <> struct _UnsignedIntegerConcept<unsigned short> diff --git a/libstdc++-v3/include/bits/deque.tcc b/libstdc++-v3/include/bits/deque.tcc index 8164df5f769..dedab6a3112 100644 --- a/libstdc++-v3/include/bits/deque.tcc +++ b/libstdc++-v3/include/bits/deque.tcc @@ -268,7 +268,7 @@ namespace std _M_range_initialize(_InputIterator __first, _InputIterator __last, input_iterator_tag) { - _M_initialize_map(0); + this->_M_initialize_map(0); try { for ( ; __first != __last; ++__first) @@ -289,7 +289,7 @@ namespace std forward_iterator_tag) { size_type __n = std::distance(__first, __last); - _M_initialize_map(__n); + this->_M_initialize_map(__n); _Map_pointer __cur_node; try @@ -320,7 +320,7 @@ namespace std { value_type __t_copy = __t; _M_reserve_map_at_back(); - *(this->_M_finish._M_node + 1) = _M_allocate_node(); + *(this->_M_finish._M_node + 1) = this->_M_allocate_node(); try { std::_Construct(this->_M_finish._M_cur, __t_copy); @@ -342,7 +342,7 @@ namespace std { value_type __t_copy = __t; _M_reserve_map_at_front(); - *(this->_M_start._M_node - 1) = _M_allocate_node(); + *(this->_M_start._M_node - 1) = this->_M_allocate_node(); try { this->_M_start._M_set_node(this->_M_start._M_node - 1); @@ -631,7 +631,7 @@ namespace std try { for (__i = 1; __i <= __new_nodes; ++__i) - *(this->_M_start._M_node - __i) = _M_allocate_node(); + *(this->_M_start._M_node - __i) = this->_M_allocate_node(); } catch(...) { @@ -653,7 +653,7 @@ namespace std try { for (__i = 1; __i <= __new_nodes; ++__i) - *(this->_M_finish._M_node + __i) = _M_allocate_node(); + *(this->_M_finish._M_node + __i) = this->_M_allocate_node(); } catch(...) { @@ -692,7 +692,7 @@ namespace std size_type __new_map_size = this->_M_map_size + std::max(this->_M_map_size, __nodes_to_add) + 2; - _Map_pointer __new_map = _M_allocate_map(__new_map_size); + _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 + (__add_at_front ? __nodes_to_add : 0); std::copy(this->_M_start._M_node, diff --git a/libstdc++-v3/include/bits/locale_facets.h b/libstdc++-v3/include/bits/locale_facets.h index cda0dcba9df..2d680404fa4 100644 --- a/libstdc++-v3/include/bits/locale_facets.h +++ b/libstdc++-v3/include/bits/locale_facets.h @@ -773,14 +773,14 @@ namespace std numpunct_byname(const char* __s, size_t __refs = 0) : numpunct<_CharT>(__refs) { - _S_create_c_locale(_M_c_locale_numpunct, __s); - _M_initialize_numpunct(_M_c_locale_numpunct); + this->_S_create_c_locale(_M_c_locale_numpunct, __s); + this->_M_initialize_numpunct(_M_c_locale_numpunct); } protected: virtual ~numpunct_byname() - { _S_destroy_c_locale(_M_c_locale_numpunct); } + { this->_S_destroy_c_locale(_M_c_locale_numpunct); } }; template<typename _CharT, typename _InIter> @@ -1134,8 +1134,8 @@ namespace std collate_byname(const char* __s, size_t __refs = 0) : collate<_CharT>(__refs) { - _S_destroy_c_locale(this->_M_c_locale_collate); - _S_create_c_locale(this->_M_c_locale_collate, __s); + this->_S_destroy_c_locale(this->_M_c_locale_collate); + this->_S_create_c_locale(this->_M_c_locale_collate, __s); } protected: @@ -1717,14 +1717,14 @@ namespace std moneypunct_byname(const char* __s, size_t __refs = 0) : moneypunct<_CharT, _Intl>(__refs) { - _S_create_c_locale(_M_c_locale_moneypunct, __s); - _M_initialize_moneypunct(_M_c_locale_moneypunct); + this->_S_create_c_locale(_M_c_locale_moneypunct, __s); + this->_M_initialize_moneypunct(_M_c_locale_moneypunct); } protected: virtual ~moneypunct_byname() - { _S_destroy_c_locale(_M_c_locale_moneypunct); } + { this->_S_destroy_c_locale(_M_c_locale_moneypunct); } }; template<typename _CharT, bool _Intl> diff --git a/libstdc++-v3/include/bits/ostream.tcc b/libstdc++-v3/include/bits/ostream.tcc index 942a305825c..3d11b3b2144 100644 --- a/libstdc++-v3/include/bits/ostream.tcc +++ b/libstdc++-v3/include/bits/ostream.tcc @@ -387,7 +387,7 @@ namespace std sentry __cerb(*this); if (__cerb) { - int_type __put = rdbuf()->sputc(__c); + int_type __put = this->rdbuf()->sputc(__c); if (traits_type::eq_int_type(__put, traits_type::eof())) this->setstate(ios_base::badbit); } diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h index f4ba55346e3..b465df2140b 100644 --- a/libstdc++-v3/include/bits/stl_algo.h +++ b/libstdc++-v3/include/bits/stl_algo.h @@ -946,7 +946,7 @@ namespace std // concept requirements __glibcxx_function_requires(_OutputIteratorConcept<_OutputIterator, // "the type returned by a _Generator" - __typeof__(gen())>) + __typeof__(__gen())>) for ( ; __n > 0; --__n, ++__first) *__first = __gen(); diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index 755e581a005..15e0f57f166 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -373,7 +373,7 @@ template <typename _Alloc> protected: void _M_initialize(size_type __n) { - _Bit_type * __q = _M_bit_alloc(__n); + _Bit_type * __q = this->_M_bit_alloc(__n); this->_M_end_of_storage = __q + (__n + _S_word_bit - 1)/_S_word_bit; this->_M_start = iterator(__q, 0); this->_M_finish = this->_M_start + difference_type(__n); @@ -387,11 +387,11 @@ template <typename _Alloc> else { size_type __len = size() ? 2 * size() : static_cast<size_type>(_S_word_bit); - _Bit_type * __q = _M_bit_alloc(__len); + _Bit_type * __q = this->_M_bit_alloc(__len); iterator __i = std::copy(begin(), __position, iterator(__q, 0)); *__i++ = __x; this->_M_finish = std::copy(__position, end(), __i); - _M_deallocate(); + this->_M_deallocate(); this->_M_end_of_storage = __q + (__len + _S_word_bit - 1)/_S_word_bit; this->_M_start = iterator(__q, 0); } @@ -439,11 +439,11 @@ template <typename _Alloc> } else { size_type __len = size() + std::max(size(), __n); - _Bit_type * __q = _M_bit_alloc(__len); + _Bit_type * __q = this->_M_bit_alloc(__len); iterator __i = std::copy(begin(), __position, iterator(__q, 0)); __i = std::copy(__first, __last, __i); this->_M_finish = std::copy(__position, end(), __i); - _M_deallocate(); + this->_M_deallocate(); this->_M_end_of_storage = __q + (__len + _S_word_bit - 1)/_S_word_bit; this->_M_start = iterator(__q, 0); @@ -539,7 +539,7 @@ template <typename _Alloc> vector& operator=(const vector& __x) { if (&__x == this) return *this; if (__x.size() > capacity()) { - _M_deallocate(); + this->_M_deallocate(); _M_initialize(__x.size()); } std::copy(__x.begin(), __x.end(), begin()); @@ -609,9 +609,9 @@ template <typename _Alloc> if (__n > this->max_size()) __throw_length_error(__N("vector::reserve")); if (this->capacity() < __n) { - _Bit_type * __q = _M_bit_alloc(__n); + _Bit_type * __q = this->_M_bit_alloc(__n); this->_M_finish = std::copy(begin(), end(), iterator(__q, 0)); - _M_deallocate(); + this->_M_deallocate(); this->_M_start = iterator(__q, 0); this->_M_end_of_storage = __q + (__n + _S_word_bit - 1)/_S_word_bit; } @@ -682,11 +682,11 @@ template <typename _Alloc> } else { size_type __len = size() + std::max(size(), __n); - _Bit_type * __q = _M_bit_alloc(__len); + _Bit_type * __q = this->_M_bit_alloc(__len); iterator __i = std::copy(begin(), __position, iterator(__q, 0)); std::fill_n(__i, __n, __x); this->_M_finish = std::copy(__position, end(), __i + difference_type(__n)); - _M_deallocate(); + this->_M_deallocate(); this->_M_end_of_storage = __q + (__len + _S_word_bit - 1)/_S_word_bit; this->_M_start = iterator(__q, 0); } diff --git a/libstdc++-v3/include/bits/stl_deque.h b/libstdc++-v3/include/bits/stl_deque.h index e474ede80c0..b5733433bbc 100644 --- a/libstdc++-v3/include/bits/stl_deque.h +++ b/libstdc++-v3/include/bits/stl_deque.h @@ -532,7 +532,7 @@ namespace std try { for (__cur = __nstart; __cur < __nfinish; ++__cur) - *__cur = _M_allocate_node(); + *__cur = this->_M_allocate_node(); } catch(...) { diff --git a/libstdc++-v3/include/bits/stl_list.h b/libstdc++-v3/include/bits/stl_list.h index 6f5579e3770..5ddd78459b4 100644 --- a/libstdc++-v3/include/bits/stl_list.h +++ b/libstdc++-v3/include/bits/stl_list.h @@ -406,7 +406,7 @@ namespace std _Node* _M_create_node(const value_type& __x) { - _Node* __p = _M_get_node(); + _Node* __p = this->_M_get_node(); try { std::_Construct(&__p->_M_data, __x); } @@ -427,7 +427,7 @@ namespace std _Node* _M_create_node() { - _Node* __p = _M_get_node(); + _Node* __p = this->_M_get_node(); try { std::_Construct(&__p->_M_data); } diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h index 9ce52f336e0..920e591e09a 100644 --- a/libstdc++-v3/include/bits/stl_tree.h +++ b/libstdc++-v3/include/bits/stl_tree.h @@ -336,7 +336,7 @@ namespace std _Link_type _M_create_node(const value_type& __x) { - _Link_type __tmp = _M_get_node(); + _Link_type __tmp = this->_M_get_node(); try { std::_Construct(&__tmp->_M_value_field, __x); } catch(...) diff --git a/libstdc++-v3/include/bits/stl_vector.h b/libstdc++-v3/include/bits/stl_vector.h index 43d28210a09..e911697210d 100644 --- a/libstdc++-v3/include/bits/stl_vector.h +++ b/libstdc++-v3/include/bits/stl_vector.h @@ -153,7 +153,7 @@ namespace std _Vector_base(size_t __n, const allocator_type& __a) : _Base(__a) { - this->_M_start = _M_allocate(__n); + this->_M_start = this->_M_allocate(__n); this->_M_finish = this->_M_start; this->_M_end_of_storage = this->_M_start + __n; } @@ -753,7 +753,7 @@ namespace std _M_allocate_and_copy(size_type __n, _ForwardIterator __first, _ForwardIterator __last) { - pointer __result = _M_allocate(__n); + pointer __result = this->_M_allocate(__n); try { std::uninitialized_copy(__first, __last, __result); @@ -807,7 +807,7 @@ namespace std _ForwardIterator __last, forward_iterator_tag) { size_type __n = std::distance(__first, __last); - this->_M_start = _M_allocate(__n); + this->_M_start = this->_M_allocate(__n); this->_M_end_of_storage = this->_M_start + __n; this->_M_finish = std::uninitialized_copy(__first, __last, this->_M_start); diff --git a/libstdc++-v3/include/bits/vector.tcc b/libstdc++-v3/include/bits/vector.tcc index 7e65c4d9c8d..181b3596243 100644 --- a/libstdc++-v3/include/bits/vector.tcc +++ b/libstdc++-v3/include/bits/vector.tcc @@ -241,7 +241,7 @@ namespace std { const size_type __old_size = size(); const size_type __len = __old_size != 0 ? 2 * __old_size : 1; - iterator __new_start(_M_allocate(__len)); + iterator __new_start(this->_M_allocate(__len)); iterator __new_finish(__new_start); try { @@ -349,7 +349,7 @@ namespace std { const size_type __old_size = size(); const size_type __len = __old_size + std::max(__old_size, __n); - iterator __new_start(_M_allocate(__len)); + iterator __new_start(this->_M_allocate(__len)); iterator __new_finish(__new_start); try { @@ -426,7 +426,7 @@ namespace std { const size_type __old_size = size(); const size_type __len = __old_size + std::max(__old_size, __n); - iterator __new_start(_M_allocate(__len)); + iterator __new_start(this->_M_allocate(__len)); iterator __new_finish(__new_start); try { |