gcc/libstdc++-v3/testsuite
Benjamin Kosnik 215f9e283a ios_base.h (ios_base::_M_getloc): Return reference to the imbued locale.
2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/ios_base.h (ios_base::_M_getloc): Return reference
	to the imbued locale.
	* include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
	_M_getloc.
	(num_put::_M_convert_float): Use.

2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
	    Jerry Quinn  <jlquinn@optonline.net>

	* config/linker-map.gnu: Add __numpunct_cache.
	* config/locale/gnu/numeric_members.cc
	(numpunct::_M_initialize_numpunct): Account for _M_data, fill in
	all elements for "C" locale.
	(numpunct::~numpunct): Delete _M_data.
	* config/locale/generic/numeric_members.cc: Same.
	* include/bits/basic_ios.tcc
	(basic_ios::init): Remove __locale_cache bits.
	(basic_ios::_M_cache_locale): Same.
	* include/bits/ios_base.h: Same. Tweaks.
	* include/bits/locale_classes.h: Tweaks. Reorder classes.
	(__use_cache): Make friends with _Impl, locale.
	(_Impl::_M_caches): Add.
	(_Impl::_M_install_cache): Add.
	* include/bits/locale_facets.h (__numpunct_cache): New.
	(numpunct): Encapsulate data members in __numpunct_cache member,
	_M_data. Adjust virtuals.
	(numpunct::numpunct): New ctor for the same.
	(__locale_cache_base): Remove.
	(__locale_cache): Remove.
	* include/bits/locale_facets.tcc (__use_cache): New function,
	specializations.
	(num_put::_M_convert_int, _M_convert_float, do_put): Use it.
	* src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
	* src/ios.cc (ios_base::ios_base): Remove __locale_cache.
	* src/locale-inst.cc: Same. Add __numpunct_cache.
	* src/locale.cc: Tweak inlines.
	(__use_cache): Define specializations.
	* src/localename.cc: Use global bits.
	(_Impl::~Impl): Deal with __numpunct_cache destruction.
	(_Impl::_Impl): Same. Pre-cache standard numpunct facets.
	(_Impl::_M_init_facet): Take into account __numpunct_cache.
	* testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
	* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.

Co-Authored-By: Jerry Quinn <jlquinn@optonline.net>

From-SVN: r68558
2003-06-27 07:25:38 +00:00
..
17_intro
18_support
19_diagnostics
20_util Testsuite corrections 2003-06-20 23:40:11 +00:00
21_strings Testsuite corrections 2003-06-20 23:40:11 +00:00
22_locale Testsuite corrections 2003-06-20 23:40:11 +00:00
23_containers Testsuite corrections 2003-06-20 23:40:11 +00:00
24_iterators Testsuite corrections 2003-06-20 23:40:11 +00:00
25_algorithms
26_numerics
27_io ios_base.h (ios_base::_M_getloc): Return reference to the imbued locale. 2003-06-27 07:25:38 +00:00
backward
config
data 1.cc: Split and fix for missing seeks between gets and puts into... 2003-06-13 21:06:37 +00:00
demangle
ext [multiple changes] 2003-06-11 15:52:11 +00:00
lib scripts: New. 2003-06-18 01:52:08 +00:00
libstdc++-v3.dg
performance filebuf_copy.cc: New, testing char by char file copy. 2003-06-26 16:38:40 +00:00
thread
abi_check.cc 03-06-16 Benjamin Kosnik <bkoz@redhat.com> 2003-06-17 05:46:01 +00:00
Makefile.am Makefile.am (extract_symvers): Revert accidental change. 2003-06-19 21:54:04 +02:00
Makefile.in Makefile.am (extract_symvers): Revert accidental change. 2003-06-19 21:54:04 +02:00
printnow.c
testsuite_allocator.cc
testsuite_allocator.h
testsuite_hooks.cc
testsuite_hooks.h
testsuite_io.h
testsuite_performance.h testsuite_performance.h: Tweak mallinfo. 2003-06-24 19:38:36 +00:00