diff options
author | Paolo Carlini <pcarlini@suse.de> | 2004-01-12 17:02:08 +0000 |
---|---|---|
committer | Paolo Carlini <pcarlini@suse.de> | 2004-01-12 17:02:08 +0000 |
commit | 099118e6c299d7ffbd9ae2555fe8b56e83562776 (patch) | |
tree | b10bbc00ff5a3a832933b613202d82eed4ed43dc /libstdc++-v3/ChangeLog | |
parent | 636fd4d574971210f97e8bde11294054797682d6 (diff) |
2004-01-12 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (struct __numpunct_cache):
Add members _M_truename_len and _M_falsename_len, caching
the lengths of _M_truename and _M_falsename.
(__numpunct_cache<>::_M_cache): Assign the latter.
* include/bits/locale_facets.tcc (num_get::do_get(bool&),
num_put::do_put(bool)): Use the new members, thus avoiding
computing string lengths again and again.
* config/locale/generic/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Assign the new members.
* config/locale/gnu/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Likewise.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@75735 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e59eb5afd01..0929ea8e4fc 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,17 @@ +2004-01-12 Paolo Carlini <pcarlini@suse.de> + + * include/bits/locale_facets.h (struct __numpunct_cache): + Add members _M_truename_len and _M_falsename_len, caching + the lengths of _M_truename and _M_falsename. + (__numpunct_cache<>::_M_cache): Assign the latter. + * include/bits/locale_facets.tcc (num_get::do_get(bool&), + num_put::do_put(bool)): Use the new members, thus avoiding + computing string lengths again and again. + * config/locale/generic/numeric_members.cc + (numpunct<>::_M_initialize_numpunct): Assign the new members. + * config/locale/gnu/numeric_members.cc + (numpunct<>::_M_initialize_numpunct): Likewise. + 2004-01-12 Mark Mitchell <mark@codesourcery.com> * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it. |