diff options
author | Paolo Carlini <pcarlini@suse.de> | 2006-11-12 10:37:00 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-11-12 10:37:00 +0000 |
commit | 56acf88c0fbd8bc29fbad418019fef503a3d0318 (patch) | |
tree | 7c7df613518f488656edd7eb4a0f3dcab1666847 /libstdc++-v3/src/bitmap_allocator.cc | |
parent | 41f1662296f971f89812fe9710a2d8e79c4a72b8 (diff) | |
download | gcc-56acf88c0fbd8bc29fbad418019fef503a3d0318.zip gcc-56acf88c0fbd8bc29fbad418019fef503a3d0318.tar.gz gcc-56acf88c0fbd8bc29fbad418019fef503a3d0318.tar.bz2 |
bitmap_allocator.h: Uglify some names.
2006-11-12 Paolo Carlini <pcarlini@suse.de>
* include/ext/bitmap_allocator.h: Uglify some names.
* include/ext/concurrence.h: Likewise.
* src/bitmap_allocator.cc: Likewise.
From-SVN: r118722
Diffstat (limited to 'libstdc++-v3/src/bitmap_allocator.cc')
-rw-r--r-- | libstdc++-v3/src/bitmap_allocator.cc | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/libstdc++-v3/src/bitmap_allocator.cc b/libstdc++-v3/src/bitmap_allocator.cc index 63208df..411c7a1 100644 --- a/libstdc++-v3/src/bitmap_allocator.cc +++ b/libstdc++-v3/src/bitmap_allocator.cc @@ -1,6 +1,6 @@ // Bitmap Allocator. Out of line function definitions. -*- C++ -*- -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -31,10 +31,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) - namespace balloc + namespace __balloc { - template class __mini_vector<std::pair<bitmap_allocator<char>::_Alloc_block*, bitmap_allocator<char>::_Alloc_block*> >; - template class __mini_vector<std::pair<bitmap_allocator<wchar_t>::_Alloc_block*, bitmap_allocator<wchar_t>::_Alloc_block*> >; + template class __mini_vector< + std::pair<bitmap_allocator<char>::_Alloc_block*, + bitmap_allocator<char>::_Alloc_block*> >; + + template class __mini_vector< + std::pair<bitmap_allocator<wchar_t>::_Alloc_block*, + bitmap_allocator<wchar_t>::_Alloc_block*> >; + template class __mini_vector<size_t*>; template size_t** __lower_bound(size_t**, size_t**, size_t const&, @@ -46,10 +52,10 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) _M_get(size_t __sz) throw(std::bad_alloc) { #if defined __GTHREADS - mutex_type& __bfl_mutex = _M_get_mutex(); + __mutex_type& __bfl_mutex = _M_get_mutex(); #endif const vector_type& __free_list = _M_get_free_list(); - using __gnu_cxx::balloc::__lower_bound; + using __gnu_cxx::__balloc::__lower_bound; iterator __tmp = __lower_bound(__free_list.begin(), __free_list.end(), __sz, _LT_pointer_compare()); @@ -71,7 +77,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) --__ctr; try { - __ret = reinterpret_cast<size_t*>(::operator new(__sz + sizeof(size_t))); + __ret = reinterpret_cast<size_t*> + (::operator new(__sz + sizeof(size_t))); } catch(...) { @@ -95,7 +102,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) } } - void + void free_list:: _M_clear() { |