Phil Edwards
e4c62b265d
stl_vector.h: Reformat to follow C++STYLE.
...
2002-05-21 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_vector.h: Reformat to follow C++STYLE.
Doxygenate all public members. Reorder to follow 14882.
(vector::push_back(void)): Remove previously-deprecated fn.
(vector::insert(iterator), vector::_M_insert_aux(iterator)):
Deprecate for removal in 3.3.
From-SVN: r53696
2002-05-21 20:41:06 +00:00
GCC Administrator
74e5c1f4ec
Daily bump.
...
From-SVN: r53683
2002-05-21 07:21:41 +00:00
GCC Administrator
8b46e4a5d4
Daily bump.
...
From-SVN: r53653
2002-05-20 07:17:25 +00:00
GCC Administrator
ae6ac996cc
Daily bump.
...
From-SVN: r53614
2002-05-19 07:21:50 +00:00
Paolo Carlini
770dc0c5b9
re PR libstdc++/6503 ((Deque) Iterators are not typesafe)
...
2002-05-18 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6503
* include/bits/stl_deque.h (_Deque_iterator::operator==,
operator!=, operator<, operator>, operator>=, operator<=):
Make non-member functions, to allow comparing const and
non-const iterators in any order.
* testsuite/23_containers/deque_operators.cc: New testfile.
From-SVN: r53590
2002-05-18 15:10:24 +00:00
GCC Administrator
c810846eb0
Daily bump.
...
From-SVN: r53581
2002-05-18 07:16:50 +00:00
GCC Administrator
1b8a680f76
Daily bump.
...
From-SVN: r53548
2002-05-17 07:19:45 +00:00
GCC Administrator
2605d809d9
Daily bump.
...
From-SVN: r53514
2002-05-16 07:18:07 +00:00
Loren J. Rittle
6c784d9959
c++config (__USE_MALLOC): Report case where the user improperly defined it on the command line.
...
libstdc++/6641
* include/bits/c++config (__USE_MALLOC): Report case where
the user improperly defined it on the command line.
From-SVN: r53494
2002-05-15 22:32:25 +00:00
Benjamin Kosnik
7bd9b6d491
re PR libstdc++/6518 (???)
...
2002-05-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6518
* include/bits/ostream.tcc (ostream::operator<<(const char*)): Fix
for null case.
(ostream::operator<<(const _CharT*)): Same.
(ostream<char>::operator<<(const char*)): Same.
* testsuite/27_io/ostream_inserter_char.cc (test07): Add test.
From-SVN: r53489
2002-05-15 14:38:30 +00:00
Paolo Carlini
bf6f276b01
re PR libstdc++/6648 (Problems with cin.getline (interactive))
...
2002-05-15 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6648
* include/bits/istream.tcc (istream::getline, ignore):
Upon __idelim (__delim) call sbumpc() not snextc().
* testsuite/27_io/narrow_stream_objects.cc:
Add test08 and test09.
From-SVN: r53481
2002-05-15 10:27:29 +00:00
GCC Administrator
6e47edcefe
Daily bump.
...
From-SVN: r53476
2002-05-15 07:18:42 +00:00
GCC Administrator
3b7dcffac9
Daily bump.
...
From-SVN: r53447
2002-05-14 07:17:42 +00:00
Benjamin Kosnik
540f5c9b2d
2002-05-13 Benjamin Kosnik <bkoz@redhat.com>
...
* include/bits/fstream.tcc
(basic_filebuf::_M_allocate_internal_buffer): Remove extraneous
try/catch blocks.
* src/localename.cc (locale::_Impl::_M_install_facet): Same.
* docs/html/install.html: Tweak, add bits about required locales
for the 22_locale tests when using the gnu model.
* testsuite/27_io/istream_sentry.cc: Tweak.
From-SVN: r53423
2002-05-13 13:58:00 +00:00
GCC Administrator
a1cb2d640d
Daily bump.
...
From-SVN: r53415
2002-05-13 07:16:56 +00:00
GCC Administrator
f0d61a79be
Daily bump.
...
From-SVN: r53396
2002-05-12 07:17:34 +00:00
GCC Administrator
c9c2cb7c99
Daily bump.
...
From-SVN: r53379
2002-05-11 07:16:43 +00:00
GCC Administrator
fbdb9fcec9
Daily bump.
...
From-SVN: r53358
2002-05-10 07:17:05 +00:00
GCC Administrator
dccfe3d644
Daily bump.
...
From-SVN: r53320
2002-05-09 07:16:43 +00:00
GCC Administrator
744015dc2f
Daily bump.
...
From-SVN: r53283
2002-05-08 07:17:04 +00:00
GCC Administrator
ac8c66f3ce
Daily bump.
...
From-SVN: r53253
2002-05-07 07:17:44 +00:00
GCC Administrator
aab0ae9150
Daily bump.
...
From-SVN: r53208
2002-05-06 07:16:59 +00:00
GCC Administrator
7750f79061
Daily bump.
...
From-SVN: r53175
2002-05-05 07:17:09 +00:00
Paolo Carlini
6d030676cc
[multiple changes]
...
2002-05-04 Benjamin Kosnik <bkoz@redhat.com>
Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/num_put_members_char.cc: Add test04(),
testing for the locale_facets.tcc entry of the previous commit.
* testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
2002-05-04 Takeshi Kobayakawa <tskoba@mte.biglobe.ne.jp>
* config/locale/generic/c_locale.cc
(__convert_to_v(float, double, long double)):
Fix the temporary switch to the "C" locale, saving and
restoring in the proper way the current locale.
* config/locale/generic/time_members.cc
(__timepunct<char, wchar_t>::_M_put): Likewise.
* config/locale/gnu/messages_members.cc
(messages<char>::do_get): Likewise.
* config/locale/gnu/messages_members.h
(messages<_CharT>::do_get): Likewise.
* config/locale/gnu/time_members.cc
(__timepunct<char, wchar_t>::_M_put): Likewise.
* include/bits/locale_facets.tcc (__convert_from_v): Likewise.
From-SVN: r53167
2002-05-04 21:33:19 +00:00
GCC Administrator
ac5ec76848
Daily bump.
...
From-SVN: r53151
2002-05-04 07:18:20 +00:00
Benjamin Kosnik
2fd819efe5
re PR libstdc++/6549 (std::getline(std::cin,s) work wrong at FreeBSD 4.5)
...
2002-05-03 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6549.
* include/bits/fstream.tcc (filebuf::_M_underflow_common): Revert.
* testsuite/27_io/narrow_stream_objects.cc (test07): Add.
From-SVN: r53107
2002-05-03 18:22:58 +00:00
GCC Administrator
e2f31fa203
Daily bump.
...
From-SVN: r53081
2002-05-03 07:17:19 +00:00
GCC Administrator
fd8ec1d8b9
Daily bump.
...
From-SVN: r53038
2002-05-02 07:17:16 +00:00
Phil Edwards
e92a4045ac
std_bitset.h: Fix doxygen comments.
...
2002-05-01 Phil Edwards <pme@gcc.gnu.org>
* include/std/std_bitset.h: Fix doxygen comments.
* docs/html/documentation.html: Minor tweaks for 3.1.
* docs/html/27_io/howto.html: Likewise.
* docs/html/ext/howto.html: Likewise, mention stdio_filebuf.
* docs/html/faq/index.html: Likewise.
* docs/html/faq/index.txt: Regenerated.
From-SVN: r53025
2002-05-01 22:57:59 +00:00
Benjamin Kosnik
9875ea057d
re PR libstdc++/6533 (libstdc++ broken on unsigned char platforms)
...
2002-05-01 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6533
* include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get): New.
(istreambuf_iterator::equal): Use it.
(istreambuf_iterator::operator*): Use it.
From-SVN: r53024
2002-05-01 22:40:27 +00:00
GCC Administrator
0fa489890f
Daily bump.
...
From-SVN: r52992
2002-05-01 07:17:15 +00:00
Paolo Carlini
072a15d99b
re PR libstdc++/6513 (sigfaults on trivial code)
...
2002-05-01 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6513
* include/bits/stl_uninitialized.h
(uninitialized_copy(_InputIter, _InputIter, _ForwardIter)):
Fix typo in 2001-07-17 commit: typedef _ValueType to
iterator_traits<_ForwardIter> not <_InputIter>.
* testsuite/23_containers/vector_ctor.cc: Add test04.
From-SVN: r52985
2002-05-01 02:17:35 +00:00
John David Anglin
888d5eaa62
re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared)
...
PR libstdc++/6501
* include/c_std/std_cctype.h: Include bits/c++config.h.
* config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.
From-SVN: r52970
2002-04-30 19:50:29 +00:00
Benjamin Kosnik
5cdd50a591
stdio_filebuf.h: New file.
...
2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stdio_filebuf.h: New file.
* include/ext/enc_filebuf.h: New file.
* config/io/basic_file_stdio.h (__basic_file::sys_open): Add fd ctor.
* config/io/basic_file_stdio.cc: Same.
* include/bits/fstream.tcc (filebuf::_M_allocate_internal_buffer):
Remove _M_unbuf hacks.
(filebuf::_M_destroy_internal_buffer): Same.
(filebuf::filebuf(cfile, openmode, int_type): Remove definition.
(filebuf::fd): Remove.
* include/std/std_fstream.h (filebuf::_M_unbuf): Remove.
(filebuf::filebuf(__c_file*, openmode, int_type)): Remove.
(filebuf::fd): Remove.
* src/ios.cc (ios_base::_S_ios_create): Change to use specialized
filebufs.
(ios_base::_S_ios_destroy): Same.
* src/misc-inst.cc (file_filebuf<char>): Add instantiation.
* include/Makefile.am (ext_headers): Add ext_filebuf.h,
stdio_filebuf.h. * include/Makefile.in: Regenerate.
From-SVN: r52961
2002-04-30 19:04:43 +00:00
Benjamin Kosnik
5c352a47a6
re PR libstdc++/5280 (Problems with named locales and iostreams (gnulocale))
...
2002-04-29 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/5280
* include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
Check for eof.
* include/bits/streambuf_iterator.h: Match stream_iterator.h.
(istreambuf_iterator::operator++): Invalidate on eof.
(istreambuf_iterator::operator++(int)): Same.
(istreambuf_iterator::operator*): Same.
From-SVN: r52933
2002-04-30 07:22:11 +00:00
GCC Administrator
775450350b
Daily bump.
...
From-SVN: r52932
2002-04-30 07:17:34 +00:00
GCC Administrator
103d1bf175
Daily bump.
...
From-SVN: r52883
2002-04-29 07:17:01 +00:00
Benjamin Kosnik
d02475fdae
re PR libstdc++/5280 (Problems with named locales and iostreams (gnulocale))
...
2002-04-28 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/5280
* config/io/basic_file_stdio.h (__basic_file::sys_getc): Return int.
(__basic_file::sys_ungetc): Take int.
* config/io/basic_file_stdio.cc (__basic_file::sys_ungetc): Same.
* include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
Use sys_getc for unbuffered input.
* testsuite/27_io/narrow_stream_objects.cc (test06): New.
* src/ios.cc (_M_grow_words): Adjust error checking.
* testsuite/27_io/ios_base_storage.cc: Same.
From-SVN: r52879
2002-04-29 07:00:50 +00:00
Paolo Carlini
32c8d10081
[multiple changes]
...
2002-04-28 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/ext/stl_hashtable.h: Import __iterator_category
2002-04-28 Paolo Carlini <pcarlini@unitus.it>
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/ext/hash_set.cc: New testfile.
From-SVN: r52843
2002-04-28 16:21:32 +00:00
GCC Administrator
ba29591d2f
Daily bump.
...
From-SVN: r52842
2002-04-28 07:17:18 +00:00
GCC Administrator
c3a6afe78d
Daily bump.
...
From-SVN: r52831
2002-04-27 07:17:23 +00:00
Paolo Carlini
adf2e3e668
basic_string.h (replace(__pos, __n1, __s, __n2): Fix and tighten __throw_length_error check.
...
2002-04-26 Paolo Carlini <pcarlini@unitus.it>
* include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
Fix and tighten __throw_length_error check.
* testsuite/21_strings/replace.cc (test05): New.
* testsuite/21_strings/replace.cc (test02, test03, test04): Tweak.
From-SVN: r52797
2002-04-26 18:21:32 +00:00
GCC Administrator
7ba47445b3
Daily bump.
...
From-SVN: r52786
2002-04-26 07:17:49 +00:00
GCC Administrator
0f2fd6a867
Daily bump.
...
From-SVN: r52757
2002-04-25 07:17:29 +00:00
GCC Administrator
12fe8bf235
Daily bump.
...
From-SVN: r52708
2002-04-24 07:19:36 +00:00
Loren J. Rittle
9385d9cb0d
std_fstream.h (basic_filebuf::sync): Hoist unconditional flush on lower-layer handle to here...
...
* include/std/std_fstream.h (basic_filebuf::sync): Hoist
unconditional flush on lower-layer handle to here...
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow):
...from here. Optimize remaining _M_file.sync() call pattern.
* testsuite/27_io/narrow_stream_objects.cc (test04): New test.
(test05): Likewise.
From-SVN: r52699
2002-04-24 00:33:28 +00:00
Jason Merrill
736020b4a7
fstream.tcc (basic_filebuf::seekoff): Fix for output-only filebufs.
...
* include/bits/fstream.tcc (basic_filebuf::seekoff): Fix for
output-only filebufs.
* include/std/std_fstream.h (basic_filebuf::_M_set_indeterminate):
Likewise.
(basic_filebuf::_M_set_determinate): Likewise.
From-SVN: r52685
2002-04-23 17:56:10 -04:00
Jason Merrill
74c263af80
re PR libstdc++/6414 (g++ 3.1 tellg() regression within last week)
...
PR libstdc++/6414
* include/bits/fstream.tcc (basic_filebuf::seekoff): Adjust return
value properly in the trivial case.
* testsuite/27_io/istream_seeks.cc (test04): Make sure that
tellg() returns the right value after a read.
From-SVN: r52679
2002-04-23 17:01:22 -04:00
GCC Administrator
878a19ebe2
Daily bump.
...
From-SVN: r52655
2002-04-23 07:17:20 +00:00
Jason Merrill
5066927d9e
re PR libstdc++/4150 (catastrophic performance decrease in C++ code)
...
PR libstdc++/4150
* include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate):
Move to filebuf.
(basic_streambuf::_M_set_determinate): Likewise.
(basic_streambuf::_M_is_indeterminate): Likewise.
* include/bits/std_fstream.h (basic_filebuf::_M_filepos): New
non-static data member.
(basic_filebuf::_M_underflow_common): New non-static member function.
(basic_filebuf::_M_underflow, _M_uflow): Call it.
(basic_filebuf::sync): Avoid useless seeking.
(basic_filebuf::_M_set_indeterminate): Move here from streambuf.
Set _M_filepos.
(basic_filebuf::_M_set_determinate): Likewise.
(basic_filebuf::_M_is_indeterminate): Likewise.
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
back to _M_out_beg if necessary.
(basic_filebuf::seekoff): Likewise.
(basic_filebuf::_M_underflow_common): Generalization of old
underflow(). Don't seek back to _M_in_beg.
* src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
* config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
* config/os/bsd/freebsd/bits/os_defines.h: Likewise.
* config/os/mingw32/bits/os_defines.h: Likewise.
* testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify
ungetc test.
From-SVN: r52634
2002-04-22 16:28:05 -04:00