+2006-05-10 Marc Glisse <marc.glisse@normalesup.org>
+
+ * include/ext/pool_allocator.h: Add missing std:: qualifications.
+ * include/ext/mt_allocator.h: Likewise.
+ * include/ext/pb_assoc/detail/resize_policy/
+ hash_load_check_resize_trigger_imp.hpp: Likewise.
+ * include/ext/pb_assoc/detail/resize_policy/
+ hash_standard_resize_policy_imp.hpp: Likewise.
+ * include/ext/pb_assoc/detail/lu_policy/
+ counter_lu_metadata_imp.hpp: Likewise.
+ * include/ext/pb_assoc/detail/map_debug_base.hpp: Likewise.
+ * libsupc++/eh_alloc.cc: Typo: memcpy -> memset.
+
2006-05-07 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (integral_constant<>::value): Define.
// MT-optimized allocator -*- C++ -*-
-// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2003, 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
: _M_align(_S_align), _M_max_bytes(_S_max_bytes), _M_min_bin(_S_min_bin),
_M_chunk_size(_S_chunk_size), _M_max_threads(_S_max_threads),
_M_freelist_headroom(_S_freelist_headroom),
- _M_force_new(getenv("GLIBCXX_FORCE_NEW") ? true : false)
+ _M_force_new(std::getenv("GLIBCXX_FORCE_NEW") ? true : false)
{ }
explicit
sizeof(_Tp) * size_t(_Tune::_S_chunk_size),
_Tune::_S_max_threads,
_Tune::_S_freelist_headroom,
- getenv("GLIBCXX_FORCE_NEW") ? true : false);
+ std::getenv("GLIBCXX_FORCE_NEW") ? true : false);
static pool_type _S_pool(_S_tune);
return _S_pool;
}
// -*- C++ -*-
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
PB_ASSOC_CLASS_C_DEC::
operator()(size_type m_max_count) const
{
- return (counter_lu_metadata<Size_Type>(rand() % m_max_count));
+ return (counter_lu_metadata<Size_Type>(std::rand() % m_max_count));
}
PB_ASSOC_CLASS_T_DEC
// -*- C++ -*-
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
set_throw_prob(0);
if (m_key_set.find(r_key) != m_key_set.end())
- abort();
+ std::abort();
try
{
erase_existing(const_key_reference r_key)
{
if (m_key_set.find(r_key) == m_key_set.end())
- abort();
+ std::abort();
m_key_set.erase(r_key);
if (m_key_set.find(r_key) != m_key_set.end())
- abort();
+ std::abort();
}
PB_ASSOC_CLASS_T_DEC
check_key_exists(const_key_reference r_key) const
{
if (m_key_set.find(r_key) == m_key_set.end())
- abort();
+ std::abort();
}
PB_ASSOC_CLASS_T_DEC
check_key_does_not_exist(const_key_reference r_key) const
{
if (m_key_set.find(r_key) != m_key_set.end())
- abort();
+ std::abort();
}
PB_ASSOC_CLASS_T_DEC
const size_type key_set_size = m_key_set.size();
if (size != key_set_size)
- abort();
+ std::abort();
}
PB_ASSOC_CLASS_T_DEC
// -*- C++ -*-
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
PB_ASSOC_CLASS_C_DEC::
do_resize(size_type /*new_size*/)
{
- abort();
+ std::abort();
}
#ifdef PB_ASSOC_HT_LOAD_CHECK_RESIZE_TRIGGER_DEBUG
// -*- C++ -*-
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
do_resize(size_type /*new_size*/)
{
// Tmp Ami
- abort();
+ std::abort();
}
PB_ASSOC_CLASS_T_DEC
// Allocators -*- C++ -*-
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 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
// to efficiently support threading found in basic_string.h.
if (_S_force_new == 0)
{
- if (getenv("GLIBCXX_FORCE_NEW"))
+ if (std::getenv("GLIBCXX_FORCE_NEW"))
__atomic_add(&_S_force_new, 1);
else
__atomic_add(&_S_force_new, -1);
#if _GLIBCXX_HOSTED
using std::free;
using std::malloc;
-using std::memcpy;
+using std::memset;
#else
// In a freestanding environment, these functions may not be available
// -- but for now, we assume that they are.