diff options
author | kan <kan@FreeBSD.org> | 2004-07-28 03:12:05 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-07-28 03:12:05 +0000 |
commit | 96bad46eee8bf907dceb152bbb9d128bed5a4956 (patch) | |
tree | 75ef0e6da73746d6849e25a0996ae34e1aeff51d /contrib/libstdc++/include/backward | |
parent | 5e00ec74d8ce58f99801200d4d3d0412c7cc1b28 (diff) | |
download | FreeBSD-src-96bad46eee8bf907dceb152bbb9d128bed5a4956.zip FreeBSD-src-96bad46eee8bf907dceb152bbb9d128bed5a4956.tar.gz |
Gcc 3.4.2 20040728 C++ support bits.
Diffstat (limited to 'contrib/libstdc++/include/backward')
36 files changed, 309 insertions, 282 deletions
diff --git a/contrib/libstdc++/include/backward/algo.h b/contrib/libstdc++/include/backward/algo.h index a3554a8..6f24835 100644 --- a/contrib/libstdc++/include/backward/algo.h +++ b/contrib/libstdc++/include/backward/algo.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_ALGO_H -#define _CPP_BACKWARD_ALGO_H 1 +#ifndef _BACKWARD_ALGO_H +#define _BACKWARD_ALGO_H 1 #include "backward_warning.h" #include "algobase.h" @@ -66,57 +66,57 @@ #include <ext/numeric> // Names from <stl_algo.h> -using std::for_each; -using std::find; -using std::find_if; -using std::adjacent_find; -using std::count; -using std::count_if; -using std::search; -using std::search_n; -using std::swap_ranges; -using std::transform; -using std::replace; -using std::replace_if; -using std::replace_copy; -using std::replace_copy_if; -using std::generate; -using std::generate_n; -using std::remove; -using std::remove_if; -using std::remove_copy; -using std::remove_copy_if; -using std::unique; -using std::unique_copy; -using std::reverse; -using std::reverse_copy; -using std::rotate; -using std::rotate_copy; -using std::random_shuffle; -using std::partition; -using std::stable_partition; -using std::sort; -using std::stable_sort; -using std::partial_sort; -using std::partial_sort_copy; -using std::nth_element; -using std::lower_bound; -using std::upper_bound; -using std::equal_range; -using std::binary_search; -using std::merge; -using std::inplace_merge; -using std::includes; -using std::set_union; -using std::set_intersection; -using std::set_difference; -using std::set_symmetric_difference; -using std::min_element; -using std::max_element; -using std::next_permutation; -using std::prev_permutation; -using std::find_first_of; -using std::find_end; +using std::for_each; +using std::find; +using std::find_if; +using std::adjacent_find; +using std::count; +using std::count_if; +using std::search; +using std::search_n; +using std::swap_ranges; +using std::transform; +using std::replace; +using std::replace_if; +using std::replace_copy; +using std::replace_copy_if; +using std::generate; +using std::generate_n; +using std::remove; +using std::remove_if; +using std::remove_copy; +using std::remove_copy_if; +using std::unique; +using std::unique_copy; +using std::reverse; +using std::reverse_copy; +using std::rotate; +using std::rotate_copy; +using std::random_shuffle; +using std::partition; +using std::stable_partition; +using std::sort; +using std::stable_sort; +using std::partial_sort; +using std::partial_sort_copy; +using std::nth_element; +using std::lower_bound; +using std::upper_bound; +using std::equal_range; +using std::binary_search; +using std::merge; +using std::inplace_merge; +using std::includes; +using std::set_union; +using std::set_intersection; +using std::set_difference; +using std::set_symmetric_difference; +using std::min_element; +using std::max_element; +using std::next_permutation; +using std::prev_permutation; +using std::find_first_of; +using std::find_end; // Names from stl_heap.h using std::push_heap; @@ -125,24 +125,24 @@ using std::make_heap; using std::sort_heap; // Names from stl_numeric.h -using std::accumulate; -using std::inner_product; -using std::partial_sum; -using std::adjacent_difference; +using std::accumulate; +using std::inner_product; +using std::partial_sum; +using std::adjacent_difference; // Names from ext/algorithm -using __gnu_cxx::random_sample; +using __gnu_cxx::random_sample; using __gnu_cxx::random_sample_n; -using __gnu_cxx::is_sorted; +using __gnu_cxx::is_sorted; using __gnu_cxx::is_heap; using __gnu_cxx::count; // Extension returning void using __gnu_cxx::count_if; // Extension returning void // Names from ext/numeric -using __gnu_cxx::power; -using __gnu_cxx::iota; +using __gnu_cxx::power; +using __gnu_cxx::iota; -#endif /* _CPP_BACKWARD_ALGO_H */ +#endif /* _BACKWARD_ALGO_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/algobase.h b/contrib/libstdc++/include/backward/algobase.h index 1606559..86028a0 100644 --- a/contrib/libstdc++/include/backward/algobase.h +++ b/contrib/libstdc++/include/backward/algobase.h @@ -52,8 +52,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_ALGOBASE_H -#define _CPP_BACKWARD_ALGOBASE_H 1 +#ifndef _BACKWARD_ALGOBASE_H +#define _BACKWARD_ALGOBASE_H 1 #include "backward_warning.h" #include "pair.h" @@ -64,17 +64,17 @@ #include <ext/memory> // Names from stl_algobase.h -using std::iter_swap; -using std::swap; -using std::min; -using std::max; -using std::copy; -using std::copy_backward; -using std::fill; -using std::fill_n; -using std::mismatch; -using std::equal; -using std::lexicographical_compare; +using std::iter_swap; +using std::swap; +using std::min; +using std::max; +using std::copy; +using std::copy_backward; +using std::fill; +using std::fill_n; +using std::mismatch; +using std::equal; +using std::lexicographical_compare; // Names from stl_uninitialized.h using std::uninitialized_copy; @@ -82,13 +82,13 @@ using std::uninitialized_fill; using std::uninitialized_fill_n; // Names from ext/algorithm -using __gnu_cxx::copy_n; -using __gnu_cxx::lexicographical_compare_3way; +using __gnu_cxx::copy_n; +using __gnu_cxx::lexicographical_compare_3way; // Names from ext/memory using __gnu_cxx::uninitialized_copy_n; -#endif /* _CPP_BACKWARD_ALGOBASE_H */ +#endif /* _BACKWARD_ALGOBASE_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/alloc.h b/contrib/libstdc++/include/backward/alloc.h index 9482e4c..d3c3c73 100644 --- a/contrib/libstdc++/include/backward/alloc.h +++ b/contrib/libstdc++/include/backward/alloc.h @@ -1,6 +1,6 @@ // Backward-compat support -*- C++ -*- -// Copyright (C) 2001 Free Software Foundation, Inc. +// Copyright (C) 2001, 2003, 2004 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 @@ -40,19 +40,13 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_ALLOC_H -#define _CPP_BACKWARD_ALLOC_H 1 +#ifndef _BACKWARD_ALLOC_H +#define _BACKWARD_ALLOC_H 1 #include "backward_warning.h" #include <bits/c++config.h> -#include <bits/stl_alloc.h> +#include <bits/allocator.h> -using std::__malloc_alloc_template; -using std::__simple_alloc; -using std::__debug_alloc; -using std::__alloc; -using std::__single_client_alloc; using std::allocator; -using std::__default_alloc_template; -#endif +#endif diff --git a/contrib/libstdc++/include/backward/backward_warning.h b/contrib/libstdc++/include/backward/backward_warning.h index 0f007bf..9e13777 100644 --- a/contrib/libstdc++/include/backward/backward_warning.h +++ b/contrib/libstdc++/include/backward/backward_warning.h @@ -25,15 +25,15 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_BACKWARD_WARNING_H -#define _CPP_BACKWARD_BACKWARD_WARNING_H 1 +#ifndef _BACKWARD_BACKWARD_WARNING_H +#define _BACKWARD_BACKWARD_WARNING_H 1 #ifdef __DEPRECATED #warning This file includes at least one deprecated or antiquated header. \ Please consider using one of the 32 headers found in section 17.4.1.2 of the \ C++ standard. Examples include substituting the <X> header for the <X.h> \ -header for C++ includes, or <sstream> instead of the deprecated header \ -<strstream.h>. To disable this warning use -Wno-deprecated. +header for C++ includes, or <iostream> instead of the deprecated header \ +<iostream.h>. To disable this warning use -Wno-deprecated. #endif #endif diff --git a/contrib/libstdc++/include/backward/bvector.h b/contrib/libstdc++/include/backward/bvector.h index b114052..9245792 100644 --- a/contrib/libstdc++/include/backward/bvector.h +++ b/contrib/libstdc++/include/backward/bvector.h @@ -1,6 +1,6 @@ // Backward-compat support -*- C++ -*- -// Copyright (C) 2001 Free Software Foundation, Inc. +// Copyright (C) 2001, 2004 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 @@ -53,16 +53,15 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef __SGI_STL_BVECTOR_H -#define __SGI_STL_BVECTOR_H - +#ifndef _BACKWARD_BVECTOR_H +#define _BACKWARD_BVECTOR_H 1 #include "backward_warning.h" #include <vector> -using std::bit_vector; +typedef std::vector<bool, std::allocator<bool> > bit_vector; -#endif /* __SGI_STL_BVECTOR_H */ +#endif /* _BACKWARD_BVECTOR_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/complex.h b/contrib/libstdc++/include/backward/complex.h index 0e72174..dfc6714 100644 --- a/contrib/libstdc++/include/backward/complex.h +++ b/contrib/libstdc++/include/backward/complex.h @@ -25,16 +25,16 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_COMPLEX_H -#define _CPP_BACKWARD_COMPLEX_H 1 +#ifndef _BACKWARD_COMPLEX_H +#define _BACKWARD_COMPLEX_H 1 #include "backward_warning.h" #include <complex> using std::complex; -typedef complex<float> float_complex; -typedef complex<double> double_complex; -typedef complex<long double> long_double_complex; +typedef complex<float> float_complex; +typedef complex<double> double_complex; +typedef complex<long double> long_double_complex; #endif diff --git a/contrib/libstdc++/include/backward/defalloc.h b/contrib/libstdc++/include/backward/defalloc.h index 264e296..76ea52a 100644 --- a/contrib/libstdc++/include/backward/defalloc.h +++ b/contrib/libstdc++/include/backward/defalloc.h @@ -47,20 +47,20 @@ // This file WILL BE REMOVED in a future release. // // DO NOT USE THIS FILE unless you have an old container implementation -// that requires an allocator with the HP-style interface. +// that requires an allocator with the HP-style interface. // // Standard-conforming allocators have a very different interface. The // standard default allocator is declared in the header <memory>. -#ifndef _CPP_BACKWARD_DEFALLOC_H -#define _CPP_BACKWARD_DEFALLOC_H 1 +#ifndef _BACKWARD_DEFALLOC_H +#define _BACKWARD_DEFALLOC_H 1 #include "backward_warning.h" #include "new.h" #include <stddef.h> #include <stdlib.h> -#include <limits.h> -#include "iostream.h" +#include <limits.h> +#include "iostream.h" #include "algobase.h" @@ -69,7 +69,7 @@ inline _Tp* allocate(ptrdiff_t __size, _Tp*) { set_new_handler(0); _Tp* __tmp = (_Tp*)(::operator new((size_t)(__size * sizeof(_Tp)))); if (__tmp == 0) { - cerr << "out of memory" << endl; + cerr << "out of memory" << endl; exit(1); } return __tmp; @@ -91,19 +91,19 @@ public: typedef const _Tp& const_reference; typedef size_t size_type; typedef ptrdiff_t difference_type; - pointer allocate(size_type __n) { + pointer allocate(size_type __n) { return ::allocate((difference_type)__n, (pointer)0); } void deallocate(pointer __p) { ::deallocate(__p); } pointer address(reference __x) { return (pointer)&__x; } - const_pointer const_address(const_reference __x) { - return (const_pointer)&__x; + const_pointer const_address(const_reference __x) { + return (const_pointer)&__x; } - size_type init_page_size() { - return max(size_type(1), size_type(4096/sizeof(_Tp))); + size_type init_page_size() { + return max(size_type(1), size_type(4096/sizeof(_Tp))); } - size_type max_size() const { - return max(size_type(1), size_type(UINT_MAX/sizeof(_Tp))); + size_type max_size() const { + return max(size_type(1), size_type(UINT_MAX/sizeof(_Tp))); } }; @@ -114,4 +114,4 @@ public: -#endif /* _CPP_BACKWARD_DEFALLOC_H */ +#endif /* _BACKWARD_DEFALLOC_H */ diff --git a/contrib/libstdc++/include/backward/deque.h b/contrib/libstdc++/include/backward/deque.h index 983ae07..36c7479 100644 --- a/contrib/libstdc++/include/backward/deque.h +++ b/contrib/libstdc++/include/backward/deque.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_DEQUE_H -#define _CPP_BACKWARD_DEQUE_H 1 +#ifndef _BACKWARD_DEQUE_H +#define _BACKWARD_DEQUE_H 1 #include "backward_warning.h" #include "algobase.h" @@ -63,7 +63,7 @@ using std::deque; -#endif /* _CPP_BACKWARD_DEQUE_H */ +#endif /* _BACKWARD_DEQUE_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/fstream.h b/contrib/libstdc++/include/backward/fstream.h index 44461f4..6dfd514 100644 --- a/contrib/libstdc++/include/backward/fstream.h +++ b/contrib/libstdc++/include/backward/fstream.h @@ -25,8 +25,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_FSTREAM_H -#define _CPP_BACKWARD_FSTREAM_H 1 +#ifndef _BACKWARD_FSTREAM_H +#define _BACKWARD_FSTREAM_H 1 #include "backward_warning.h" #include <fstream> @@ -37,7 +37,7 @@ using std::ofstream; using std::fstream; using std::streampos; -#ifdef _GLIBCPP_USE_WCHAR_T +#ifdef _GLIBCXX_USE_WCHAR_T using std::wfilebuf; using std::wifstream; using std::wofstream; diff --git a/contrib/libstdc++/include/backward/function.h b/contrib/libstdc++/include/backward/function.h index bc96f49..9fc8719 100644 --- a/contrib/libstdc++/include/backward/function.h +++ b/contrib/libstdc++/include/backward/function.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_FUNCTION_H -#define _CPP_BACKWARD_FUNCTION_H 1 +#ifndef _BACKWARD_FUNCTION_H +#define _BACKWARD_FUNCTION_H 1 #include "backward_warning.h" #include <bits/c++config.h> @@ -63,67 +63,67 @@ #include <ext/functional> // Names from stl_function.h -using std::unary_function; -using std::binary_function; -using std::plus; -using std::minus; -using std::multiplies; -using std::divides; -using std::modulus; -using std::negate; -using std::equal_to; -using std::not_equal_to; -using std::greater; -using std::less; -using std::greater_equal; -using std::less_equal; -using std::logical_and; -using std::logical_or; -using std::logical_not; -using std::unary_negate; -using std::binary_negate; -using std::not1; -using std::not2; -using std::binder1st; -using std::binder2nd; -using std::bind1st; -using std::bind2nd; -using std::pointer_to_unary_function; -using std::pointer_to_binary_function; -using std::ptr_fun; -using std::mem_fun_t; -using std::const_mem_fun_t; -using std::mem_fun_ref_t; -using std::const_mem_fun_ref_t; -using std::mem_fun1_t; -using std::const_mem_fun1_t; -using std::mem_fun1_ref_t; -using std::const_mem_fun1_ref_t; -using std::mem_fun; -using std::mem_fun_ref; +using std::unary_function; +using std::binary_function; +using std::plus; +using std::minus; +using std::multiplies; +using std::divides; +using std::modulus; +using std::negate; +using std::equal_to; +using std::not_equal_to; +using std::greater; +using std::less; +using std::greater_equal; +using std::less_equal; +using std::logical_and; +using std::logical_or; +using std::logical_not; +using std::unary_negate; +using std::binary_negate; +using std::not1; +using std::not2; +using std::binder1st; +using std::binder2nd; +using std::bind1st; +using std::bind2nd; +using std::pointer_to_unary_function; +using std::pointer_to_binary_function; +using std::ptr_fun; +using std::mem_fun_t; +using std::const_mem_fun_t; +using std::mem_fun_ref_t; +using std::const_mem_fun_ref_t; +using std::mem_fun1_t; +using std::const_mem_fun1_t; +using std::mem_fun1_ref_t; +using std::const_mem_fun1_ref_t; +using std::mem_fun; +using std::mem_fun_ref; // Names from ext/functional -using __gnu_cxx::identity_element; -using __gnu_cxx::unary_compose; -using __gnu_cxx::binary_compose; -using __gnu_cxx::compose1; -using __gnu_cxx::compose2; -using __gnu_cxx::identity; -using __gnu_cxx::select1st; -using __gnu_cxx::select2nd; -using __gnu_cxx::project1st; -using __gnu_cxx::project2nd; -using __gnu_cxx::constant_void_fun; -using __gnu_cxx::constant_unary_fun; -using __gnu_cxx::constant_binary_fun; -using __gnu_cxx::constant0; -using __gnu_cxx::constant1; -using __gnu_cxx::constant2; -using __gnu_cxx::subtractive_rng; -using __gnu_cxx::mem_fun1; -using __gnu_cxx::mem_fun1_ref; +using __gnu_cxx::identity_element; +using __gnu_cxx::unary_compose; +using __gnu_cxx::binary_compose; +using __gnu_cxx::compose1; +using __gnu_cxx::compose2; +using __gnu_cxx::identity; +using __gnu_cxx::select1st; +using __gnu_cxx::select2nd; +using __gnu_cxx::project1st; +using __gnu_cxx::project2nd; +using __gnu_cxx::constant_void_fun; +using __gnu_cxx::constant_unary_fun; +using __gnu_cxx::constant_binary_fun; +using __gnu_cxx::constant0; +using __gnu_cxx::constant1; +using __gnu_cxx::constant2; +using __gnu_cxx::subtractive_rng; +using __gnu_cxx::mem_fun1; +using __gnu_cxx::mem_fun1_ref; -#endif /* _CPP_BACKWARD_FUNCTION_H */ +#endif /* _BACKWARD_FUNCTION_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/hash_map.h b/contrib/libstdc++/include/backward/hash_map.h index 25c177a..bc9c148 100644 --- a/contrib/libstdc++/include/backward/hash_map.h +++ b/contrib/libstdc++/include/backward/hash_map.h @@ -53,8 +53,8 @@ * */ -#ifndef _CPP_BACKWARD_HASH_MAP_H -#define _CPP_BACKWARD_HASH_MAP_H 1 +#ifndef _BACKWARD_HASH_MAP_H +#define _BACKWARD_HASH_MAP_H 1 #include "backward_warning.h" #include "algobase.h" @@ -65,7 +65,7 @@ using __gnu_cxx::hashtable; using __gnu_cxx::hash_map; using __gnu_cxx::hash_multimap; -#endif /* _CPP_BACKWARD_HASH_MAP_H */ +#endif /* _BACKWARD_HASH_MAP_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/hash_set.h b/contrib/libstdc++/include/backward/hash_set.h index ddb7a75..89307de 100644 --- a/contrib/libstdc++/include/backward/hash_set.h +++ b/contrib/libstdc++/include/backward/hash_set.h @@ -53,8 +53,8 @@ * */ -#ifndef _CPP_BACKWARD_HASH_SET_H -#define _CPP_BACKWARD_HASH_SET_H 1 +#ifndef _BACKWARD_HASH_SET_H +#define _BACKWARD_HASH_SET_H 1 #include "backward_warning.h" #include "algobase.h" @@ -65,5 +65,5 @@ using __gnu_cxx::hashtable; using __gnu_cxx::hash_set; using __gnu_cxx::hash_multiset; -#endif /* _CPP_BACKWARD_HASH_SET_H */ +#endif /* _BACKWARD_HASH_SET_H */ diff --git a/contrib/libstdc++/include/backward/hashtable.h b/contrib/libstdc++/include/backward/hashtable.h index bbad516..abedd55 100644 --- a/contrib/libstdc++/include/backward/hashtable.h +++ b/contrib/libstdc++/include/backward/hashtable.h @@ -57,11 +57,11 @@ * You should not attempt to use it directly. */ -#ifndef _CPP_BACKWARD_HASHTABLE_H -#define _CPP_BACKWARD_HASHTABLE_H 1 +#ifndef _BACKWARD_HASHTABLE_H +#define _BACKWARD_HASHTABLE_H 1 #include "backward_warning.h" -#include <ext/stl_hashtable.h> +#include <ext/hashtable.h> #include "algo.h" #include "alloc.h" #include "vector.h" @@ -69,7 +69,7 @@ using __gnu_cxx::hash; using __gnu_cxx::hashtable; -#endif /* _CPP_BACKWARD_HASHTABLE_H */ +#endif /* _BACKWARD_HASHTABLE_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/heap.h b/contrib/libstdc++/include/backward/heap.h index 9308f0e..2f19545 100644 --- a/contrib/libstdc++/include/backward/heap.h +++ b/contrib/libstdc++/include/backward/heap.h @@ -52,8 +52,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_HEAP_H -#define _CPP_BACKWARD_HEAP_H 1 +#ifndef _BACKWARD_HEAP_H +#define _BACKWARD_HEAP_H 1 #include "backward_warning.h" #include <bits/c++config.h> @@ -64,7 +64,7 @@ using std::pop_heap; using std::make_heap; using std::sort_heap; -#endif /* _CPP_BACKWARD_HEAP_H */ +#endif /* _BACKWARD_HEAP_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/iomanip.h b/contrib/libstdc++/include/backward/iomanip.h index 53286cd..160dbeb 100644 --- a/contrib/libstdc++/include/backward/iomanip.h +++ b/contrib/libstdc++/include/backward/iomanip.h @@ -25,8 +25,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_IOMANIP_H -#define _CPP_BACKWARD_IOMANIP_H 1 +#ifndef _BACKWARD_IOMANIP_H +#define _BACKWARD_IOMANIP_H 1 #include "backward_warning.h" #include "iostream.h" diff --git a/contrib/libstdc++/include/backward/iostream.h b/contrib/libstdc++/include/backward/iostream.h index 5346d9d..5a5ccea 100644 --- a/contrib/libstdc++/include/backward/iostream.h +++ b/contrib/libstdc++/include/backward/iostream.h @@ -25,8 +25,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_IOSTREAM_H -#define _CPP_BACKWARD_IOSTREAM_H 1 +#ifndef _BACKWARD_IOSTREAM_H +#define _BACKWARD_IOSTREAM_H 1 #include "backward_warning.h" #include <iostream> @@ -41,7 +41,7 @@ using std::cout; using std::cin; using std::cerr; using std::clog; -#ifdef _GLIBCPP_USE_WCHAR_T +#ifdef _GLIBCXX_USE_WCHAR_T using std::wcout; using std::wcin; using std::wcerr; diff --git a/contrib/libstdc++/include/backward/istream.h b/contrib/libstdc++/include/backward/istream.h index 059e774..707b575 100644 --- a/contrib/libstdc++/include/backward/istream.h +++ b/contrib/libstdc++/include/backward/istream.h @@ -25,8 +25,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_ISTREAM_H -#define _CPP_BACKWARD_ISTREAM_H 1 +#ifndef _BACKWARD_ISTREAM_H +#define _BACKWARD_ISTREAM_H 1 #include "backward_warning.h" #include "iostream.h" diff --git a/contrib/libstdc++/include/backward/iterator.h b/contrib/libstdc++/include/backward/iterator.h index 179f457..8316a83 100644 --- a/contrib/libstdc++/include/backward/iterator.h +++ b/contrib/libstdc++/include/backward/iterator.h @@ -1,3 +1,32 @@ +// Backward-compat support -*- C++ -*- + +// Copyright (C) 2001, 2004 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 +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 2, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING. If not, write to the Free +// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, +// USA. + +// As a special exception, you may use this file as part of a free software +// library without restriction. Specifically, if other files instantiate +// templates or use macros or inline functions from this file, or you compile +// this file and link it with other files to produce an executable, this +// file does not by itself cause the resulting executable to be covered by +// the GNU General Public License. This exception does not however +// invalidate any other reasons why the executable file might be covered by +// the GNU General Public License. + /* * * Copyright (c) 1994 @@ -24,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_ITERATOR_H -#define _CPP_BACKWARD_ITERATOR_H 1 +#ifndef _BACKWARD_ITERATOR_H +#define _BACKWARD_ITERATOR_H 1 #include "backward_warning.h" #include "function.h" @@ -116,7 +145,7 @@ template<class _Iter> using std::distance; using __gnu_cxx::distance; // 3-parameter extension -using std::advance; +using std::advance; using std::insert_iterator; using std::front_insert_iterator; @@ -145,7 +174,7 @@ template <class _Tp> inline void destroy(_Tp* __pointer) { std::_Destroy(__pointer); } - + template <class _ForwardIterator> inline void destroy(_ForwardIterator __first, _ForwardIterator __last) @@ -155,7 +184,7 @@ template <class _ForwardIterator> // Names from stl_raw_storage_iter.h using std::raw_storage_iterator; -#endif /* _CPP_BACKWARD_ITERATOR_H */ +#endif /* _BACKWARD_ITERATOR_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/list.h b/contrib/libstdc++/include/backward/list.h index 350a92a..00c11a6 100644 --- a/contrib/libstdc++/include/backward/list.h +++ b/contrib/libstdc++/include/backward/list.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_LIST_H -#define _CPP_BACKWARD_LIST_H 1 +#ifndef _BACKWARD_LIST_H +#define _BACKWARD_LIST_H 1 #include "backward_warning.h" #include "algobase.h" @@ -63,7 +63,7 @@ using std::list; -#endif /* _CPP_BACKWARD_LIST_H */ +#endif /* _BACKWARD_LIST_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/map.h b/contrib/libstdc++/include/backward/map.h index 00f606d..56d5c69 100644 --- a/contrib/libstdc++/include/backward/map.h +++ b/contrib/libstdc++/include/backward/map.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_MAP_H -#define _CPP_BACKWARD_MAP_H 1 +#ifndef _BACKWARD_MAP_H +#define _BACKWARD_MAP_H 1 #include "backward_warning.h" #include "tree.h" @@ -62,7 +62,7 @@ using std::map; -#endif /* _CPP_BACKWARD_MAP_H */ +#endif /* _BACKWARD_MAP_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/multimap.h b/contrib/libstdc++/include/backward/multimap.h index b9cdc84..aba42f7 100644 --- a/contrib/libstdc++/include/backward/multimap.h +++ b/contrib/libstdc++/include/backward/multimap.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_MULTIMAP_H -#define _CPP_BACKWARD_MULTIMAP_H 1 +#ifndef _BACKWARD_MULTIMAP_H +#define _BACKWARD_MULTIMAP_H 1 #include "backward_warning.h" #include "tree.h" @@ -62,7 +62,7 @@ using std::multimap; -#endif /* _CPP_BACKWARD_MULTIMAP_H */ +#endif /* _BACKWARD_MULTIMAP_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/multiset.h b/contrib/libstdc++/include/backward/multiset.h index 8aa7fd3..7ec0c94 100644 --- a/contrib/libstdc++/include/backward/multiset.h +++ b/contrib/libstdc++/include/backward/multiset.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_MULTISET_H -#define _CPP_BACKWARD_MULTISET_H 1 +#ifndef _BACKWARD_MULTISET_H +#define _BACKWARD_MULTISET_H 1 #include "backward_warning.h" #include "tree.h" @@ -62,7 +62,7 @@ using std::multiset; -#endif /* _CPP_BACKWARD_MULTISET_H */ +#endif /* _BACKWARD_MULTISET_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/new.h b/contrib/libstdc++/include/backward/new.h index 8e4c5c9..00a4819 100644 --- a/contrib/libstdc++/include/backward/new.h +++ b/contrib/libstdc++/include/backward/new.h @@ -1,20 +1,20 @@ // -*- C++ -*- forwarding header. // Copyright (C) 2000 Free Software Foundation -// This file is part of GNU CC. +// This file is part of GCC. // -// GNU CC is free software; you can redistribute it and/or modify +// GCC is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2, or (at your option) // any later version. -// -// GNU CC is distributed in the hope that it will be useful, +// +// GCC is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License -// along with GNU CC; see the file COPYING. If not, write to +// along with GCC; see the file COPYING. If not, write to // the Free Software Foundation, 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. @@ -27,8 +27,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_NEW_H -#define _CPP_BACKWARD_NEW_H 1 +#ifndef _BACKWARD_NEW_H +#define _BACKWARD_NEW_H 1 #include "backward_warning.h" #include <new> @@ -39,4 +39,4 @@ using std::nothrow; using std::new_handler; using std::set_new_handler; -#endif +#endif diff --git a/contrib/libstdc++/include/backward/ostream.h b/contrib/libstdc++/include/backward/ostream.h index 4c74756..a72de09 100644 --- a/contrib/libstdc++/include/backward/ostream.h +++ b/contrib/libstdc++/include/backward/ostream.h @@ -25,13 +25,13 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_OSTREAM_H -#define _CPP_BACKWARD_OSTREAM_H 1 +#ifndef _BACKWARD_OSTREAM_H +#define _BACKWARD_OSTREAM_H 1 #include "backward_warning.h" #include "iostream.h" -#endif +#endif // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/pair.h b/contrib/libstdc++/include/backward/pair.h index f0ff7d7..cbb3bc7 100644 --- a/contrib/libstdc++/include/backward/pair.h +++ b/contrib/libstdc++/include/backward/pair.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_PAIR_H -#define _CPP_BACKWARD_PAIR_H 1 +#ifndef _BACKWARD_PAIR_H +#define _BACKWARD_PAIR_H 1 #include "backward_warning.h" #include <bits/c++config.h> @@ -63,7 +63,7 @@ using std::pair; using std::make_pair; -#endif /* _CPP_BACKWARD_PAIR_H */ +#endif /* _BACKWARD_PAIR_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/queue.h b/contrib/libstdc++/include/backward/queue.h index 1d3b29c..a3e2ff3 100644 --- a/contrib/libstdc++/include/backward/queue.h +++ b/contrib/libstdc++/include/backward/queue.h @@ -25,8 +25,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_QUEUE_H -#define _CPP_BACKWARD_QUEUE_H 1 +#ifndef _BACKWARD_QUEUE_H +#define _BACKWARD_QUEUE_H 1 #include "backward_warning.h" #include <queue> @@ -34,7 +34,7 @@ using std::queue; using std::priority_queue; -#endif +#endif // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/rope.h b/contrib/libstdc++/include/backward/rope.h index 5f4c787..fc6715a 100644 --- a/contrib/libstdc++/include/backward/rope.h +++ b/contrib/libstdc++/include/backward/rope.h @@ -40,20 +40,20 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_ROPE_H -#define _CPP_BACKWARD_ROPE_H 1 +#ifndef _BACKWARD_ROPE_H +#define _BACKWARD_ROPE_H 1 #include "backward_warning.h" -#include "hashtable.h" +#include "hashtable.h" #include <ext/rope> -using __gnu_cxx::char_producer; -using __gnu_cxx::sequence_buffer; -using __gnu_cxx::rope; -using __gnu_cxx::crope; -using __gnu_cxx::wrope; +using __gnu_cxx::char_producer; +using __gnu_cxx::sequence_buffer; +using __gnu_cxx::rope; +using __gnu_cxx::crope; +using __gnu_cxx::wrope; -#endif /* _CPP_BACKWARD_ROPE_H */ +#endif /* _BACKWARD_ROPE_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/set.h b/contrib/libstdc++/include/backward/set.h index c189255..6a8320b 100644 --- a/contrib/libstdc++/include/backward/set.h +++ b/contrib/libstdc++/include/backward/set.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_SET_H -#define _CPP_BACKWARD_SET_H 1 +#ifndef _BACKWARD_SET_H +#define _BACKWARD_SET_H 1 #include "backward_warning.h" #include "tree.h" @@ -62,7 +62,7 @@ using std::set; -#endif /* _CPP_BACKWARD_SET_H */ +#endif /* _BACKWARD_SET_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/slist.h b/contrib/libstdc++/include/backward/slist.h index decf04d..63db065 100644 --- a/contrib/libstdc++/include/backward/slist.h +++ b/contrib/libstdc++/include/backward/slist.h @@ -41,15 +41,15 @@ * */ -#ifndef _CPP_BACKWARD_SLIST_H -#define _CPP_BACKWARD_SLIST_H 1 +#ifndef _BACKWARD_SLIST_H +#define _BACKWARD_SLIST_H 1 #include "backward_warning.h" #include <ext/slist> using __gnu_cxx::slist; -#endif /* _CPP_BACKWARD_SLIST_H */ +#endif /* _BACKWARD_SLIST_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/stack.h b/contrib/libstdc++/include/backward/stack.h index 6f60293..0ff53a4 100644 --- a/contrib/libstdc++/include/backward/stack.h +++ b/contrib/libstdc++/include/backward/stack.h @@ -53,8 +53,8 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_STACK_H -#define _CPP_BACKWARD_STACK_H 1 +#ifndef _BACKWARD_STACK_H +#define _BACKWARD_STACK_H 1 #include "backward_warning.h" #include "vector.h" @@ -65,7 +65,7 @@ using std::stack; -#endif /* _CPP_BACKWARD_STACK_H */ +#endif /* _BACKWARD_STACK_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/stream.h b/contrib/libstdc++/include/backward/stream.h index 21a851d..5540c7e 100644 --- a/contrib/libstdc++/include/backward/stream.h +++ b/contrib/libstdc++/include/backward/stream.h @@ -25,13 +25,13 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_STREAM_H -#define _CPP_BACKWARD_STREAM_H 1 +#ifndef _BACKWARD_STREAM_H +#define _BACKWARD_STREAM_H 1 #include "backward_warning.h" #include "iostream.h" -#endif +#endif // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/streambuf.h b/contrib/libstdc++/include/backward/streambuf.h index aef863f..fc9825e 100644 --- a/contrib/libstdc++/include/backward/streambuf.h +++ b/contrib/libstdc++/include/backward/streambuf.h @@ -25,15 +25,15 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#ifndef _CPP_BACKWARD_STREAMBUF_H -#define _CPP_BACKWARD_STREAMBUF_H 1 +#ifndef _BACKWARD_STREAMBUF_H +#define _BACKWARD_STREAMBUF_H 1 #include "backward_warning.h" #include <streambuf> using std::streambuf; -#endif +#endif // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/strstream b/contrib/libstdc++/include/backward/strstream index 165c6e7..a5b95c5 100644 --- a/contrib/libstdc++/include/backward/strstream +++ b/contrib/libstdc++/include/backward/strstream @@ -1,6 +1,6 @@ // Backward-compat support -*- C++ -*- -// Copyright (C) 2001, 2002 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2004 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 @@ -61,12 +61,12 @@ namespace std // Note that this class is not a template. class strstreambuf : public basic_streambuf<char, char_traits<char> > { - public: + public: // Types. typedef char_traits<char> _Traits; typedef basic_streambuf<char, _Traits> _Base; - public: + public: // Constructor, destructor explicit strstreambuf(streamsize __initial_capacity = 0); strstreambuf(void* (*__alloc)(size_t), void (*__free)(void*)); @@ -97,7 +97,12 @@ namespace std virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode = ios_base::in | ios_base::out); - private: + private: + strstreambuf& + operator=(const strstreambuf&); + + strstreambuf(const strstreambuf&); + // Dynamic allocation, possibly using _M_alloc_fun and _M_free_fun. char* _M_alloc(size_t); void _M_free(char*); @@ -105,7 +110,7 @@ namespace std // Helper function used in constructors. void _M_setup(char* __get, char* __put, streamsize __n); - private: + private: // Data members. void* (*_M_alloc_fun)(size_t); void (*_M_free_fun)(void*); @@ -171,4 +176,4 @@ namespace std strstreambuf _M_buf; }; } // namespace std -#endif +#endif diff --git a/contrib/libstdc++/include/backward/tempbuf.h b/contrib/libstdc++/include/backward/tempbuf.h index f47e707..06de2bd 100644 --- a/contrib/libstdc++/include/backward/tempbuf.h +++ b/contrib/libstdc++/include/backward/tempbuf.h @@ -53,16 +53,16 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_TEMPBUF_H -#define _CPP_BACKWARD_TEMPBUF_H 1 +#ifndef _BACKWARD_TEMPBUF_H +#define _BACKWARD_TEMPBUF_H 1 #include "backward_warning.h" #include "pair.h" #include "iterator.h" #include <limits.h> -#include <stddef.h> -#include <stdlib.h> -#include <bits/type_traits.h> +#include <stddef.h> +#include <stdlib.h> +#include <bits/type_traits.h> #include <bits/stl_construct.h> #include <bits/stl_uninitialized.h> #include <ext/memory> @@ -71,7 +71,7 @@ using std::get_temporary_buffer; using std::return_temporary_buffer; using __gnu_cxx::temporary_buffer; -#endif /* _CPP_BACKWARD_TEMPBUF_H */ +#endif /* _BACKWARD_TEMPBUF_H */ // Local Variables: // mode:C++ diff --git a/contrib/libstdc++/include/backward/tree.h b/contrib/libstdc++/include/backward/tree.h index f3ee652..fcfcbf4 100644 --- a/contrib/libstdc++/include/backward/tree.h +++ b/contrib/libstdc++/include/backward/tree.h @@ -41,15 +41,15 @@ * */ -#ifndef _CPP_EXT_TREE -#define _CPP_EXT_TREE 1 +#ifndef _BACKWARD_TREE +#define _BACKWARD_TREE 1 #include "backward_warning.h" #include <ext/rb_tree> using __gnu_cxx::rb_tree; -#endif +#endif // Local Variables: // mode:C++ // End: diff --git a/contrib/libstdc++/include/backward/vector.h b/contrib/libstdc++/include/backward/vector.h index 7788068..ba9b704 100644 --- a/contrib/libstdc++/include/backward/vector.h +++ b/contrib/libstdc++/include/backward/vector.h @@ -53,17 +53,17 @@ * purpose. It is provided "as is" without express or implied warranty. */ -#ifndef _CPP_BACKWARD_VECTOR_H -#define _CPP_BACKWARD_VECTOR_H 1 +#ifndef _BACKWARD_VECTOR_H +#define _BACKWARD_VECTOR_H 1 #include "backward_warning.h" #include "algobase.h" -#include "alloc.h" +#include "alloc.h" #include <vector> using std::vector; -#endif /* _CPP_BACKWARD_VECTOR_H */ +#endif /* _BACKWARD_VECTOR_H */ // Local Variables: // mode:C++ |