summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std
Commit message (Collapse)AuthorAgeFilesLines
...
* 2003-07-06 Paolo Carlini <pcarlini@unitus.it>paolo2003-07-061-20/+29
| | | | | | | | | | * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback: if output is at all possible (!_M_reading), cannot be active. * include/std/std_fstream.h: Tweak comments to doxygen style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69001 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-05 Paolo Carlini <pcarlini@unitus.it>paolo2003-07-053-65/+65
| | | | | | | | | | * include/std/std_complex.h: Fully qualify standard functions with std::, thus avoiding Koenig lookup. * include/std/std_memory.h: Likewise. * include/std/std_valarray.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68982 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-05 Paolo Carlini <pcarlini@unitus.it>paolo2003-07-052-8/+12
| | | | | | | | | | * include/std/std_bitset.h: Fully qualify standard functions with std::, thus avoiding Koenig lookup. * include/std/std_fstream.h: Change comment to doxygen style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68964 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-05 Phil Edwards <pme@gcc.gnu.org>pme2003-07-051-95/+95
| | | | | | | | * include/std/std_limits.h: More CPP->CXX changes. * scripts/check_survey.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68960 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-07-0529-145/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move from CPP to CXX. * include/bits/c++config: Move to GLIBCXX from GLIBCPP. * testsuite/Makefile.am: Same. * testsuite/Makefile.in: Regenerate. * po/Makefile.am: Same. * po/Makefile.in: Regenerate. * libsupc++/Makefile.am: Same. * libsupc++/Makefile.in: Regenerate. * libmath/Makefile.am: Same. * libmath/Makefile.in: Regenerate. * include/Makefile.am: Same. * include/Makefile.in: Regenerate. * src/Makefile.am: Same. * src/Makefile.in: Regenerate. * acconfig.h: Same. * configure.host: Same. * configure.in: Same. * configure: Regenerate. * acinclude.m4: Same. * aclocal.m4: Same. * src: Change all files in this directory. * testsuite: Same. * include: Same, standardize include guards. * config: Same. * libsupc++: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68958 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-04 Paolo Carlini <pcarlini@unitus.it>paolo2003-07-041-15/+3
| | | | | | | Revert the fix for libstdc++/11378. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68922 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-04 Paolo Carlini <pcarlini@unitus.it>paolo2003-07-041-3/+15
| | | | | | | | | | PR libstdc++/11378 * include/std/std_fstream.h (xsputn): In the unbuffered case, provided always_noconv(), issue directly _M_file.xsputn. * testsuite/performance/filebuf_unbuf_sputn.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68921 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-07-042-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/Makefile.am (target_headers): Add fpos.h (bits_headers): Remove. * include/Makefile.in: Regenerate. * configure.in: Add FPOS_INC_SRCDIR, substitute it. * configure: Regenerate. * configure.host: Add fpos_include_dir. * config/os/gnu-linux/fpos.h: New. * config/os/generic/fpos.h: Add. * include/bits/fpos.h: Remove. * config/io/c_io_stdio.h: Remove fpos_t typedef. * include/bits/fstream.tcc: Tweaks. * include/std/std_fstream.h: Same. * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to... * testsuite/27_io/fpos/mbstate_t/1.cc: ...here. * testsuite/27_io/fpos/mbstate_t/2.cc: Same. * testsuite/27_io/fpos/mbstate_t/3.cc: Same. * testsuite/27_io/fpos/1.cc: New. 2003-07-03 Benjamin Kosnik <bkoz@redhat.com> Petur Runolfsson <peturr02@ru.is> * include/std/std_streambuf.h: Remove _M_pos. * config/io/basic_file_stdio.h: Use seekpos instead of seekoff. * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek, use fread/fwrite instead of read/write. * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix. * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs before reading again. * testsuite/27_io/objects/char/6.cc: Tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68913 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-30 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-303-44/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/std_streambuf.h (_M_mode): Move from here to filebuf and stringbuf. (~basic_streambuf()): Don't set _M_mode. (basic_streambuf()): Don't set _M_mode. * include/std/std_fstream.h (_M_mode): Move here, from streambuf. (~basic_filebuf()): Clean up. * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode. * include/std/std_sstream.h (_M_mode): Move here, from streambuf. * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode. * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise. * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise. * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise. * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise. 2003-06-30 Paolo Carlini <pcarlini@unitus.it> * include/std/std_fstream.h (_M_underflow): Remove. (uflow): Remove, inherited from streambuf. (underflow): Only declare. * include/bits/fstream.tcc (_M_underflow): Rename to underflow, to which is equivalent for __bump == false, simplify. * include/std/std_sstream.h (_M_underflow): Remove. (uflow): Remove, inherited from streambuf. (underflow): Only declare. * include/bits/sstream.tcc (_M_underflow): Rename to underflow, to which is equivalent for __bump == false, simplify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68695 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-29 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-291-1/+1
| | | | | | | | * include/std/std_streambuf.h (uflow): According to 27.5.2.4.3,p16, don't check gptr() < egptr(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68664 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>paolo2003-06-251-6/+54
| | | | | | | | | | | | * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc): Move inline, from here... * include/std/std_streambuf.h: ... to here. * include/std/std_streambuf.h (snextc, sbumpc, sgetc, sputbackc, sungetc, sputc): Use __builtin_expect. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68486 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-24 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-242-104/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nathan C. Myers <ncm-nospam@cantrip.org> * include/std/std_fstream.h (_M_filepos): Remove. (_M_reading, _M_writing): New, encode the various I/O modes: 'read', 'write' and 'uncommitted'. (sync): If there is something to flush, do it, then go to 'uncommitted' mode. * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal with three different cases: __off > 0 (upon underflow), __off == 0 (upon overflow), __off == -1 (upon open, setbuf, seekoff/pos). (_M_underflow): Don't call overflow, set _M_reading to true on success, tweak. (pbackfail): Set _M_reading to true on pback creation, tweak. (overflow): Don't seek, deal with overflow in 'uncommitted' mode, set _M_writing to true on success, tweak. (seekoff): Simplify, set _M_reading, _M_writing to false, call _M_set_buffer(-1) ('uncommitted'). (open, close, setbuf): Set _M_reading, _M_writing to false and call _M_set_buffer(-1), tweak. (basic_filebuf): Don't set _M_buf_unified. (_M_destroy_internal_buffer): Don't call setg and setp. * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading, _M_writing and _M_set_buffer(-1). * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur, _M_out_lim, _M_buf_unified): Remove. (basic_streambuf): Don't set _M_out_lim and _M_buf_unified. (setp): Don't set _M_out_lim. * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for the new logic ('read', 'write' and 'uncommitted' modes): e.g., upon open the mode is 'uncommitted' and therefore the put area pointers are null. * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto. * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto. * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto. * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto. * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto. * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto. * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto. * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto. * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto. * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto. * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto. * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto. * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto. * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto. * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto. * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto. * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto. * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto. * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto. * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto. * include/bits/fstream.tcc (showmanyc): Use only the documented derivation interface to basic_streambuf (gptr(), setg(), etc.) to work right with user specializations. * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc, xsgetn, xsputn, __copy_streambufs): Likewise. * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc): Likewise. * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback, xsgetn): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68420 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-22 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-222-25/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nathan C. Myers <ncm-nospam@cantrip.org> * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim is now used only for filebuf, when _M_buf_unified is true. epgtr() plays the role of _M_out_lim but it's only updated upon overflow, underflow, uflow, seekoff/pos. * include/bits/sstream.tcc (_M_underflow): New, implements stringbuf::underflow and uflow. (seekoff, seekpos): Tweak, use _M_update_egptr. * include/std/std_sstream.h (str): Rewrote, deal correctly with the new logic, in particular, when pptr() > egptr(). (_M_sync): When __testout && !__testin set all the get area pointers to the current string end. (_M_update_egptr): New, internal function updating egptr() to the actual string end. (_M_underflow): New, declare. (underflow): Dispatch to _M_underflow(false). (uflow): Dispatch to _M_underflow(true). * include/bits/sstream.tcc (pbackfail, overflow, seekoff, seekpos): Use only the documented derivation interface to basic_streambuf (gptr(), setg(), etc.) to work right with user specializations. * include/std/std_sstream.h (str, _M_sync): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68347 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-19 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-191-1/+1
| | | | | | | * include/std/std_sstream.h (_M_sync): Make non virtual. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68200 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-18 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-181-4/+4
| | | | | | | | | | Benjamin Kosnik <bkoz@redhat.com> * include/std/std_sstream.h (setbuf): Check __n >= 0. * include/bits/fstream.tcc (setbuf): Tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68163 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-06-116-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_alloc.h (__debug_alloc): Move out. (__malloc_alloc): Same. (__pool_alloc): Same. (__new_alloc): Same. Rename to.. * include/bits/allocator.h: ...this. * include/bits/stl_deque.h: Modify comment. * include/bits/stl_tree.h: Modify include. * include/std/std_memory.h: Same. * include/ext/rope: Same. * include/ext/slist: Same. * include/std/std_vector.h: Same. * include/std/std_stack.h: Same. * include/std/std_queue.h: Same. * include/std/std_list.h: Same. * include/std/std_deque.h: Same. * include/backward/alloc.h: Same. * include/ext/debug_allocator.h: New. * include/ext/malloc_allocator.h: New. * include/ext/pool_allocator.h: New. * include/ext/new_allocator.h: New. * include/bits/pthread_allocimpl.h: Remove. * include/bits/stl_pthread_alloc.h: Remove. * include/Makefile.am (ext_headers): Add. * include/Makefile.in: Regenerate. * src/stl-inst.cc: Use __gnu_cxx namespace. * src/stl-inst.cc: Move to... * src/allocator-inst.cc: Here. * src/Makefile.am (sources): Update. * src/Makefile.in: Regenerate. * config/linker-map.gnu: Remove __pool_alloc bits. * testsuite/ext/headers.cc: Add. * testsuite/ext/allocators.cc: Fixup. 2003-06-11 Stefan Olsson <stefan@snon.net> Ola R�nnerup <fnolis@home.se> * include/Makefile.am (ext_headers): Add. * include/Makefile.in: Regenerate. * include/ext/mt_allocator.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67777 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-10 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-102-5/+4
| | | | | | | | | | | | | | | | * include/bits/fstream.tcc (close): Clean up a bit. * include/bits/streambuf.tcc (sbumpc): Clean up a bit. * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save - the saved _M_in_cur, that is - cannot be null. (sync): Constify a variable. * include/std/std_streambuf.h: Tweak a comment. (in_avail): Constify a variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67738 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-10 Phil Edwards <pme@gcc.gnu.org>pme2003-06-101-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot. * docs/html/17_intro/CHECKLIST: Bring up to date with respect to correctness of container::iterator typedefs. Fix whitespace. * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links to allocator docs. * docs/html/documentation.html: Regenerate. * include/bits/basic_string.h, include/bits/basic_string.tcc, include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h, include/bits/stl_algobase.h, include/bits/stl_bvector.h, include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h, include/bits/stl_list.h, include/bits/stl_uninitialized.h, include/bits/stl_vector.h, include/bits/vector.tcc, include/ext/algorithm, include/ext/slist, include/std/std_bitset.h: Change _Iter names to _Iterator, and __pos to __position. * include/bits/stl_relops.h, include/bits/stl_numeric.h, include/bits/stl_multiset.h, include/bits/stl_set.h: Remove emacs markers. * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67736 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-09 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-102-21/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/fstream.tcc (_M_underflow): Do not special case the unbuffered case, which really means simply a one char get area. (basic_filebuf): Initialize _M_buf_size. (setbuf): Unbuffered means _M_buf_size == 1, since only _M_buf_size - 1 == 0 chars are going to be used for the put area and 1 for the get area. * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf. (~basic_streambuf): Tweak. (basic_streambuf): Do not initialize _M_buf_size. * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf. (~basic_filebuf): Tweak. (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the unbuffered situation (i.e., put area pointers NULL). * include/bits/streambuf.tcc (sbumpc): Clean up. * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67686 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-06-062-30/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/9024 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered. * include/bits/stl_algobase.h: Tweak. * include/std/std_fstream.h: Move _M_buf_size to... * include/std/std_streambuf.h: ...here. Modify. * include/bits/streambuf.tcc: Same. * testsuite/testsuite_hooks.h: Tweak. * testsuite/testsuite_io.h (constraint_filebuf): New. * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New. * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New. * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into... * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New. * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New. * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New. * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into... * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New. * testsuite/data/sgetc.txt: New. * testsuite/data/sgetn.txt: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67524 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-02 Paolo Carlini <pcarlini@unitus.it>paolo2003-06-021-6/+4
| | | | | | | | | | | | | | | | | | | | | * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg instead of unnecessarily taking the address of _M_pback. (xsgetn): Simplify slightly for a single char pback buffer. 2003-06-02 Paolo Carlini <pcarlini@unitus.it> * include/bits/sstream.tcc (seekoff): Remove four unnecessary variables and two 'if', clean up. 2003-06-02 Paolo Carlini <pcarlini@unitus.it> * include/bits/sstream.tcc (seekpos): Test against _M_out_lim not _M_out_end, since the former actually points to the string end (vs buffer end). * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67334 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>redi2003-05-272-2/+2
| | | | | | | * include/std/std_istream.h, include/std/std_ostream.h: Typo in comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67187 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-05-261-21/+8
| | | | | | | | | | | | | | PR libstdc++/9339 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove. (_M_pback): No array necessary. * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add unbuffered case, coalesec into ... (basic_filebuf::overflow): ...this. * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New. * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67175 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-22 Paolo Carlini <pcarlini@unitus.it>paolo2003-05-221-16/+4
| | | | | | | | | | | | | | | | | | | | | * include/std/std_fstream.h (_S_pback_size): Remove definition. (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char pback buffer. * include/bits/fstream.tcc (_S_pback_size): Remove declaration. * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation of _S_pback_size for systems with no COMDAT or weak support. * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise. * testsuite/27_io/basic_fstream/3.cc: Likewise. * testsuite/27_io/basic_ifstream/3.cc: Likewise. * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise. * testsuite/27_io/basic_ofstream/3.cc: Likewise. * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise. * testsuite/27_io/basic_streambuf/3.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67102 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-21 Paolo Carlini <pcarlini@unitus.it>paolo2003-05-211-11/+11
| | | | | | | * include/std/std_fstream.h (_M_set_buffer): Fix indentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67065 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/10689gdr2003-05-201-4/+10
| | | | | | | * include/std/std_complex.h (pow): Tidy git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66989 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-15 Paolo Carlini <pcarlini@unitus.it>bkoz2003-05-152-37/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nathan Myers <ncm@cantrip.org> * include/bits/fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once (_M_buf_size is now the size of the put area + 1 for the overflow char of a full area); call _M_set_buffer instead of _M_set_indeterminate. (setbuf): Don't accept a buffer smaller than 2 chars. (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer, instead of _M_set_determinate. (open): Call _M_set_buffer, instead of _M_set_indeterminate. (seekoff): Likewise. * include/ext/stdio_filebuf.h (stdio_filebuf(int, std::ios_base::openmode, bool, size_t), stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t): Likewise. * include/std/std_fstream.h (_M_set_indeterminate): Remove. (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size -> _M_buf_size - 1. * include/std/std_streambuf.h: Tweak _M_out_lim comment. * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking into account that, for _M_buf_size == BUFSIZ == 8192, the size of the put area is now BUFSIZ - 1. * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account that now the smallest _M_buf_size is 2 (still fails, for the same reason, with 3.2.3) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66848 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-05-132-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add cached member. * include/bits/fstream.tcc (basic_filebuf::basic_filebuf): Initialize _M_codecvt. (basic_filebuf::imbue): Same. (basic_filebuf::showmanyc): Use it. (basic_filebuf::underflow): Use it. (basic_filebuf::_M_convert_to_external): Use it. (basic_filebuf::seekoff): Use it. (basic_filebuf::imbue): Use it, tweaks. * include/bits/localefwd.h (__check_facet): New. * include/bits/locale_classes.h: Tweaks. * include/bits/locale_facets.tcc: Tweaks. * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove. _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to _M_num_get. Change _M_check_facet to __check_facet. Tweaks. * include/bits/basic_ios.tcc: Same. * include/bits/istream.tcc: Same. * include/bits/ostream.tcc: Same. * include/std/std_streambuf.h: Same. * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New. * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New. * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New. * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New. * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New. * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66781 138bc75d-0d04-0410-961f-82ee72b054a4
* git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66726 ↵bkoz2003-05-121-2/+2
| | | | 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-10 Petur Runolfsson <peturr02@ru.is>bkoz2003-05-111-43/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/9027 PR libstdc++/9520 PR libstdc++/10096 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic implementation, based on old wchar_t specialization, add support for codecvt::in() return value of codecvt_base::noconv, remove _M_file.sys_ungetc() call. * include/std/std_fstream.h (basic_file::underflow, basic_file::uflow, basic_file::_M_underflow): Remove specialization declarations, call _M_underflow from generic versions of underflow and uflow. * src/fstream.cc (basic_file::underflow, basic_file::uflow, basic_file::_M_underflow): Remove specializations. * src/Makefile.am (sources): Remove fstream.cc. * src/Makefile.in: Regenerated. * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test. * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test. * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test. * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test. 2003-05-10 Benjamin Kosnik <bkoz@redhat.com> * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack buffer. * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove unbuffered bits. (__basic_file::xsputn): Same. (__basic_file::seekoff): Same. (__basic_file::seekpos): Same. (__basic_file::showmanyc): Same. * config/io/basic_file_stdio.cc: Same. * include/std/std_fstream.h: Same. * include/bits/fstream.tcc: Same. * src/fstream.cc: Same. * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy. 2003-05-10 Petur Runolfsson <peturr02@ru.is> PR libstdc++/9520 PR libstdc++/9661 PR libstdc++/9662 * include/ext/stdio_sync_filebuf.h: New file. (basic_stdiobuf): New. * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h * include/Makefile.in: Regenerate. * include/bits/ios_base.h (Init::_S_create_buffers, Init::_S_destroy_buffers): Remove declarations. * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync, buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define. * src/ios.cc (Init::_S_create_buffers, Init::_S_destroy_buffers): Remove. (Init::Init): Create and use syncronized buffers. (ios_base::sync_with_stdio): Destroy syncronized buffers, create and install unsyncronized buffers. * testsuite/27_io/objects/char/10.cc: New test. * testsuite/27_io/objects/char/9.cc: New test. * testsuite/27_io/objects/char/9661-1.cc: New test. * testsuite/27_io/objects/char/9661-2_xin.cc: New test. * testsuite/27_io/objects/char/9661-2_xin.in: New. * testsuite/27_io/objects/wchar_t/1.cc: New test. * testsuite/27_io/objects/wchar_t/10.cc: New test. * testsuite/27_io/objects/wchar_t/2.cc: New test. * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test. * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New. * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test. * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New. * testsuite/27_io/objects/wchar_t/3045.cc: New test. * testsuite/27_io/objects/wchar_t/3647.cc: New test. * testsuite/27_io/objects/wchar_t/3_xin.cc: New test. * testsuite/27_io/objects/wchar_t/3_xin.in: New. * testsuite/27_io/objects/wchar_t/4_xin.cc: New test. * testsuite/27_io/objects/wchar_t/4_xin.in: New. * testsuite/27_io/objects/wchar_t/5.cc: New test. * testsuite/27_io/objects/wchar_t/5268.cc: New test. * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test. * testsuite/27_io/objects/wchar_t/5280_xin.in: New. * testsuite/27_io/objects/wchar_t/6.cc: New test. * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test. * testsuite/27_io/objects/wchar_t/6548_xin.in: New. * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test. * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New. * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test. * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New. * testsuite/27_io/objects/wchar_t/7.cc: New test. * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test. * testsuite/27_io/objects/wchar_t/7744_xin.in: New. * testsuite/27_io/objects/wchar_t/8.cc: New test. * testsuite/27_io/objects/wchar_t/9_xin.cc: New test. * testsuite/27_io/objects/wchar_t/9_xin.in: New. * testsuite/27_io/objects/wchar_t/9520.cc: New test. * testsuite/27_io/objects/wchar_t/9661-1.cc: New test. * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test. * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New. * testsuite/27_io/objects/wchar_t/9662.cc: New test. * testsuite/ext/stdiobuf_char.cc: New test. * testsuite/ext/stdiobuf_wchar_t.cc: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66678 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-08 Paolo Carlini <pcarlini@unitus.it>paolo2003-05-081-4/+0
| | | | | | | * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66595 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-07 Paolo Carlini <pcarlini@unitus.it>paolo2003-05-072-29/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * include/std/std_fstream.h (_M_is_indeterminate): Remove. * src/fstream.cc (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either there is no buffer or __testget == !__testinit. * src/fstream.cc (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate() automatically sets, if appropriate, _M_out_cur == _M_in_cur. * include/std/std_fstream.h (_M_destroy_pback): Don't set unnecessarily _M_pback_cur_save and _M_pback_end_save. * include/std/std_fstream.h (_M_set_determinate): Minor tweak. * include/std/std_sstream.h (_M_sync): Minor tweak. * include/bits/fstream.tcc (close): No need to call _M_destroy_pback, setting _M_pback_init to false suffices to clean up. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66557 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-05-071-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_algo.h: Enums as _S_. * include/bits/stl_tree.h: Same. * include/bits/stl_bvector.h: Same. * include/bits/ios_base.h: Same. * include/bits/stl_alloc.h: Same. * include/ext/stl_hashtable.h: Same. * src/ios.cc: And here. * include/std/std_sstream.h: Replace _M_really_sync to _M_sync. * include/bits/sstream.tcc: Same. * include/bits/basic_ios.h: Correct spacing for '< ctype'. * include/bits/locale_facets.tcc: Replace __temp to __tmp. * include/bits/locale_facets.h (__num_base): Remove protected. Use _S_[io]* names for enumerations. (_S_format_int): Remove. * include/bits/locale_facets.tcc: Same. * src/locale.cc: Same. * include/std/std_sstream.h (stringbuf::str): Tweak formatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66552 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-02 Paolo Carlini <pcarlini@unitus.it>paolo2003-05-021-8/+4
| | | | | | | * include/std/std_sstream.h (str()): Tidy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66402 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-01 Paolo Carlini <pcarlini@unitus.it>paolo2003-05-011-7/+2
| | | | | | | | | * include/std/std_sstream.h (str()): Revert the best of the previous 'improvement', incorrect due to the COW nature of v3 basic_string; simplify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66357 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-01 Paolo Carlini <pcarlini@unitus.it>paolo2003-05-011-8/+6
| | | | | | | | | | | | | | | | | | * include/bits/streambuf.tcc (basic_streambuf::xsgetn): Const-ify some variables. (basic_streambuf::xsputn): Likewise; change the type of some variables to size_t. (__copy_streambufs): Change some variables to size_t. 2003-05-01 Paolo Carlini <pcarlini@unitus.it> * include/std/std_sstream.h (str()): Avoid constructing a basic_string temporary not only when it would turn out to be zero-sized but also when identical to the current _M_string buffer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66334 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-29 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-291-2/+4
| | | | | | | * include/std/std_sstream.h (underflow): Change to single return. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66234 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-28 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-283-18/+13
| | | | | | | | | | | | | | | * include/std/std_streambuf.h (_M_buf): is currently used only for basic_filebuf, therefore move it there. (basic_streambuf(), ~basic_streambuf()): Adjust. * include/std/std_fstream.h (_M_buf): Moved here. * include/std/std_sstream.h (setbuf): Don't set _M_buf, is actually redundant for basic_stringbuf. (_M_really_sync): Likewise. * include/bits/fstream.tcc (basic_filebuf()): Adjust. * include/bits/sstream.tcc (seekoff): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66193 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-04-281-12/+12
| | | | | | | | | | | | | | | | | | | | | * src/localename.cc: Standardize exception strings. * src/locale.cc: Same. * src/ios.cc: Same. * include/bits/basic_string.tcc: Same. * include/bits/basic_ios.tcc: Same. * include/std/std_bitset.h: Same. * include/ext/ropeimpl.h: Same. * include/bits/stl_vector.h: Same. * include/bits/stl_deque.h: Same. * include/bits/stl_bvector.h: Same. * config/locale/generic/c_locale.cc: Same. * config/locale/gnu/c_locale.cc: Same. * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same. * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66192 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-28 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-282-11/+10
| | | | | | | | | | | * include/std/std_streambuf.h (_M_buf_size): is currently used only for basic_filebuf, therefore move it there. (basic_streambuf(), ~basic_streambuf()): Adjust. * include/std/std_fstream.h (_M_buf_size): Moved here. * include/bits/fstream.tcc (basic_filebuf()): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66191 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-28 Phil Edwards <pme@gcc.gnu.org>pme2003-04-281-6/+6
| | | | | | | | | | | | | | | * configure.in: Test for libintl.h. * include/bits/c++config: Define __N for everybody. * include/bits/basic_string.h, include/bits/stl_bvector.h, include/bits/stl_deque.h, include/bits/stl_vector.h, include/std/std_bitset.h: Wrap all __throw* text with __N. * po/Makefile.am (pot): New rule, mostly working. * src/functexcept.cc: Call gettext on all __throw* arguments when -fexceptions is in effect. * po/Makefile.in, config.h.in, configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66185 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-04-282-13/+12
| | | | | | | | | | | | | | | | | * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to _M_destroy_pback. _M_pback_create to _M_create_pback. _M_underflow_common to _M_underflow. _M_really_overflow to _M_overflow. * include/bits/fstream.tcc: Same. * src/fstream.cc: Same. * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to _M_move_in_cur. _M_out_cur_move to _M_move_out_cur. * include/bits/streambuf.tcc: Same. * include/bits/fstream.tcc: Same. * include/bits/sstream.tcc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66149 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-26 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-261-2/+1
| | | | | | | | | | | | | | | | * include/bits/streambuf.tcc (__copy_streambufs): Don't use in_avail(), simplify. 2003-04-26 Paolo Carlini <pcarlini@unitus.it> * include/std/std_sstream.h (setbuf): don't set _M_buf_size, in basic_stringbuf it's unused. * include/std/std_sstream.h (underflow): consistently use _M_in_cur, not gptr(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66100 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-04-261-5/+4
| | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/10132 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw() exception specifications. (basic_filebuf::close): Same. (basic_filebuf::_M_pback_destroy): Same. (basic_filebuf::_M_destroy_internal_buffer): Same. (basic_filebuf): Remove __res_type typedef. * src/fstream.cc: Same. * include/bits/fstream.tcc (basic_filebuf::_M_convert_to_external): Simplify. (basic_filebuf::seekoff): Use has_facet before use_facet. (basic_filebuf::close): Add exception specification of throw(). * testsuite/27_io/basic_filebuf/cons: New. * testsuite/27_io/basic_filebuf/cons/wchar_t: New. * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New. * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New. * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66091 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-23 Phil Edwards <pme@gcc.gnu.org>pme2003-04-231-13/+0
| | | | | | | | | | | | | | | | | * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial implementation only. * include/bits/istream.tcc (putback, unget, sync, tellg, seekg): Comment and change to comply with DR 60 and the effect on gcount(). * include/std/std_istream.h: Update comments. * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add comments about reasons for tests. Test sync() against gcount(). * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test for effect on gcount(). * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test for effect on gcount(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65983 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-22 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-222-64/+60
| | | | | | | | | | | | | | | | | | | * include/std/std_streambuf.h (_S_pback_size, _M_pback, _M_pback_cur_save, _M_pback_end_save, _M_pback_init, _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf. (basic_streambuf::basic_streambuf()): Adjust. * include/std/std_fstream.h (_S_pback_size, _M_pback, _M_pback_cur_save, _M_pback_end_save, _M_pback_init, _M_pback_create(), _M_pback_destroy()): Moved here from basic_streambuf. * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()): Adjust. (basic_filebuf::_S_pback_size): Add declaration. * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size): Remove declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65950 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-21 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-211-1/+1
| | | | | | | | | | | | | Consistently use _M_in_beg instead of eback(), _M_in_cur instead of gptr(), and so on. * include/bits/fstream.tcc (pbackfail, imbue): Here. * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto. * include/bits/streambuf.tcc (sbumpc, sputbackc, __copy_streambufs): Ditto. * include/std/std_streambuf.h (sgetc): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65909 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-21 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-211-8/+6
| | | | | | | | | | | * include/std/std_streambuf.h (uflow()): It's used only by basic_stringbuf (i.e., basic_filebuf provide its own uflow()), therefore do not consider the _M_buf_unified == true case. * include/std/std_streambuf.h (sgetc()): Restore __ret variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65891 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-20 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-202-7/+5
| | | | | | | | | | | | | | | | | | * include/bits/sstream.tcc (pbackfail): Remove redundant NULL pointer check from test involving _M_in_*. (overflow, seekoff, seekpos): Const qualify bool variables. * include/std/std_sstream.h (underflow): Remove redundant NULL pointer check from test involving _M_in_*. (_M_really_sync): Const qualify bool variables. * src/fstream.cc (_M_underflow_common): Remove redundant NULL pointer check from test involving _M_in_*, const qualify bool variables. * include/std/std_streambuf.h (sgetc): Remove redundant variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65853 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-18 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-182-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | According to 5.9 para 2 (second bullet) for pointers p, q pointing to the same type, with p == 0 and q == 0, (p < q) is false. * include/bits/fstream.tcc (close, overflow, _M_really_overflow, seekoff): Remove redundant NULL pointer checks from tests involving _M_out_* and _M_in_*, const qualify bool variables. (showmanyc, pbackfail, _M_convert_to_external, imbue): Const qualify bool variables. * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc): Remove redundant NULL pointer checks from tests involving _M_out_* and _M_in_*, const qualify bool variables. * include/std/std_fstream.h (sync): Likewise. (_M_is_indeterminate): Const qualify bool variables. * include/std/std_streambuf.h (sgetc, uflow): Remove redundant NULL pointer checks from tests involving _M_out_* and _M_in_*, const qualify bool variables. (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65783 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud