summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std
Commit message (Collapse)AuthorAgeFilesLines
...
* 2004-11-23 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-11-2429-61/+49
| | | | | | | | | | | | | | | | | | * docs/doxygen/doxygroups.cc: Add std::tr1 namespace. * docs/doxygen/run_doxygen: Renames for std::tr1. * docs/doxygen/user.cfg.in: Add cxxabi.h. * include/bits/*.tcc: Add file markup. * include/bits/allocator.h: Add link to allocator.html. * include/bits/atomicity.h: Add file markup. * include/bits/concurrence.h: Same. * include/bits/functexcept.h: Same. * include/ext*: Adjust file markup, remove GCC3 bits. * include/std/*: Adjust file markup, remove bits about renamed files. * libsupc++/cxxabi.h: Add file markup. * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91135 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-22 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-11-233-135/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/locale_facets.h (isspace, isprint, isupper, islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph, toupper, tolower): Add doxygen markup. (codecvt_byname, ctype_byname, numpunct_byname, collate_byname, time_get_byname, time_put_byname, moneypunct_byname, messages_byname): Same. * include/std/std_fstream.h: Remove superfluous markup. * include/std/std_sstream.h: Same. * include/std/std_streambuf.h: Same. * include/ext/enc_filebuf.h: Adjust markup. * include/ext/stdio_filebuf.h: Same. * include/ext/stdio_sync_filebuf.h: Same. * include/bits/codecvt.h: Same. * config/os/gnu-linux/ctype_base.h: Same. * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same. * include/tr1/array: Add markup. * include/tr1/tuple: Same. * docs/doxygen/run_doxygen: Print arguments. * docs/doxygen/user.cfg.in: Tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91080 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>redi2004-11-214-5/+5
| | | | | | | | | | | * include/bits/basic_string.h, include/bits/locale_classes.h, include/bits/valarray_after.h, include/bits/valarray_before.h, include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h, include/std/std_functional.h, include/std/std_memory.h, include/std/std_numeric.h: Doxygen fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90979 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-18 Paolo Carlini <pcarlini@suse.de>paolo2004-11-181-6/+16
| | | | | | | | | | | DR 434. bitset::to_string() hard to use [Ready] * include/std/std_bitset.h (to_string): Add three overloads, taking fewer template arguments. * docs/html/ext/howto.html: Add an entry for DR 434. * testsuite/23_containers/bitset/to_string/1.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90854 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-17 Paolo Carlini <pcarlini@suse.de>paolo2004-11-171-1/+6
| | | | | | | | | | | | | | * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&, _CharT)): Remove temporary kludge for libstdc++/15002. * include/std/std_streambuf.h (class basic_streambuf): Declare getline(basic_istream<>&, basic_string<>&, _CharT) as friend. * include/bits/basic_string.h (getline(basic_istream<>&, basic_string<>&, _CharT)): Declare optimized specializations for char and wchar_t, using protected members of basic_streambuf. * src/istream.cc: Define the latter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90801 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-15 Paolo Carlini <pcarlini@suse.de>paolo2004-11-151-0/+12
| | | | | | | | | | | | | | * include/bits/streambuf.tcc (__copy_streambufs): Provide a generic version of the function, not using the protected members of basic_streambuf. * include/std/std_streambuf.h (__copy_streambufs): Declare optimized specializations for char and wchar_t. * src/streambuf.cc: New file, define the latter. * src/Makefile.am: Add. * src/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90701 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-08 Paolo Carlini <pcarlini@suse.de>paolo2004-11-081-4/+37
| | | | | | | | | | | | | | | | * include/bits/istream.tcc (getline(char_type*, streamsize, char_type), ignore(streamsize), ignore(streamsize, int_type)): Restore a generic version of the functions, not using the protected members of basic_streambuf. * include/std/std_istream.h (getline(char_type*, streamsize, char_type), ignore(streamsize), ignore(streamsize, int_type)): Declare optimized specializations for char and wchar_t. * src/istream.cc: New file, define the latter. * src/Makefile.am: Add. * src/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90268 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-11-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/17218 PR libstdc++/17223 * docs/doxygen/filter: Remove. * docs/doxygen/filter.sed: Remove. * docs/doxygen/mainpage.html: Add link to functions. * docs/doxygen/run_doxygen: Changes due to new source filtering. * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak. * include/bits/allocator.h: Tweaks for doxygen. * include/bits/char_traits.h: Same. * include/bits/codecvt.h: Same. * include/bits/concurrence.h: Same. * include/bits/locale_facets.h: Same. * include/ext/array_allocator.h: Same. * include/ext/debug_allocator.h: Same. * include/ext/malloc_allocator.h: Same. * include/ext/mt_allocator.h: Same. * include/ext/new_allocator.h: Same. * include/ext/pool_allocator.h: Same. * include/ext/stdio_sync_filebuf.h: Same. * include/std/std_memory.h: Same. * include/tr1/array: Same. * include/tr1/tuple: Same. * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same. * config/os/gnu-linux/ctype_base.h: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90137 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-09 Paolo Carlini <pcarlini@suse.de>paolo2004-10-091-3/+5
| | | | | | | | | | | * include/std/std_memory.h (__get_temporary_buffer): Don't use INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit platforms too. * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88814 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-06 Paolo Carlini <pcarlini@suse.de>paolo2004-10-061-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/std_sstream.h (_M_sync): When the caller is setbuf, don't trust _M_string.capacity() to be the size of the buffer area, use _M_string.size() in this case. * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New. * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise. * include/bits/sstream.tcc (overflow): Avoid calling string::assign unnecessarily when the current _M_string is empty. 2004-10-06 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)): Avoid iterator postincrement. (__rotate): Likewise. * include/bits/stl_algo.h: Minor formatting tweaks. 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk> * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)): Avoid iterator postincrement; fix swapping middle element with itself on odd-length inputs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88593 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-01 Paolo Carlini <pcarlini@suse.de>paolo2004-10-011-8/+7
| | | | | | | | | | * include/bits/sstream.tcc (seekpos): Minor rearrangement of two conditionals consistently with seekoff. * include/std/std_sstream.h (setbuf): Avoid a string temporary. (_M_sync): Simplify a bit, clean-up comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88389 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-29 Paolo Carlini <pcarlini@suse.de>paolo2004-09-291-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)): Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1. (str()): Slightly tweak, protect from pptr() == 0. (_M_update_egptr()): Likewise. * include/bits/sstream.tcc (ssekoff, seekpos): In order to check for an empty buffer use __beg instead of _M_string.capacity(). * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New. * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_filebuf/cons/char/1.cc: New. * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise. * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update. * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise. 2004-09-29 Paolo Carlini <pcarlini@suse.de> Benjamin Kosnik <bkoz@redhat.com> * testsuite/testsuite_io.h (class constraint_buf): New, extended and templatized version of constraint_filebuf; add typedefs for streambuf/stringbuf/filebuf and wchar_t counterparts. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88307 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-13 Paolo Carlini <pcarlini@suse.de>paolo2004-09-131-18/+1
| | | | | | | | | | | | | | | PR libstdc++/11722 * include/std/std_fstream.h (xsgetn): Declare only. * include/bits/fstream.tcc (xsgetn): Define, optimize for the always_noconv() case: when __n > __buflen, copy the available buffer and issue a direct read. * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New. * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a conditional. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87453 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-08-13 Paolo Carlini <pcarlini@suse.de>paolo2004-08-131-5/+27
| | | | | | | | | | * include/std/std_fstream.h (class basic_ifstream, class basic_ofstream, class basic_fstream): Add const overloads of is_open, as per DR 365 [WP]. * docs/html/ext/howto.html: Add an entry for DR 365. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85948 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-08 Paolo Carlini <pcarlini@suse.de>paolo2004-07-081-85/+79
| | | | | | | | | | | | | | | * include/bits/gslice.h: Trivial formatting fixes. * include/bits/gslice_array.h: Likewise. * include/bits/indirect_array.h: Likewise. * include/bits/mask_array.h: Likewise. * include/bits/slice_array.h: Likewise. * include/bits/valarray_after.h: Likewise. * include/bits/valarray_array.h: Likewise. * include/bits/valarray_before.h: Likewise. * include/std/std_valarray.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84312 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Paolo Carlini <pcarlini@suse.de>paolo2004-06-221-2/+13
| | | | | | | | | | | | | | | | | * include/std/std_istream.h (ignore(streamsize __n = 1, int_type __delim = traits_type::eof())): Split into... (ignore(), ignore(streamsize __n), ignore(streamsize __n, int_type __delim)): The first two can be much more simpler and efficient than the fully general case; also, the last two can take advantage of the same mechanism already used for getline. * include/bits/istream.tcc (ignore(streamsize __n = 1, int_type __delim = traits_type::eof()): Remove. (ignore(), ignore(streamsize __n), ignore(streamsize __n, int_type __delim)): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83486 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>bkoz2004-06-101-8/+8
| | | | | | | | * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make this function return a value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82928 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_complex.h (log): Tidy.gdr2004-06-021-2/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82584 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_complex.h (complex<_Tp>): Properly indentgdr2004-05-301-166/+355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to follow C++STYLE. (complex<>::__rep): New. (__complex_abs): New. Dispatch to built-ins. (abs): Use them. (__complex_arg): New. Dispatch to built-ins. (arg): Use it. (__complex_cos): New. Dispatch to built-ins. (cos): Use it. (__complex_cosh): New. Dispatch to built-ins. (cosh): Use it. (__complex_exp): New. Dispatch to built-ins. (exp): Use it. (__complex_log): New. Dispatch to built-ins. (log): Use it. (__complex_sin): New. Dispatch to built-ins. (sin): Use it. (__complex_sinh): New. Dispatch to built-ins. (sinh): Use it. (__complex_sqrt): New. Dispatch to built-ins. (sqrt): Use it. (__complex_tan): New. Dispatch to built-ins. (tan): Use it. (__complex_tanh): New. Dispatch to built-ins. (tanh): Use it. (__complex_pow): New. Dispatch to built-ins. (pow): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82453 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-05-222-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/12854 Fixups for -Weffc++. * include/bits/basic_string.h (basic_string::operator=): Return pointer to this instead of result of assign. Although redundant, this doesn't impact resultant codegen. * include/bits/locale_facets.h (__numpunct_cache): Declare assignment opxserator and copy constructor private. (__timepunct_cache): Same. (__moneypunct_cache): Same. (collate): Use member initialization list for _M_c_locale_collate. * config/locale/gnu/messages_members.h: Same. * config/locale/gnu/time_members.h (__timepunct): Same. * src/codecvt.cc: Use member initialization list to initialize _M_c_locale_codecvt. * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok. * config/os/gnu-linux/ctype_noninline.h: Same. * src/locale.cc (_Impl): Same. * src/locale_init.cc: Same. * src/localename.cc: Same. * include/bits/basic_ios.h (basic_ios): Complete member initialization list. * include/bits/istream.tcc (basic_istream::sentry): Same. * include/bits/ostream.tcc (basic_ostream::sentry): Same. * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and _M_pback to member initialization list. * include/std/std_streambuf.h: Same. * include/std/std_sstream.h: Same, for _M_mode. * src/ios.cc (ios_base): Same. * include/ext/rope: Make derived classes match exception specifications. Add copy constructors and assignment operators. * include/debug/safe_base.h (_Safe_sequence_base): Declare copy constructor and assignment operator protected. (_Safe_iterator_base): Same. * include/debug/formatter.h (_Error_formatter): Define copy constructor and assignment operator. * include/backward/strstream: Declare assignment operator and copy constructor private. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82153 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-16 Paolo Carlini <pcarlini@suse.de>paolo2004-05-161-12/+12
| | | | | | | * include/std/std_bitset.h: Minor formatting fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81917 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-15 Paolo Carlini <pcarlini@suse.de>paolo2004-05-151-509/+565
| | | | | | | * include/std/std_bitset.h: Trivial formatting fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81878 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-14 Paolo Carlini <pcarlini@suse.de>paolo2004-05-141-3/+3
| | | | | | | | | | | Ivan Godard <igodard@pacbell.net> PR libstdc++/15361 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix. * testsuite/23_containers/bitset/ext/15361.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81852 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-04-161-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/c++config (_GLIBCXX_STD): New. * src/list.cc: Use it. * include/std/std_bitset.h: Same. * include/bits/vector.tcc: Same. * include/bits/stl_set.h: Same. * include/bits/stl_multiset.h: Same. * include/bits/stl_multimap.h: Same. * include/bits/stl_map.h: Same. * include/bits/stl_list.h: Same. * include/bits/stl_vector.h: Same. * include/bits/stl_bvector.h: Same. * include/bits/stl_deque.h: Same. * include/bits/deque.tcc: Same. * include/bits/list.tcc: Same. * include/debug/vector: Same. * include/debug/set.h: Same. * include/debug/multiset.h: Same. * include/debug/multimap.h: Same. * include/debug/map.h: Same. * include/debug/list: Same. * include/debug/deque: Same. * include/debug/bitset: Same. * include/debug/formatter.h (__gnu_debug): Remove using directive. Add using declaration for std::type_info. * include/debug/safe_iterator.h: Add using declaration for std::iterator_traits and std::pair. * src/debug_list.cc: New. * src/Makefile.am: Add debug_list.cc. * src/Makefile.in: Regenerate. * config/linker-map.gnu: Add _List_node_base exports for std and __gnu_norm. * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl idiom that other containers use. * testsuite/23_containers/vector/bool/clear_allocator.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80763 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-20 Paolo Carlini <pcarlini@suse.de>paolo2004-03-201-7/+4
| | | | | | | | * include/std/std_valarray.h: Document DR389 [Ready]. * docs/html/ext/howto.html: Add an entry for DR389. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79733 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Paolo Carlini <pcarlini@suse.de>paolo2004-03-111-4/+5
| | | | | | | | | | * include/std/std_complex.h (pow(const complex&, const _Tp&), pow(const _Tp&, const complex&), pow(const complex&, const complex&)): Fully qualify with std:: a few calls. * testsuite/26_numerics/complex/13450.cc: Minor tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79338 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-10 Paul Kienzle <pkienzle@nist.gov>paolo2004-03-101-4/+3
| | | | | | | | | | | | | | | Paolo Carlini <pcarlini@suse.de> PR libstdc++/13450 * include/std/std_complex.h (pow(const complex&, const _Tp&), pow(const _Tp&, const complex&)): Use cmath pow only when safe. * testsuite/26_numerics/complex/13450.cc: New. * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc. * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79227 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-10 Paolo Carlini <pcarlini@suse.de>paolo2004-02-112-6/+6
| | | | | | | | | | | | | | | | Petur Runolfsson <peturr02@ru.is> PR libstdc++/14078 * include/std/std_istream.h (operator>>(__istream_type& (*) (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)), operator>>(ios_base& (*)(ios_base&))): Declare inline. * include/std/std_ostream.h (operator<<(__ostream_type& (*) (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)), operator<<(ios_base& (*) (ios_base&))): Likewise. * testsuite/performance/27_io/fmtflags_manipulators.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77650 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-02 Jerry Quinn <jlquinn@optonline.net>jlquinn2004-02-031-1/+1
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77156 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-02 Jerry Quinn <jlquinn@optonline.net>jlquinn2004-02-031-1/+308
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77153 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>bkoz2004-01-301-40/+46
| | | | | | | | | | | | | | | * config/local/generic/c_locale.h: Change ::malloc() to new char[]. * config/local/gnu/c_locale.h: Change ::malloc() to new char[]. * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use std::get_temporary_buffer() instead of duplicating its code. Update to C++STYLE conventions. * include/std/std_memory.h (get_temporary_buffer): Use ::operator new() instead of std::malloc(). (return_temporary_buffer): Use ::operator delete() instead of std::free(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76922 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-01-26 Jerry Quinn <jlquinn@optonline.net>jlquinn2004-01-271-2/+70
| | | | | | | | | | | * include/bits/codecvt.h, include/bits/locale_facets.h, include/bits/postypes.h, include/bits/stl_bvector.h, include/bits/stl_multiset.h, include/bits/stl_set.h, include/bits/stream_iterator.h, include/bits/streambuf_iterator.h, include/std/std_complex.h: Document. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76688 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-26 Paolo Carlini <pcarlini@suse.de>paolo2004-01-271-5/+9
| | | | | | | | | | | | | | | | | | | | * config/locale/generic/c_locale.cc: Fix throw messages to use the __N marker. * config/locale/gnu/c_locale.cc: Likewise. * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise. * docs/html/17_intro/C++STYLE: Likewise. * include/bits/basic_ios.tcc: Likewise. * include/bits/fstream.tcc: Likewise. * include/bits/vector.tcc: Likewise. * include/ext/ropeimpl.h: Likewise. * include/std/std_bitset.h: Likewise. * src/ios.cc: Likewise. * src/locale.cc: Likewise. * src/localename.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76684 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_complex.h (std::complex<>::real): Return agdr2004-01-111-36/+135
| | | | | | | | | | | | | | | reference. Add non-const overload. (std::complex<>::real): Likewise. (std::real): Likewise. (std::imag): Likewise. (std::operator+): Tidy. (std::operator-): Likewise. (std::operator*): Likewise. (std::operator/): Likewise. (std::operator>>): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75680 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-04 Paolo Carlini <pcarlini@suse.de>paolo2003-12-041-28/+35
| | | | | | | | | | | | | | | | | PR libstdc++/12653 * include/std/std_bitset.h (operator>>): Implement resolution of DR 303 [WP]: use widen('0') and widen('1'). * docs/html/ext/howto.html: Add an entry for DR 303. * include/std/std_bitset.h (operator>>): Implement the common requirements of formatted input functions (27.6.1.2.1). * include/std/std_bitset.h (operator>>): Set the failbit when nothing was extracted and _Nb != 0. * testsuite/23_containers/bitset/input/1.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74276 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-27 Paolo Carlini <pcarlini@suse.de>paolo2003-11-271-4/+3
| | | | | | | | | | | | | | | | | * include/std/std_streambuf.h (__copy_streambufs): Remove the first, unused, basic_ios<> parameter. * src/streambuf-inst.cc: Likewise. * include/bits/streambuf.tcc: Likewise. * include/bits/istream.tcc (operator>>(__streambuf_type*)): Tweak accordingly the call. * include/bits/ostream.tcc (operator<<(__streambuf_type*)): Likewise. * include/bits/streambuf.tcc (__copy_streambufs): Remove redundant try/catch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73992 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-15 Paolo Carlini <pcarlini@suse.de>paolo2003-11-161-1/+1
| | | | | | | * include/std/std_fstream.h: Tweak a comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73640 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-13 Paolo Carlini <pcarlini@suse.de>paolo2003-11-131-7/+6
| | | | | | | | | | | | | | | | | | | | | | Petur Runolfsson <peturr02@ru.is> PR libstdc++/13007 * include/bits/fstream.tcc (imbue): Don't touch the stored locale. * include/std/std_streambuf.h (imbue): According to the standard, base class version does nothing. (pubimbue): Store the locale. * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New. * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New. * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak. * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise. * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New. * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New. * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New. * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73563 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>bkoz2003-11-1115-63/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docs/html/debug.html: Document libstdc++ debug mode. * docs/html/debug_mode.html: Document libstdc++ debug mode design. * docs/html/test.html: Document how to test under debug mode. * docs/html/17_intro/howto.html: Document debug-mode macros. * include/Makefile.am: Install debug-mode headers. * src/Makefile.am: Include debug.cc. * include/bits/basic_string.tcc: (basic_string::_S_construct): Fix NULL pointer check. (__is_null_pointer): New. Add precondition annotations. * include/bits/stream_iterator.h (istream_iterator, ostream_iterator): Added precondition annotations. * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto. * include/bits/stl_queue.h (queue, priority_queue): Ditto. * include/bits/stl_stack.h (stack): Ditto. * include/bits/basic_string.h (basic_string): Ditto. * include/bits/basic_string.tcc (basic_string): Ditto. * include/std/std_memory.h (auto_ptr): Ditto. * include/std/std_valarray.h (valarray): Ditto. * include/bits/stl_algo.h: Added algorithm precondition annotations. * include/bits/stl_algobase.h: Added algorithm precondition annotations. * include/bits/stl_numeric.h: Ditto. * include/ext/algorithm: Added algorithm precondition annotations. (__is_heap): Moved away from here. * include/bits/stl_heap.h: Added algorithm precondition annotations. (__is_heap): Moved to the top of this file. (__is_heap): Added iterator range overloads. * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up with changes in std_memory.h. * testsuite/23_containers/list/operators/4.cc: Don't verify performance guarantees when in debug mode. * testsuite/23_containers/bitset/invalidation/1.cc: New. * testsuite/23_containers/deque/invalidation/1.cc: New. * testsuite/23_containers/deque/invalidation/2.cc: New. * testsuite/23_containers/deque/invalidation/3.cc: New. * testsuite/23_containers/deque/invalidation/4.cc: New. * testsuite/23_containers/list/invalidation/1.cc: New. * testsuite/23_containers/list/invalidation/2.cc: New. * testsuite/23_containers/list/invalidation/3.cc: New. * testsuite/23_containers/list/invalidation/4.cc: New. * testsuite/23_containers/map/invalidation/1.cc: New. * testsuite/23_containers/map/invalidation/2.cc: New. * testsuite/23_containers/multimap/invalidation/1.cc: New. * testsuite/23_containers/multimap/invalidation/2.cc: New. * testsuite/23_containers/multiset/invalidation/1.cc: New. * testsuite/23_containers/multiset/invalidation/2.cc: New. * testsuite/23_containers/set/invalidation/1.cc: New. * testsuite/23_containers/set/invalidation/2.cc: New. * testsuite/23_containers/vector/invalidation/1.cc: New. * testsuite/23_containers/vector/invalidation/2.cc: New. * testsuite/23_containers/vector/invalidation/3.cc: New. * testsuite/23_containers/vector/invalidation/4.cc: New. * testsuite/25_algorithms/heap.cc: Don't verify performance guarantees when in debug mode. * include/debug/bitset: New. * include/debug/debug.h: New. * include/debug/deque: New. * include/debug/formatter.h: New. * include/debug/hash_map: New. * include/debug/hash_map.h: New. * include/debug/hash_multimap.h: New. * include/debug/hash_set: New. * include/debug/hash_set.h: New. * include/debug/hash_multiset.h: New. * include/debug/list: New. * include/debug/map: New. * include/debug/map.h: New. * include/debug/multimap.h: New. * include/debug/multiset.h: New. * include/debug/safe_base.h: New. * include/debug/safe_iterator.h: New. * include/debug/safe_iterator.tcc: New. * include/debug/safe_sequence.h: New. * include/debug/set: New. * include/debug/set.h: New. * include/debug/string: New. * include/debug/vector: New. * src/debug.cc: New. * config/linker-map.gnu: Add debug mode symbols. 2003-11-11 Benjamin Kosnik <bkoz@redhat.com> * src/string-inst.cc: Tweak namespaces. * src/misc-inst.cc: Same. * docs/html/debug.html: Edits. * config/link-map.gnu: Remove cruft. * include/bits/c++config: Add in namespace associations. * include/std/std_bitset.h: Adjust namespace to __gnu_norm, comment tweaks. * include/bits/deque.tcc: Same. * include/bits/list.tcc: Same. * include/bits/stl_bvector.h: Same. * include/bits/stl_deque.h: Same. * include/bits/stl_list.h: Same. * include/bits/stl_map.h: Same. * include/bits/stl_multimap.h: Same. * include/bits/stl_multiset.h: Same. * include/bits/stl_set.h: Same. * include/bits/stl_vector.h: Same. * include/bits/vector.tcc: Same. * include/std/std_algorithm.h: Remove markup comments. * include/std/std_functional.h: Same. * include/std/std_iterator.h: Same. * include/std/std_numeric.h: Same. * include/std/std_utility.h: Same. * include/bits/stl_queue.h: Formatting tweaks. * include/bits/stl_stack.h: Same. * include/std/std_deque.h: Include debugging version in debug mode. * include/std/std_list.h: Same. * include/std/std_map.h: Same. * include/std/std_set.h: Same. * include/std/std_vector.h: Same. * include/std/std_queue.h: Use deque, vector. * include/std/std_stack.h: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73459 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-03 Petur Runolfsson <peturr02@ru.is>bkoz2003-11-041-31/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/12790 * include/bits/fstream.tcc: Delete _M_last_overflowed. (basic_filebuf::basic_filebuf): Initialize _M_state_last. (basic_filebuf::open, basic_filebuf::close): Assign _M_state_beg to _M_state_cur and _M_state_last. (basic_filebuf::close): Call _M_terminate_output to handle unshift and flushing. (basic_filebuf::underflow): Assign _M_state_last, throw exception instead of calling abort when codecvt::max_length() is bad. (basic_filebuf::seekoff): Use _M_state_last when calling codecvt::length(), pass correct state to _M_seek. (basic_filebuf::seekpos): Pass __pos.state() to _M_seek. (basic_filebuf::_M_seek): Add __state_type parameter, set _M_state_cur correctly, store the resulting state in the return value and use _M_terminate_output to handle flushing and unshift. (basic_filebuf::_M_terminate_output): Flush contents of output buffer, if any, then call codecvt::unshift as needed and output the result. (basic_filebuf::sync): Move here, don't modify _M_writing or _M_reading. * include/std/std_fstream.h (basic_filebuf::_M_state_last): Declare it. (basic_filebuf::_M_last_overflowed): Delete. (basic_filebuf::_M_seek): Add __state_type parameter. (basic_filebuf::sync): Declare only. (basic_filebuf::_M_output_unshift): Delete. (basic_filebuf::_M_terminate_output): Declare it. * testsuite/testsuite_character.h: Define character class and state class plus char_traits and codecvt specializations for same for testing support for stateful encodings. * testsuite/27_io/basic_filebuf/close/12790-1.cc, * testsuite/27_io/basic_filebuf/close/char/12790-1.cc, * testsuite/27_io/basic_filebuf/close/char/12790-2.cc, * testsuite/27_io/basic_filebuf/close/char/12790-3.cc, * testsuite/27_io/basic_filebuf/close/char/12790-4.cc, * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc, * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc, * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc, * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc, * testsuite/27_io/basic_filebuf/open/12790-1.cc, * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc, * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc, * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc, * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc, * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc, * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc, * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc, * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc, * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc, * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc, * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc, * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc, * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc, * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc, * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc, * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc, * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc, * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc, * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc, * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc, * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc, * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc, * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc, * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc, * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc, * testsuite/27_io/basic_filebuf/sync/char/1.cc, * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc: New tests. * testsuite/27_io/basic_filebuf/3.cc, * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc, * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc, * testsuite/27_io/basic_fstream/3.cc, * testsuite/27_io/basic_ifstream/3.cc, * testsuite/27_io/basic_ofstream/3.cc: Use streamoff as off_type and fpos<state_type> as pos_type. * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc, * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Check that sync does *not* set _M_writing to false. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73245 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-16 Petur Runolfsson <peturr02@ru.is>bkoz2003-10-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/8610 PR libstdc++/11450 PR libstdc++/11543 PR libstdc++/12065 * config/io/basic_file_stdio.cc (__basic_file::seekoff): Change return value from streampos to streamoff. (__basic_file::seekpos): Delete. * config/io/basic_file_stdio.h: Same. * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs. * include/Makefile.am (bits_headers): Add bits/postypes.h. * include/bits/char_traits.h: Include bits/postypes.h instead of bits/fpos.h. * include/bits/fstream.tcc (basic_filebuf::open, basic_filebuf::pbackfail): Don't use < or >= to compare pos_type values, use == and != instead. (basic_filebuf::_M_seek): Use explicit conversion from streamoff to pos_type. (basic_filebuf::imbue): Don't use ! on pos_type values, use == instead. Don't use __check_facet(_M_codecvt) unless is_open(). * include/bits/postypes.h: New file. Add __streamoff_base_type typedef, streamsize. (streamoff, streampos, wstreampos): Define typedefs, with streamoff defined as... (streamoff): New class. Document implementation defined aspects. (fpos): New implementation. Document implementation defined aspects. * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use explicit conversion from pos_type to off_type. * include/std/std_iosfwd.h: Include bits/postypes.h instead of bits/fpos.h. * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test. * testsuite/27_io/fpos/11450.cc: New test. * testsuite/27_io/fpos/mbstate_t/12065.cc: New test. * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test. * testsuite/27_io/types/3.cc: New test. 2003-10-16 Benjamin Kosnik <bkoz@redhat.com> * configure.host: Remove fpos_include_dir. * configure.ac: Remove FPOS_INC_SRCDIR. * configure: Regenerate. * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H. * aclocal.m4: Regenerate. * include/Makefile.am (host_headers): Remove fpos.h. (bits_headers): Add postypes.h. * include/Makefile.in: Regenerate. * config/os/gnu-linux/fposh: Remove. * config/os/generic/fpos.h: Remove. * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup. * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same. * testsuite/27_io/basic_istream/seekg/char/2.cc: Same. * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same. * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same. * testsuite/27_io/fpos/mbstate_t/3.cc: Same. * testsuite/27_io/objects/char/10.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72582 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-12 Paolo Carlini <pcarlini@unitus.it>paolo2003-10-124-19/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment. * include/bits/basic_string.tcc: Likewise. * include/bits/ios_base.h: Likewise. * include/bits/istream.tcc: Likewise. * include/bits/locale_facets.tcc: Likewise. * include/bits/ostream.tcc: Likewise. * include/bits/stl_function.h: Likewise. * include/bits/stl_multiset.h: Likewise. * include/bits/stl_pair.h: Likewise. * include/bits/stl_set.h: Likewise. * include/bits/streambuf_iterator.h * include/std/std_iosfwd.h: Likewise. * include/std/std_istream.h: Likewise. * include/std/std_sstream.h: Likewise. * include/std/std_streambuf.h: Likewise. * src/ios.cc: Likewise. * include/bits/c++config: Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1. * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a dg-error directive due to removal of a blank line. * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72392 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-09 Petur Runolfsson <peturr02@ru.is>bkoz2003-10-091-0/+9
| | | | | | | | | | | | | | | PR libstdc++/9874 * include/bits/fstream.tcc (basic_filebuf::seekoff): Move code needed for both seekoff and seekpos... (basic_filebuf::_M_seek): ...here. New function. (basic_filebuf::seekpos): Don't call seekoff, call _M_seek. * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it. * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test. * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72268 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-18 Petur Runolfsson <peturr02@ru.is>bkoz2003-09-182-4/+1
| | | | | | | | | | * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete. * config/io/basic_file_stdio.h: Same. * include/std/std_fstream.h (__ctype_type): Delete. * include/std/std_streambuf.h (__ctype_type, __state_type): Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71520 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-04 Petur Runolfsson <peturr02@ru.is>bkoz2003-09-051-0/+26
| | | | | | | | | | | | | | | | | | | | | | PR libstdc++/9028 * include/bits/fstream.tcc (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf. (basic_filebuf::basic_filebuf): Initialize _M_ext_buf, _M_ext_buf_size, _M_ext_next and _M_ext_end. (basic_filebuf::underflow): Handle variable-width stateless encodings (codecvt::encoding() == 0), including UTF-8. * include/std/std_fstream.h (basic_filebuf): Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end. * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test. * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test. * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test. * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test. * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test. * testsuite/27_io/objects/wchar_t/12.cc: New test. * testsuite/27_io/objects/wchar_t/13.cc: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71111 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-08-122-4/+4
| | | | | | | | | | | | | | | | | * include/bits/basic_ios.h: Remove *_iter typedefs, change num* typedefs to num_*. * include/bits/basic_ios.tcc: Same. * include/bits/istream.tcc: Same. * include/bits/locale_facets.h: Same. * include/bits/ostream.tcc: Same. * include/std/std_istream.h: Same. * include/std/std_ostream.h: Same. * testsuite/26_numerics/complex_inserters_extractors.cc: Fix. * include/ext/rope: Remove build warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70357 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-07-3011-37/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove. (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE. (_GLIBCXX_AT_AT): Remove. (__USE_MALLOC): Remove. * include/std/std_fstream.h: Modify. * include/bits/basic_ios.h: Same. * include/bits/valarray_array.h: Same. * include/c_std/std_cmath.h: Same. * include/c_std/cmath.tcc: Same. * include/std/std_vector.h: Same. * include/std/std_string.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/std/std_streambuf.h: Same. * include/std/std_sstream.h: Same. * include/std/std_ostream.h: Same. * include/std/std_istream.h: Same. * include/bits/valarray_array.tcc: Same, format. * include/c/std_cctype.h: Fix include guards. * include/c/std_cerrno.h: Same. * include/c/std_cfloat.h: Same. * include/c/std_climits.h: Same. * include/c/std_clocale.h: Same. * include/c/std_cmath.h: Same. * include/c/std_csetjmp.h: Same. * include/c/std_csignal.h: Same. * include/c/std_cstdarg.h: Same. * include/c/std_cstddef.h: Same. * include/c/std_cstdio.h: Same. * include/c/std_cstdlib.h: Same. * include/c/std_cstring.h: Same. * include/c/std_ctime.h: Same. * include/c/std_cwchar.h: Same. * include/c/std_cwctype.h: Same. * include/c_std/cmath.tcc: Same. * include/c_std/std_cmath.h: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69961 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.sje2003-07-2329-90/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/c_std/std_cctype.h: Ditto. * include/c_std/std_cerrno.h: Ditto. * include/c_std/std_cfloat.h: Ditto. * include/c_std/std_climits.h: Ditto. * include/c_std/std_clocale.h: Ditto. * include/c_std/std_cmath.h: Ditto. * include/c_std/std_csetjmp.h: Ditto. * include/c_std/std_csignal.h: Ditto. * include/c_std/std_cstdarg.h: Ditto. * include/c_std/std_cstddef.h: Ditto. * include/c_std/std_cstdio.h: Ditto. * include/c_std/std_cstdlib.h: Ditto. * include/c_std/std_cstring.h: Ditto. * include/c_std/std_ctime.h: Ditto. * include/c_std/std_cwchar.h: Ditto. * include/c_std/std_cwctype.h: Ditto. * include/std/std_algorithm.h: Ditto. * include/std/std_bitset.h: Ditto. * include/std/std_complex.h: Ditto. * include/std/std_deque.h: Ditto. * include/std/std_fstream.h: Ditto. * include/std/std_functional.h: Ditto. * include/std/std_iomanip.h: Ditto. * include/std/std_ios.h: Ditto. * include/std/std_iosfwd.h: Ditto. * include/std/std_iostream.h: Ditto. * include/std/std_istream.h: Ditto. * include/std/std_iterator.h: Ditto. * include/std/std_limits.h: Ditto. * include/std/std_list.h: Ditto. * include/std/std_locale.h: Ditto. * include/std/std_map.h: Ditto. * include/std/std_memory.h: Ditto. * include/std/std_numeric.h: Ditto. * include/std/std_ostream.h: Ditto. * include/std/std_queue.h: Ditto. * include/std/std_set.h: Ditto. * include/std/std_sstream.h: Ditto. * include/std/std_stack.h: Ditto. * include/std/std_stdexcept.h: Ditto. * include/std/std_streambuf.h: Ditto. * include/std/std_string.h: Ditto. * include/std/std_utility.h: Ditto. * include/std/std_valarray.h: Ditto. * include/std/std_vector.h: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69705 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-14 Paolo Carlini <pcarlini@unitus.it>paolo2003-07-141-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Nathan C. Myers <ncm-nospam@cantrip.org> PR libstdc++/11378 * include/std/std_fstream.h (xsputn): Declare only. * include/bits/fstream.tcc (xsputn): Define, optimize for the always_noconv() case: when __n is sufficiently large flush the buffer and issue a direct write, if possible combining the two with writev in __basic_file<>::xsputn_2. * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2): New, declare. * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2): Define. * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for the availability of writev in <sys/uio.h>. * configure.in: Call here. * acconfig.h: Add undef for the corresponding symbol. * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak. * include/std/std_fstream.h (sync): Constify a variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69341 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-07 Paolo Carlini <pcarlini@unitus.it>paolo2003-07-071-19/+19
| | | | | | | | * include/std/std_complex.h: Partially revert last changes: cmath functions must not be qualified. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69040 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud