gcc/libstdc++-v3 ChangeLog include/bits/ios_ba ...
jlquinn@gcc.gnu.org
jlquinn@gcc.gnu.org
Tue Jul 8 04:56:00 GMT 2003
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: jlquinn@gcc.gnu.org 2003-07-08 04:56:08
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: ios_base.h locale_classes.h
locale_facets.h locale_facets.tcc
libstdc++-v3/src: globals.cc locale-inst.cc localename.cc
Log message:
2003-07-05 Benjamin Kosnik <bkoz@redhat.com>
Jerry Quinn <jlquinn@optonline.net>
* include/bits/ios_base.h (ios_base::_M_getloc): Return reference
to the imbued locale.
* include/bits/locale_classes.h
(__locale_cache_base,__locale_cache): Declare.
(locale,locale::_Impl): Befriend __use_cache.
(locale::_Impl::_M_get_cache): New function.
(locale::_Impl::_M_install_cache): New function.
* include/bits/locale_facets.h (__locale_cache): Declare.
(numpunct): Befriend __locale_cache.
(__locale_cache_base): New class.
(__locale_cache): New class.
* include/bits/locale_facets.tcc (__use_cache): New function.
(num_put::_M_convert_int,_M_convert_float,do_put): Use it.
Use cache data members in place of calls to facet.
(num_put::_M_convert_int): Use _M_getloc.
(num_put::_M_convert_float): Use _M_getloc.
(__locale_cache::__locale_cache(locale&): New.
(__locale_cache::__locale_cache(locale&,bool)): New.
* src/globals.cc (facet_cache_vec): New.
(locale_cache_np_c, locale_cache_np_w): New.
* src/locale-inst.cc
(__locale_cache<numpunct<char> >): Define.
(__locale_cache<numpunct<wchar_t> >): Define.
(__use_cache<numpunct<char> >): Define.
(__use_cache<numpunct<wchar_t> >): Define.
* src/localename.cc (facet_cache_vec): Declare.
(locale_cache_np_c, locale_cache_np_w): Declare.
(locale::_Impl::~Impl): Destroy caches.
(locale::_Impl::Impl): Initialize cache storage. Fill in
static caches.
(locale::_Impl::_M_install_facet): Expand cache storage.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1464.2.131&r2=1.1464.2.132
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/ios_base.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.21.2.6&r2=1.21.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_classes.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_facets.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.49.4.7&r2=1.49.4.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/locale_facets.tcc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.82.4.11&r2=1.82.4.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/src/globals.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.12.4.3&r2=1.12.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/src/locale-inst.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.35.4.4&r2=1.35.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/src/localename.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.33.2.3&r2=1.33.2.4
More information about the Libstdc++-cvs
mailing list