gcc/libstdc++-v3/include/bits
Benjamin Kosnik d3a193e36c re PR libstdc++/4164 (33 Memory Leak when using iostream)
2002-04-15  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/4164
	Valgrind fixes.
	* config/io/basic_file_stdio.cc (__basic_file::~__basic_file):
	Call close.
	(__basic_file::close): Call fflush. Correct return if fclose ok.
	(__basic_file::is_open): Make const.
	Change __c_file_type to __c_file.
	* config/io/basic_file_stdio.h: Change __c_file_type to __c_file.
	(__basic_file::is_open): Make const.
	* config/io/c_io_stdio.h: Change __c_file_type to __c_file.
	* include/std/std_fstream.h (filebuf::_M_allocate_file): Remove.
	(filebuf::_M_unbuf): Add.
	(filebuf::_M_file): Change to non-pointer.
	(filebuf::_M_allocate_pback_buffer): Remove.
	* include/bits/fstream.tcc (filebuf::_M_allocate_file): Remove.
	(filebuf::_M_allocate_internal_buffer): Use _M_unbuf.
	Change initialization list for _M_file change.
	(filebuf::_M_allocate_pback_buffer): Remove.
	Change _M_file usage to reflect non-pointer data member.

	* config/locale/generic/c_locale.cc
	(locale::facet::_S_create_c_locale): Add parameter.
	* config/locale/generic/collate_members.cc: Change
	_M_compare_helper to _M_compare.
	Change _M_transform_helper to _M_transform.
	* config/locale/generic/monetary_members.cc: Changeup data types.
	Add dtors.
	* config/locale/generic/numeric_members.cc: Add dtors.
	* config/locale/generic/time_members.cc: Add dtors.
	* config/locale/gnu/c_locale.cc: Add parameter.
	* config/locale/gnu/collate_members.cc:Change
	_M_compare_helper to _M_compare.
	Change _M_transform_helper to _M_transform.
	* config/locale/gnu/ctype_members.cc: Better error checking.
	* config/os/gnu-linux/bits/ctype_noninline.h: Better error checking.
	* config/locale/gnu/messages_members.cc: Tweak comment.
	* config/locale/gnu/monetary_members.cc: Change data types.
	Add dtors.
	* config/locale/gnu/numeric_members.cc: Add dtors, better error
	checking.
	* config/locale/gnu/time_members.cc: Same.
	* config/locale/ieee_1003.1-2001/c_locale.cc
	(locale::facet::_S_create_c_locale): Add parameter.
	* config/locale/ieee_1003.1-2001/c_locale.h: Correct typedef.
	* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Remove
	bogus ctor.

	* include/bits/locale_facets.h (moneypunct): Use string literals.
	Don't define dtor.
	(numpunct): Same.
	(__timepunct): Same.
	(locale::_Impl::_M_facets): Change from vector to array.
	(locale::_Impl::_M_names): Change from array of strings to array
	of string literals.
	(locale::facet::_S_create_c_locale): Add parameter.
	(locale::locale::_S_num_facets): Move to...
	(locale::_Impl::_M_facets_size): Here.
	* include/bits/locale_facets.tcc: Fixups for _M_facets, _M_name
	changes.
	* include/bits/localefwd.h: (locale:🆔:_M_id): Add member function.
	(locale::_Impl::_Impl(facet**, size_t, bool)): Add.
	(locale::_Impl::_Impl(string, size_t)): Change to
	(locale::_Impl::_Impl(const char*, size_t)): This.

	* include/bits/streambuf.tcc (streambuf::_S_pback_size): Define.
	* include/std/std_streambuf.h (streambuf::_M_pback_size): Change to
	(streambuf::_S_pback_size): This.

	* src/globals.cc: Add pre-allocations for "C" facets.
	* src/locale-inst.cc: Remove vector instantiations.
	* src/locale.cc: Remove vector include. Fixups for _M_names,
	_M_facets changes.
	* src/localename.cc: Same.

	* include/bits/stl_vector.h: Fix odd formatting.

	* include/bits/basic_string.tcc: Tweak comment.

	* libsupc++/new: Make sure parameters are uglified.
	* libsupc++/typeinfo: Same.

	* testsuite/22_locale/num_get_members_char.cc: Fixup.
	* testsuite/22_locale/num_get_members_wchar_t.cc: Same.
	* testsuite/27_io/filebuf_members.cc: Same.

From-SVN: r52345
2002-04-16 00:45:36 +00:00
..
basic_ios.h ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls. 2002-04-03 02:32:52 +00:00
basic_ios.tcc ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls. 2002-04-03 02:32:52 +00:00
basic_string.h basic_string.h (replace(i1, i2, _CharT* k1, _CharT* k2), [...]): New specializations to optimize for the common cases of pointers and iterators. 2002-04-02 12:07:07 +00:00
basic_string.tcc re PR libstdc++/4164 (33 Memory Leak when using iostream) 2002-04-16 00:45:36 +00:00
boost_concept_check.h
c++config Daily bump. 2002-04-15 07:16:53 +00:00
char_traits.h
codecvt.h
concept_check.h
cpp_type_traits.h
fpos.h
fstream.tcc re PR libstdc++/4164 (33 Memory Leak when using iostream) 2002-04-16 00:45:36 +00:00
functexcept.h
generic_shadow.h
gslice_array.h
gslice.h
indirect_array.h
ios_base.h
istream.tcc ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls. 2002-04-03 02:32:52 +00:00
locale_facets.h re PR libstdc++/4164 (33 Memory Leak when using iostream) 2002-04-16 00:45:36 +00:00
locale_facets.tcc re PR libstdc++/4164 (33 Memory Leak when using iostream) 2002-04-16 00:45:36 +00:00
localefwd.h re PR libstdc++/4164 (33 Memory Leak when using iostream) 2002-04-16 00:45:36 +00:00
mask_array.h
ostream.tcc fstream.tcc (basic_filebuf<>::open): Fix & ordering. 2002-04-11 22:42:23 -07:00
pthread_allocimpl.h
slice_array.h
slice.h
sstream.tcc sstream.tcc: Clean up bit ops. 2002-04-09 08:48:33 +00:00
stl_algo.h stl_algo.h (unique_copy, [...]): Doxygenate. 2002-04-05 17:58:41 +00:00
stl_algobase.h
stl_alloc.h
stl_bvector.h
stl_construct.h
stl_deque.h
stl_function.h
stl_heap.h
stl_iterator_base_funcs.h
stl_iterator_base_types.h
stl_iterator.h
stl_list.h
stl_map.h
stl_multimap.h
stl_multiset.h
stl_numeric.h
stl_pair.h
stl_pthread_alloc.h
stl_queue.h
stl_raw_storage_iter.h
stl_relops.h
stl_set.h
stl_stack.h
stl_tempbuf.h
stl_threads.h
stl_tree.h
stl_uninitialized.h
stl_vector.h re PR libstdc++/4164 (33 Memory Leak when using iostream) 2002-04-16 00:45:36 +00:00
stream_iterator.h
streambuf_iterator.h
streambuf.tcc re PR libstdc++/4164 (33 Memory Leak when using iostream) 2002-04-16 00:45:36 +00:00
stringfwd.h
type_traits.h
valarray_array.h
valarray_array.tcc
valarray_meta.h