diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-07-14 02:52:05 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-07-14 02:52:05 +0000 |
commit | f2ffecb11286fbe36b305bff8e8374214f6f9463 (patch) | |
tree | 94f2f4de4e06e819e5d44c00159d978e3bc98aae /libstdc++-v3 | |
parent | 4fab535ec6ff6ed08d42cfb58ba391cd20ef52a4 (diff) | |
download | gcc-f2ffecb11286fbe36b305bff8e8374214f6f9463.tar.gz |
c_locale.h: Include <cstdlib> and <cstring>.
* 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.
From-SVN: r69315
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 20 | ||||
-rw-r--r-- | libstdc++-v3/config/locale/generic/c_locale.h | 2 | ||||
-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 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/rope | 46 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/ropeimpl.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/stdio_filebuf.h | 8 |
16 files changed, 91 insertions, 69 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index dc28eafa12a..093758c937e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,23 @@ +2003-07-13 Mark Mitchell <mark@codesourcery.com> + + * 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. + 2003-07-11 Jerry Quinn <jlquinn@optonline.net> * include/bits/basic_ios.h (copyfmt): Document. diff --git a/libstdc++-v3/config/locale/generic/c_locale.h b/libstdc++-v3/config/locale/generic/c_locale.h index 0819a5cbe9c..72565fbe0d2 100644 --- a/libstdc++-v3/config/locale/generic/c_locale.h +++ b/libstdc++-v3/config/locale/generic/c_locale.h @@ -39,6 +39,8 @@ #pragma GCC system_header #include <clocale> +#include <cstdlib> +#include <cstring> #define _GLIBCXX_NUM_CATEGORIES 0 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 { diff --git a/libstdc++-v3/include/ext/rope b/libstdc++-v3/include/ext/rope index 9cb0d68b3ef..e28d0b6e8cc 100644 --- a/libstdc++-v3/include/ext/rope +++ b/libstdc++-v3/include/ext/rope @@ -606,9 +606,9 @@ struct _Rope_RopeLeaf : public _Rope_RopeRep<_CharT,_Alloc> { # ifndef __GC ~_Rope_RopeLeaf() { if (_M_data != this->_M_c_string) { - _M_free_c_string(); + this->_M_free_c_string(); } - __STL_FREE_STRING(_M_data, this->_M_size, get_allocator()); + __STL_FREE_STRING(_M_data, this->_M_size, this->get_allocator()); } # endif }; @@ -632,9 +632,9 @@ struct _Rope_RopeConcatenation : public _Rope_RopeRep<_CharT,_Alloc> { {} # ifndef __GC ~_Rope_RopeConcatenation() { - _M_free_c_string(); - _M_left->_M_unref_nonnil(); - _M_right->_M_unref_nonnil(); + this->_M_free_c_string(); + _M_left->_M_unref_nonnil(); + _M_right->_M_unref_nonnil(); } # endif }; @@ -678,7 +678,7 @@ struct _Rope_RopeFunction : public _Rope_RopeRep<_CharT,_Alloc> { } # ifndef __GC ~_Rope_RopeFunction() { - _M_free_c_string(); + this->_M_free_c_string(); if (_M_delete_when_done) { delete _M_fn; } @@ -979,33 +979,33 @@ class _Rope_const_iterator : public _Rope_iterator_base<_CharT,_Alloc> { this->_M_buf_ptr = __next; ++this->_M_current_pos; } else { - _M_incr(1); + this->_M_incr(1); } return *this; } _Rope_const_iterator& operator+=(ptrdiff_t __n) { if (__n >= 0) { - _M_incr(__n); + this->_M_incr(__n); } else { - _M_decr(-__n); + this->_M_decr(-__n); } return *this; } _Rope_const_iterator& operator--() { - _M_decr(1); + this->_M_decr(1); return *this; } _Rope_const_iterator& operator-=(ptrdiff_t __n) { if (__n >= 0) { - _M_decr(__n); + this->_M_decr(__n); } else { - _M_incr(-__n); + this->_M_incr(-__n); } return *this; } _Rope_const_iterator operator++(int) { size_t __old_pos = this->_M_current_pos; - _M_incr(1); + this->_M_incr(1); return _Rope_const_iterator<_CharT,_Alloc>(this->_M_root, __old_pos); // This makes a subsequent dereference expensive. // Perhaps we should instead copy the iterator @@ -1013,7 +1013,7 @@ class _Rope_const_iterator : public _Rope_iterator_base<_CharT,_Alloc> { } _Rope_const_iterator operator--(int) { size_t __old_pos = this->_M_current_pos; - _M_decr(1); + this->_M_decr(1); return _Rope_const_iterator<_CharT,_Alloc>(this->_M_root, __old_pos); } template<class _CharT2, class _Alloc2> @@ -1112,37 +1112,37 @@ class _Rope_iterator : public _Rope_iterator_base<_CharT,_Alloc> { } } _Rope_iterator& operator++() { - _M_incr(1); + this->_M_incr(1); return *this; } _Rope_iterator& operator+=(ptrdiff_t __n) { if (__n >= 0) { - _M_incr(__n); + this->_M_incr(__n); } else { - _M_decr(-__n); + this->_M_decr(-__n); } return *this; } _Rope_iterator& operator--() { - _M_decr(1); + this->_M_decr(1); return *this; } _Rope_iterator& operator-=(ptrdiff_t __n) { if (__n >= 0) { - _M_decr(__n); + this->_M_decr(__n); } else { - _M_incr(-__n); + this->_M_incr(-__n); } return *this; } _Rope_iterator operator++(int) { size_t __old_pos = this->_M_current_pos; - _M_incr(1); + this->_M_incr(1); return _Rope_iterator<_CharT,_Alloc>(_M_root_rope, __old_pos); } _Rope_iterator operator--(int) { size_t __old_pos = this->_M_current_pos; - _M_decr(1); + this->_M_decr(1); return _Rope_iterator<_CharT,_Alloc>(_M_root_rope, __old_pos); } reference operator[](ptrdiff_t __n) { @@ -1650,7 +1650,7 @@ class rope : public _Rope_base<_CharT,_Alloc> { { _RopeRep* __old = this->_M_tree_ptr; _RopeRep* __left = - __STL_ROPE_FROM_UNOWNED_CHAR_PTR(&__x, 1, get_allocator()); + __STL_ROPE_FROM_UNOWNED_CHAR_PTR(&__x, 1, this->get_allocator()); try { this->_M_tree_ptr = _S_concat(__left, this->_M_tree_ptr); _S_unref(__old); diff --git a/libstdc++-v3/include/ext/ropeimpl.h b/libstdc++-v3/include/ext/ropeimpl.h index 104b640989c..3c8b8673597 100644 --- a/libstdc++-v3/include/ext/ropeimpl.h +++ b/libstdc++-v3/include/ext/ropeimpl.h @@ -1455,7 +1455,7 @@ const _CharT* rope<_CharT,_Alloc>::c_str() const { if (0 == __result) { size_t __s = size(); - __result = _Data_allocate(__s + 1); + __result = this->_Data_allocate(__s + 1); _S_flatten(this->_M_tree_ptr, __result); __result[__s] = _S_eos((_CharT*)0); this->_M_tree_ptr->_M_c_string = __result; @@ -1480,7 +1480,7 @@ const _CharT* rope<_CharT,_Alloc>::replace_with_c_str() { _S_flatten(this->_M_tree_ptr, __result); __result[__s] = _S_eos((_CharT*)0); this->_M_tree_ptr->_M_unref_nonnil(); - this->_M_tree_ptr = _S_new_RopeLeaf(__result, __s, get_allocator()); + this->_M_tree_ptr = _S_new_RopeLeaf(__result, __s, this->get_allocator()); return(__result); } diff --git a/libstdc++-v3/include/ext/stdio_filebuf.h b/libstdc++-v3/include/ext/stdio_filebuf.h index 574a62b8160..8750f5801e3 100644 --- a/libstdc++-v3/include/ext/stdio_filebuf.h +++ b/libstdc++-v3/include/ext/stdio_filebuf.h @@ -126,10 +126,10 @@ namespace __gnu_cxx { this->_M_mode = __mode; this->_M_buf_size = __size; - _M_allocate_internal_buffer(); + this->_M_allocate_internal_buffer(); this->_M_reading = false; this->_M_writing = false; - _M_set_buffer(-1); + this->_M_set_buffer(-1); } } @@ -143,10 +143,10 @@ namespace __gnu_cxx { this->_M_mode = __mode; this->_M_buf_size = __size; - _M_allocate_internal_buffer(); + this->_M_allocate_internal_buffer(); this->_M_reading = false; this->_M_writing = false; - _M_set_buffer(-1); + this->_M_set_buffer(-1); } } } // namespace __gnu_cxx |