Benjamin Kosnik
f13a69eccf
char_traits.h: Remove generic definitions.
...
2002-07-30 Benjamin Kosnik <bkoz@redhat.com>
Gabriel Dos Reis <gdr@nerim.net>
* include/bits/char_traits.h: Remove generic definitions.
* include/bits/streambuf_iterator.h (istreambuf_iterator): Use
eof, not -2.
* include/bits/istream.tcc (istream::readsome): Don't check
against eof, instead use constants.
(istream::sync): Same.
(istream::sentry::sentry): Use eq_int_type.
(istream::get): Same.
* include/bits/ostream.tcc: Change __pad to
__pad<_CharT, _Traits>::_S_pad.
* include/bits/locale_facets.h: Add __pad_traits generic and
ostreambuf_iterator specialization.
* include/bits/locale_facets.tcc: Change __pad into struct __pad
with a _CharT and _Traits template parameter and _S_pad static
member function.
* src/locale-inst.cc: Update __pad instantiations.
* include/std/std_fstream.h: Declare _M_underflow_common
specializations.
* src/fstream.cc: New. Add _M_underflow_common specializations.
* include/bits/fstream.tcc (filebuf::close): Use traits_type.
(filebuf::_M_underflow_common(bool)): Remove generic version, as
sys_ungetc and custom int_types don't get along.
* include/std/std_streambuf.h: Add _M_pos.
* src/Makefile.am (sources): Add fstream.cc.
* src/Makefile.in: Regenerate.
* testsuite/21_strings/capacity.cc: Add char_traits specializations.
* testsuite/22_locale/codecvt_members_unicode_char.cc: Same.
* testsuite/22_locale/codecvt_members_unicode_wchar_t.cc: Same.
* testsuite/22_locale/ctor_copy_dtor.cc: Same.
* testsuite/27_io/filebuf_virtuals.cc (test07): Move to...
* testsuite/27_io/filebuf.cc: ...here.
* testsuite/testsuite_hooks.h: Add gnu_char, gnu_int, char_traits
specialization for both.
* testsuite/27_io/streambuf.cc: Add instantiation test,
testsuite_hooks include.
* testsuite/27_io/istream.cc: Same.
* testsuite/27_io/ostream.cc: Same.
* testsuite/27_io/fstream.cc: Same.
* testsuite/27_io/stringstream.cc: Same.
* testsuite/27_io/filebuf.cc: Same.
* testsuite/27_io/stringbuf.cc: Same.
Co-Authored-By: Gabriel Dos Reis <gdr@nerim.net>
From-SVN: r55893
2002-07-31 02:47:36 +00:00
GCC Administrator
d2cea56aaf
Daily bump.
...
From-SVN: r55870
2002-07-30 07:17:09 +00:00
GCC Administrator
789161102e
Daily bump.
...
From-SVN: r55832
2002-07-29 07:17:07 +00:00
GCC Administrator
3e75a2f99d
Daily bump.
...
From-SVN: r55813
2002-07-28 07:17:06 +00:00
GCC Administrator
3368e9773b
Daily bump.
...
From-SVN: r55796
2002-07-27 07:16:57 +00:00
GCC Administrator
d0a5af59f4
Daily bump.
...
From-SVN: r55775
2002-07-26 07:16:59 +00:00
Benjamin Kosnik
325fceb395
re PR libstdc++/7220 (g++ 3.1: basic_istream::ignore(0,delimiter) issue.)
...
2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7220
* include/bits/istream.tcc (istream::ignore): Don't extract on
zero.
* testsuite/27_io/istream_unformatted.cc (test10): Add.
From-SVN: r55763
2002-07-25 23:20:49 +00:00
GCC Administrator
18965224c6
Daily bump.
...
From-SVN: r55742
2002-07-25 07:16:57 +00:00
Benjamin Kosnik
922045978d
re PR libstdc++/7219 (_GLIBCPP_DEPRECATED on (ios_base::streamoff and ios_base::streampos types))
...
2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7219
* testsuite/27_io/ios_base_type.cc: New.
* include/bits/ios_base.h (ios_base::streampos): Add.
(ios_base::streamoff): Add.
From-SVN: r55726
2002-07-24 23:17:13 +00:00
GCC Administrator
956301631b
Daily bump.
...
From-SVN: r55700
2002-07-24 07:17:30 +00:00
GCC Administrator
1e7a2d3fd5
Daily bump.
...
From-SVN: r55673
2002-07-23 07:17:57 +00:00
GCC Administrator
9f8da5fad6
Daily bump.
...
From-SVN: r55643
2002-07-22 07:16:57 +00:00
GCC Administrator
753e29b145
Daily bump.
...
From-SVN: r55622
2002-07-21 07:16:51 +00:00
GCC Administrator
3d1fc12974
Daily bump.
...
From-SVN: r55608
2002-07-20 07:16:56 +00:00
Phil Edwards
aa2d5ba2c7
abi.txt: New file.
...
2002-07-20 Phil Edwards <pme@gcc.gnu.org>
* docs/html/abi.txt: New file.
* docs/html/23_containers/howto.html: Tweak vector-overhead text.
* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
Import from upstream, R22.
* include/bits/char_traits.h, include/bits/stl_iterator.h,
include/bits/stl_iterator_base_types.h, libsupc++/exception,
libsupc++/new, libsupc++/typeinfo: Use @brief markup.
* include/bits/deque.tcc, include/bits/stl_alloc.h,
include/bits/stl_deque.h, include/bits/stl_list.h: Postpone removal
of deprecated functions until 3.4. (Same timeframe, different text.)
* include/bits/stl_vector.h: Ditto. Also do the same cleanups that
the other sequence classes received.
From-SVN: r55602
2002-07-20 06:26:27 +00:00
GCC Administrator
7ea8939450
Daily bump.
...
From-SVN: r55583
2002-07-19 07:16:57 +00:00
Brendan Kehoe
926479c2b1
e <brendan@zen.org>
...
* bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR): Fix typo of
_Nname to _Name.
From-SVN: r55578
2002-07-19 04:51:42 +00:00
Gabriel Dos Reis
bb403d6917
slice_array.h (slice_array<T>::operator=(const T&)): Constify.
...
* include/bits/slice_array.h
(slice_array<T>::operator=(const T&)): Constify.
* include/bits/gslice_array.h
(gslice_array<T>::operator=(const T&)): Likewise.
* include/bits/mask_array.h
(mask_array<T>::operator=(const T&)): Likewise.
* include/bits/indirect_array.h
(indirect_array<T>::operator=(const T&): Likewise.
:w
From-SVN: r55577
2002-07-19 04:45:20 +00:00
GCC Administrator
cd095b7d1f
Daily bump.
...
From-SVN: r55552
2002-07-18 07:19:00 +00:00
GCC Administrator
5fc5be1522
Daily bump.
...
From-SVN: r55513
2002-07-17 07:17:26 +00:00
GCC Administrator
05abfd2d46
Daily bump.
...
From-SVN: r55479
2002-07-16 07:16:50 +00:00
Gabriel Dos Reis
5068f54685
Makefile.am (bits_headers): Remove slice.h
...
* include/Makefile.am (bits_headers): Remove slice.h
* include/Makefile.in: Regenerate.
* include/bits/slice.h (slice): move to include/bits/slice_array.h
* include/bits/slice.h Remove.
* include/std/std_valarray.h: Don't #include bits/slice.h anymore.
* include/bits/slice_array.h: Comply to official coding styles.
* testsuite/26_numerics/slice.cc: New test.
:w
:q
From-SVN: r55470
2002-07-16 00:19:18 +00:00
GCC Administrator
1ffa74fb24
Daily bump.
...
From-SVN: r55456
2002-07-15 07:16:52 +00:00
GCC Administrator
839eb5a160
Daily bump.
...
From-SVN: r55442
2002-07-14 07:16:50 +00:00
GCC Administrator
33ce85ffa7
Daily bump.
...
From-SVN: r55435
2002-07-13 07:16:49 +00:00
GCC Administrator
5a363fc83e
Daily bump.
...
From-SVN: r55417
2002-07-12 07:16:56 +00:00
GCC Administrator
b70fc53b64
Daily bump.
...
From-SVN: r55394
2002-07-11 07:16:52 +00:00
Matt Kraai
92ff302b2b
stl_deque.h: Fix misspelling of Create' as
Creats'.
...
* include/bits/stl_deque.h: Fix misspelling of `Create' as `Creats'.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_vector.h: Likewise.
From-SVN: r55388
2002-07-11 04:43:15 +00:00
Gabriel Dos Reis
c963e6b00c
valarray_meta.h (_UnFunBase): Take a second template parameter.
...
* include/bits/valarray_meta.h (_UnFunBase): Take a second
template parameter. Remove _M_func data member.
(_UnFunClos): Take a third template parameter.
(__abs, __cos, __acos, __cosh, __sin, __asin, __sinh, __tan,
__atan, __tanh, __exp, __log, __log10, __sqrt): New classes.
(_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
From-SVN: r55365
2002-07-10 12:06:37 +00:00
GCC Administrator
9924857981
Daily bump.
...
From-SVN: r55363
2002-07-10 07:17:32 +00:00
GCC Administrator
e6da97c9b0
Daily bump.
...
From-SVN: r55340
2002-07-09 07:16:50 +00:00
Peter Schmid
7766810445
stl_deque.h (_Deque_alloc_base): Change order of member declarations to avoid compiler warnings and restore 3.1 ABI.
...
2002-07-08 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/stl_deque.h (_Deque_alloc_base): Change order of
member declarations to avoid compiler warnings and restore 3.1 ABI.
From-SVN: r55325
2002-07-08 12:24:52 +00:00
GCC Administrator
974a90cfec
Daily bump.
...
From-SVN: r55318
2002-07-08 07:16:59 +00:00
Paolo Carlini
276e31ec6e
re PR libstdc++/7186 (DR179 for std::deque::iterator and const_iterator)
...
2002-07-07 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/7186
* include/bits/stl_deque.h (_Deque_iterator::operator-):
Make non-member, as already happens for the comparison
operators in accord with DR179 (Ready).
* testsuite/23_containers/deque_operators.cc: Add test02.
From-SVN: r55301
2002-07-07 10:15:06 +00:00
GCC Administrator
12f2f485a3
Daily bump.
...
From-SVN: r55300
2002-07-07 07:18:36 +00:00
GCC Administrator
6ab5f79598
Daily bump.
...
From-SVN: r55285
2002-07-06 07:17:48 +00:00
GCC Administrator
3aa0aa2966
Daily bump.
...
From-SVN: r55256
2002-07-05 07:17:18 +00:00
Benjamin Kosnik
49433044e4
std_streambuf.h (basic_streambuf::_M_buf): Change to size_t, from int_type.
...
2002-07-04 Benjamin Kosnik <bkoz@redhat.com>
Jack Reeves <jackw_reeves@hotmail.com>
* include/std/std_streambuf.h (basic_streambuf::_M_buf): Change to
size_t, from int_type.
(basic_streambuf::_M_buf_size_opt): Same.
(basic_streambuf::_S_pback_sizex): Same.
* include/bits/streambuf.tcc: Same.
* include/std/std_streambuf.h (basic_streambuf::snextc): Use
eq_int_type.
(basic_streambuf::uflow): Same.
* include/bits/sstream.tcc (basic_stringbuf::overflow): Use
to_char_type.
* include/bits/basic_ios.tcc (basic_ios::init): Use _CharT().
* include/bits/streambuf.tcc (basic_streambuf::xsgetn): Use
eq_int_type.
(basic_streambuf::xsputn): Same.
(__copy_streambufs): Same.
Co-Authored-By: Jack Reeves <jackw_reeves@hotmail.com>
From-SVN: r55242
2002-07-04 09:20:01 +00:00
GCC Administrator
7c0f8bc1f4
Daily bump.
...
From-SVN: r55240
2002-07-04 07:17:50 +00:00
GCC Administrator
032b2b2990
Daily bump.
...
From-SVN: r55208
2002-07-03 07:17:24 +00:00
Benjamin Kosnik
fdf7e80975
re PR libstdc++/6410 (Trouble with non-Ascii monetary symbols and wchar_t)
...
2002-07-02 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6410
* include/bits/locale_facets.h (moneypunct::moneypunct): Add const
char* name parameter.
* config/locale/gnu/monetary_members.cc: Use it.
* config/locale/generic/monetary_members.cc: Same.
* src/localename.cc (_Impl::_Impl(const char*, size_t)): Use it.
* include/backward/strstream.h: Update date.
From-SVN: r55203
2002-07-03 06:29:26 +00:00
Paolo Carlini
d16ecaec1d
re PR libstdc++/6642 (Constness prevents substraction of iterators)
...
2002-07-02 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6642
* include/bits/stl_iterator.h
(__normal_iterator::operator-(const __normal_iterator&)):
Make non-member, as already happens for the comparison
operators in accord with DR179 (Ready).
* testsuite/24_iterators/iterator.cc: Add test from the PR.
From-SVN: r55188
2002-07-02 18:42:58 +00:00
GCC Administrator
7c1c5ccec8
Daily bump.
...
From-SVN: r55179
2002-07-02 07:19:51 +00:00
GCC Administrator
0201312b89
Daily bump.
...
From-SVN: r55132
2002-07-01 07:17:09 +00:00
GCC Administrator
76147cce13
Daily bump.
...
From-SVN: r55117
2002-06-30 07:18:09 +00:00
GCC Administrator
ddd9819e57
Daily bump.
...
From-SVN: r55100
2002-06-29 07:17:41 +00:00
GCC Administrator
20c2d1fea3
Daily bump.
...
From-SVN: r55061
2002-06-28 07:18:09 +00:00
Phil Edwards
07a6e20be9
stl_alloc.h: Deprecate all 'reallocate' memfns.
...
2002-06-27 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_alloc.h: Deprecate all 'reallocate' memfns.
* docs/html/ext/howto.html: Update allocator notes.
From-SVN: r55044
2002-06-27 22:09:02 +00:00
GCC Administrator
7692f832b4
Daily bump.
...
From-SVN: r55027
2002-06-27 07:17:30 +00:00
GCC Administrator
db16cbb9a4
Daily bump.
...
From-SVN: r55008
2002-06-26 07:17:54 +00:00