GCC Administrator
5904e65f29
Daily bump.
...
From-SVN: r78246
2004-02-22 00:16:13 +00:00
Paolo Carlini
fe932e504b
locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms.
...
2004-02-21 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (class money_base): Add { _S_minus,
_S_zero, _S_end } enum, _S_atoms.
(struct __moneypunct_cache<>): Parameterize on _Intl too; add
_M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
_M_negative_sign_size, _M_atoms; tweak constructor consistently.
(__moneypunct_cache<>::~__moneypunct_cache): Update.
(__moneypunct_cache<>::_M_cache): Fill the cache.
(class moneypunct): Tweak __cache_type typedef.
(class money_put): Inherit from money_base too; tweak declaration
of _M_insert, now parameterized on _Intl.
* include/bits/locale_facets.tcc
(struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
(money_put<>::_M_insert): Update definition to use the cache;
call reserve on __res to avoid multiple reallocations.
(money_put<>::do_put(long double),
money_put<>::do_put(const string_type&): Update calls of _M_insert.
* config/locale/generic/monetary_members.cc
(moneypunct<char, true>::_M_initialize_moneypunct,
moneypunct<char, false>::_M_initialize_moneypunct,
moneypunct<wchar_t, true>::_M_initialize_moneypunct,
moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
* config/locale/gnu/monetary_members.cc: Likewise.
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::~moneypunct(),
moneypunct<wchar_t, false>::~moneypunct()): Likewise.
* src/globals_locale.cc: Tweak fake_money_cache_c.
* src/locale-inst.cc: Add instantiations for
money_put::_M_insert<false> and money_put::_M_insert<true> and
__moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
* src/locale_facets.cc: Define money_base::_S_atoms.
* src/locale_init.cc: Update placement new of
__moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
__moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
* config/locale/generic/numeric_members.cc: Clean up.
* config/locale/gnu/numeric_members.cc: Likewise.
* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
From-SVN: r78216
2004-02-21 09:26:35 +00:00
GCC Administrator
5a0df46884
Daily bump.
...
From-SVN: r78198
2004-02-21 00:16:16 +00:00
GCC Administrator
325b439bbc
Daily bump.
...
From-SVN: r78137
2004-02-20 00:16:10 +00:00
GCC Administrator
d63d3c7c2e
Daily bump.
...
From-SVN: r78064
2004-02-19 00:16:11 +00:00
Paolo Carlini
2ddf25f217
locale_facets.h (money_get<>::_M_extract): New, helper for do_get.
...
2004-02-18 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (money_get<>::_M_extract):
New, helper for do_get.
(money_put<>::_M_insert): Likewise, for do_put.
* include/bits/locale_facets.tcc (money_get<>::_M_extract,
money_put<>::_M_insert): Define.
(money_get<>::do_get(long double&), money_get<>::do_get(
string_type&), money_put::do_put(long double),
money_put::do_put(const string_type&)): Use the helpers.
From-SVN: r78037
2004-02-18 16:39:13 +00:00
GCC Administrator
6cf291df7d
Daily bump.
...
From-SVN: r78003
2004-02-18 00:16:11 +00:00
Paolo Carlini
6d4925e368
locale_facets.tcc (num_get<>::_M_extract_float, [...]): Simplify grouping fidelity conditional.
...
2004-02-17 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
num_get<>::_M_extract_int, money_get<>::do_get): Simplify
grouping fidelity conditional.
From-SVN: r77948
2004-02-17 11:19:25 +00:00
GCC Administrator
1e3c1e4585
Daily bump.
...
From-SVN: r77937
2004-02-17 00:16:13 +00:00
Paolo Carlini
b7e64db2a4
locale_facets.tcc (money_get::do_get(string_type&)): Fix parsing of the remaining sign characters.
...
2004-02-16 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
Fix parsing of the remaining sign characters.
* 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
the input is scanned 'til eof.
* 22_locale/money_get/get/char/4.cc: Likewise.
* 22_locale/money_get/get/wchar_t/2.cc: Likewise.
* 22_locale/money_get/get/wchar_t/4.cc: Likewise.
* 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
not do_pos_format: the former is the only one that matters during
input.
* 22_locale/money_get/get/wchar_t/8.cc: Likewise.
* 22_locale/money_get/get/char/6.cc: Minor tweak.
* 22_locale/money_get/get/wchar_t/6.cc: Likewise.
From-SVN: r77896
2004-02-16 16:46:26 +00:00
GCC Administrator
2c2ab3acc1
Daily bump.
...
From-SVN: r77865
2004-02-16 00:16:13 +00:00
David Asher
230377dc69
re PR libstdc++/11352 (crash while internal padding numeric 0)
...
2004-02-15 David Asher <david.asher@cavium.com>
PR libstdc++/11352
* include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
access __olds beyond __oldlen.
From-SVN: r77858
2004-02-15 17:19:00 +00:00
GCC Administrator
fa7c0d68a4
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r77836.2
2004-02-15 00:16:23 +00:00
Paolo Carlini
ac3cadf042
re PR libstdc++/13858 (Bad error handling in basic_filebuf::imbue)
...
2004-02-14 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13858
* include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
In case of conversion errors, throw ios_failure; simplify.
* testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
* testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
previously we didn't throw in case of conversion errors, instead
just returned eof().
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
* testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
* testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
* include/bits/fstream.tcc (basic_filebuf<>::overflow):
Trivial simplification of a conditional.
From-SVN: r77812
2004-02-14 19:04:00 +00:00
GCC Administrator
e8cae65926
Daily bump.
...
From-SVN: r77783
2004-02-14 00:16:15 +00:00
GCC Administrator
74eb57176a
Daily bump.
...
From-SVN: r77741
2004-02-13 00:16:22 +00:00
GCC Administrator
feec892281
Daily bump.
...
From-SVN: r77683
2004-02-12 00:16:16 +00:00
GCC Administrator
b87ab499fd
Daily bump.
...
From-SVN: r77627
2004-02-11 00:16:13 +00:00
GCC Administrator
f0c4dd0010
Daily bump.
...
From-SVN: r77573
2004-02-10 00:16:11 +00:00
Paolo Carlini
cf0d2c4044
re PR libstdc++/14071 (locale::global doesn't always call setlocale)
...
2004-02-09 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14071
* src/locale_init.cc (locale::global(const locale&)): Use
locale::name() in order to decide whether calling setlocale.
* testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
* include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
Avoid computing &= unnecessarily.
From-SVN: r77568
2004-02-09 23:10:47 +00:00
Paolo Carlini
86fd2b512a
re PR libstdc++/14072 (basic_ios::imbue leaves dangling pointers)
...
2004-02-09 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14072
* include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
Don't leave dangling pointers.
* testsuite/27_io/basic_ios/imbue/14072.cc: New.
* testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
facet is needed in the final test.
From-SVN: r77526
2004-02-09 09:02:52 +00:00
GCC Administrator
413b591234
Daily bump.
...
From-SVN: r77515
2004-02-09 00:16:11 +00:00
Paolo Carlini
fd95f498f3
basic_string.tcc (assign(const _CharT*, size_type)): When working in place remember to set the state to sharable (otherwise...
...
2004-02-08 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
When working in place remember to set the state to sharable
(otherwise, _M_mutate does it).
From-SVN: r77487
2004-02-08 17:11:07 +00:00
Bernardo Innocenti
ed6814f7b3
Remove trailing whitespace (see ChangeLog for longwinded description).
...
From-SVN: r77479
2004-02-08 05:46:42 +01:00
GCC Administrator
19755f9808
Daily bump.
...
From-SVN: r77469
2004-02-08 00:16:12 +00:00
GCC Administrator
7a174c8b8c
Daily bump.
...
From-SVN: r77433
2004-02-07 00:16:42 +00:00
Paolo Carlini
eee54836b1
basic_string.h: Fix comment.
...
2004-02-06 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h: Fix comment.
From-SVN: r77428
2004-02-06 23:02:45 +00:00
Paolo Carlini
15d7206087
stl_construct.h: Wrap overlong lines, reformat according to the coding standards.
...
2004-02-06 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_construct.h: Wrap overlong lines, reformat
according to the coding standards.
* include/bits/stl_pair.h: Likewise.
* include/bits/stl_raw_storage_iter.h: Likewise.
* include/bits/stl_stack.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stream_iterator.h: Likewise.
* include/bits/streambuf_iterator.h: Likewise.
* include/bits/type_traits.h: Likewise.
From-SVN: r77425
2004-02-06 21:32:48 +00:00
GCC Administrator
f3c9154d0e
Daily bump.
...
From-SVN: r77356
2004-02-06 00:16:14 +00:00
Paolo Carlini
d9010fcacc
locale_facets.tcc (money_get::do_get(string_type&)): Thousands-sep are always optional...
...
2004-02-05 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
Thousands-sep are always optional; thousands-sep are not allowed
after the decimal_point.
* testsuite/22_locale/money_get/get/char/12.cc: New.
* testsuite/22_locale/money_get/get/char/13.cc: New.
* testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
* testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
* testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
* testsuite/22_locale/money_get/get/char/2.cc: Likewise.
* testsuite/22_locale/money_get/get/char/3.cc: Likewise.
* testsuite/22_locale/money_get/get/char/4.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
* testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
* testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
the standard.
* testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
From-SVN: r77339
2004-02-05 20:13:37 +00:00
Paolo Carlini
92ff3e4314
stl_function.h: Minor formatting changes.
...
2004-02-05 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_function.h: Minor formatting changes.
From-SVN: r77316
2004-02-05 15:39:16 +00:00
GCC Administrator
90bd9d546d
Daily bump.
...
From-SVN: r77282
2004-02-05 00:16:15 +00:00
GCC Administrator
c3bf16ff7d
Daily bump.
...
From-SVN: r77206
2004-02-04 00:16:13 +00:00
Paolo Carlini
129e921059
basic_string.h (insert(iterator)): Remove, non-standard and already scheduled for removal.
...
2004-02-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (insert(iterator)): Remove,
non-standard and already scheduled for removal.
From-SVN: r77198
2004-02-03 23:34:52 +00:00
Paolo Carlini
83042fcaec
stl_iterator_base_funcs.h: Minor formatting and indentation tweaks.
...
2004-02-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_iterator_base_funcs.h: Minor formatting
and indentation tweaks.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
From-SVN: r77182
2004-02-03 17:59:05 +00:00
Jerry Quinn
06a81b60c2
gslice.h, [...]: Update copyright years.
...
2004-02-02 Jerry Quinn <jlquinn@optonline.net>
* include/bits/gslice.h, include/bits/gslice_array.h,
include/bits/indirect_array.h, include/bits/mask_array.h,
include/bits/slice_array.h, include/bits/stl_numeric.h,
include/std/std_valarray.h: Update copyright years.
From-SVN: r77156
2004-02-03 04:01:15 +00:00
Jerry Quinn
7fb397a4b8
gslice.h (gslice): Document.
...
2004-02-02 Jerry Quinn <jlquinn@optonline.net>
* include/bits/gslice.h (gslice): Document.
* include/bits/gslice_array.h (gslice_array): Document.
* include/bits/indirect_array (indirect_array): Document.
* include/bits/mask_array (mask_array): Document.
* include/bits/slice_array.h (slice,slice_array): Document.
* include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
adjacent_difference): Document
* include/std/std_valarray.h (valarray): Document.
From-SVN: r77153
2004-02-03 03:33:24 +00:00
GCC Administrator
c1def8ec35
Daily bump.
...
From-SVN: r77143
2004-02-03 00:16:13 +00:00
Paolo Carlini
7c92015149
stl_function.h: Additional minor tweaks.
...
2004-02-02 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_function.h: Additional minor tweaks.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_queue.h: Minor tweaks.
From-SVN: r77125
2004-02-02 16:35:09 +00:00
GCC Administrator
618e342744
Daily bump.
...
From-SVN: r77085
2004-02-02 00:16:13 +00:00
Paolo Carlini
737ab798c5
stl_algo.h: Additional minor tweaks.
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h: Additional minor tweaks.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_tree.h: Likewise.
From-SVN: r77082
2004-02-01 23:19:55 +00:00
Paolo Carlini
64ebadacc4
vector.tcc (vector::_M_insert_aux(iterator)): Remove, unused.
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
Remove, unused.
From-SVN: r77081
2004-02-01 22:14:43 +00:00
Paolo Carlini
afd4cbbb50
stl_function.h: Additional minor tweaks.
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_function.h: Additional minor tweaks.
From-SVN: r77078
2004-02-01 17:56:06 +00:00
Paolo Carlini
f6592a9e2c
deque.tcc: Wrap overlong lines...
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/deque.tcc: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/list.tcc: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_function.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Likewise.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_set.h: Likewise.
From-SVN: r77077
2004-02-01 17:34:44 +00:00
Paolo Carlini
62e6765158
stl_bvector.h: Wrap overlong lines...
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_bvector.h: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/stl_tree.h: Likewise.
From-SVN: r77065
2004-02-01 11:25:21 +00:00
GCC Administrator
15cf1452c0
Daily bump.
...
From-SVN: r77061
2004-02-01 00:16:12 +00:00
Paolo Carlini
8f7ca398ca
stl_algo.h: Minor additional reformat, add copyright year.
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h: Minor additional reformat, add
copyright year.
* include/bits/stl_algobase.h: Add copyright year.
From-SVN: r77058
2004-01-31 23:51:44 +00:00
Paolo Carlini
ffa67767d0
stl_algo.h: Wrap overlong lines...
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_heap.h: Likewise.
From-SVN: r77050
2004-01-31 21:37:11 +00:00
Paolo Carlini
8de63ee0d7
basic_string.h (_Rep::operator[]): Remove, unused.
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
* include/bits/basic_string.h: Fix two comments.
From-SVN: r77044
2004-01-31 17:50:46 +00:00
Paolo Carlini
24f330691d
basic_string.tcc (_Rep::_S_create): Minor tweak.
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
From-SVN: r77035
2004-01-31 15:39:52 +00:00