GCC Administrator
071d36e295
Daily bump.
...
From-SVN: r43684
2001-07-02 07:16:12 +00:00
GCC Administrator
80617fee7e
Daily bump.
...
From-SVN: r43668
2001-07-01 07:16:41 +00:00
GCC Administrator
bc2fa2fd2e
Daily bump.
...
From-SVN: r43663
2001-06-30 07:17:41 +00:00
Benjamin Kosnik
13f83598b3
locale_facets.tcc (locale::combine): Clone _Impl.
...
2001-06-29 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc (locale::combine): Clone _Impl.
before replacing facet.
* include/bits/localefwd.h (locale::_Impl::_M_remove_reference):
Correct decrement.
* src/localename.cc (locale::_Impl): Correct ctor initialization
lists. Initialize ref count with one. Simplify.
* src/locale.cc: Add comment.
* testsuite/22_locale/numpunct.cc (test01): Add derivation test.
* testsuite/22_locale/numpunct_char_members.cc (test01): Add tests.
* testsuite/22_locale/members.cc (test02): Fix.
From-SVN: r43661
2001-06-30 04:35:49 +00:00
GCC Administrator
b669108540
Daily bump.
...
From-SVN: r43652
2001-06-29 07:16:59 +00:00
GCC Administrator
72beea5653
Daily bump.
...
From-SVN: r43630
2001-06-28 07:16:17 +00:00
Phil Edwards
42526146aa
algo.h: Add "GPL plus runtime exception" comment block, this time for real.
...
2001-06-27 Phil Edwards <pme@sources.redhat.com>
* include/backward/algo.h: Add "GPL plus runtime exception" comment
block, this time for real.
* include/backward/algobase.h: Likewise.
* include/backward/alloc.h: Likewise.
* include/backward/bvector.h: Likewise.
* include/backward/defalloc.h: Likewise.
* include/backward/deque.h: Likewise.
* include/backward/function.h: Likewise.
* include/backward/hash_map.h: Likewise.
* include/backward/hash_set.h: Likewise.
* include/backward/hashtable.h: Likewise.
* include/backward/heap.h: Likewise.
* include/backward/iterator.h: Likewise.
* include/backward/list.h: Likewise.
* include/backward/map.h: Likewise.
* include/backward/multimap.h: Likewise.
* include/backward/multiset.h: Likewise.
* include/backward/pair.h: Likewise.
* include/backward/rope.h: Likewise.
* include/backward/set.h: Likewise.
* include/backward/slist.h: Likewise.
* include/backward/stack.h: Likewise.
* include/backward/strstream: Likewise.
* include/backward/tempbuf.h: Likewise.
* include/backward/tree.h: Likewise.
* include/backward/vector.h: Likewise.
* include/bits/pthread_allocimpl.h: Likewise.
* include/bits/std_algorithm.h: Likewise.
* include/bits/std_bitset.h: Likewise.
* include/bits/std_deque.h: Likewise.
* include/bits/std_functional.h: Likewise.
* include/bits/std_iterator.h: Likewise.
* include/bits/std_list.h: Likewise.
* include/bits/std_map.h: Likewise.
* include/bits/std_memory.h: Likewise.
* include/bits/std_numeric.h: Likewise.
* include/bits/std_queue.h: Likewise.
* include/bits/std_set.h: Likewise.
* include/bits/std_stack.h: Likewise.
* include/bits/std_utility.h: Likewise.
* include/bits/std_vector.h: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_alloc.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_function.h: Likewise.
* include/bits/stl_heap.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Likewise.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_numeric.h: Likewise.
* include/bits/stl_pair.h: Likewise.
* include/bits/stl_pthread_alloc.h: Likewise.
* include/bits/stl_queue.h: Likewise.
* include/bits/stl_raw_storage_iter.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_stack.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_threads.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/type_traits.h: Likewise.
* include/ext/hash_map: Likewise.
* include/ext/hash_set: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/slist: Likewise.
* include/ext/stl_hash_fun.h: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* include/ext/stl_rope.h: Likewise.
* src/bitset.cc: Likewise.
* src/strstream.cc: Likewise.
From-SVN: r43613
2001-06-27 17:09:53 +00:00
GCC Administrator
e63fc7bde1
Daily bump.
...
From-SVN: r43606
2001-06-27 07:16:10 +00:00
Benjamin Kosnik
f2f5472f06
streambuf.tcc (__copy_streambufs): Don't set eofbit.
...
2001-06-26 Benjamin Kosnik <bkoz@fillmore.constant.com>
<vakatov@ncbi.nlm.nih.gov>
libstdc++/3272
* include/bits/streambuf.tcc (__copy_streambufs): Don't set eofbit.
* testsuite/27_io/ostream_inserter_other.cc (test04): Add test.
* testsuite/27_io/istream_extractor_other.cc: Fix.
From-SVN: r43602
2001-06-27 01:07:29 +00:00
Benjamin Kosnik
75bef43405
stream_iterator.h (istream_iterator): Add copy ctor.
...
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stream_iterator.h (istream_iterator): Add copy ctor.
(ostream_iterator): Same.
* include/bits/stl_iterator.h (front_insert_iterator::operator=):
Change argument to const_reference.
(back_insert_iterator): Same.
From-SVN: r43596
2001-06-26 23:12:45 +00:00
Benjamin Kosnik
d27bba5e57
sbuf_iter.h: Change to..
...
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/sbuf_iter.h: Change to..
* include/bits/streambuf_iterator.h: This.
* include/bits/stl_iterator.h: Take out of here...
* include/bits/stream_iterator.h: Add.
* src/Makefile.am (base_headers): Add streambuf_iterator,
stream_iterator.h
* src/Makefile.in: Regenerate.
* include/bits/std_string.h: Adjust includes.
* include/bits/basic_ios.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/bits/std_iosfwd.h: Same.
* include/bits/std_iterator.h: Add istream, ostream includes.
* include/bits/stl_iterator.h: Tweak.
* testsuite/24_iterators/ostream_iterator.cc: Add test.
* testsuite/24_iterators/istream_iterator.cc: Same.
* testsuite/23_containers/multiset.cc: Add iterator include.
From-SVN: r43592
2001-06-26 21:22:57 +00:00
Benjamin Kosnik
f4655693b5
stl_iterator.h (istream_iterator::operator->): Fix return values.
...
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_iterator.h (istream_iterator::operator->): Fix
return values.
(istream_iterator::operator*): Same.
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
Alexandre Petit-Bianco <apbianco@redhat.com>
* testsuite/21_strings/element_access.cc (test01): Chill Out Cafe
is on 41st, not 14th.
Co-Authored-By: Alexandre Petit-Bianco <apbianco@redhat.com>
From-SVN: r43574
2001-06-26 09:41:53 +00:00
GCC Administrator
4b76a1e3e5
Daily bump.
...
From-SVN: r43571
2001-06-26 07:16:39 +00:00
Benjamin Kosnik
b581eaf700
std_iterator.h: Include sbuf_iter.h via std_ios.h.
...
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/std_iterator.h: Include sbuf_iter.h via std_ios.h.
* include/bits/stl_iterator.h (istream_iterator): Inherit from
iterator.
(ostream_iterator): Same.
* testsuite/24_iterators/istream_iterator.cc: New file.
* testsuite/24_iterators/ostream_iterator.cc: New file.
* include/bits/sbuf_iter.h: Remove self typedef.
* testsuite/24_iterators/ostreambuf_iterator.cc: Add test.
* testsuite/24_iterators/istreambuf_iterator.cc: Add test.
* include/bits/stl_iterator.h (reverse_iterator): Remove
extraneous typedefs. Add typename.
(__normal_iterator): Remove typedefs referring to self. Add typename.
(reverse_bidiretional_iterator): Remove, not longer required.
From-SVN: r43570
2001-06-26 07:01:09 +00:00
Gabriel Dos Reis
9483461dc9
stl_iterator.h (__normal_iterator<>): Qualify dependent names with `typename'.
...
* include/bits/stl_iterator.h (__normal_iterator<>): Qualify
dependent names with `typename'. Bring in various required
iterator_traits members. Can't imagine why that used to work.
From-SVN: r43568
2001-06-26 06:36:33 +00:00
Benjamin Kosnik
c766fc5f1c
stl_iterator.h (reverse_iterator): Inherit from iterator.
...
2001-06-22 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_iterator.h (reverse_iterator): Inherit from
iterator.
(back_insert_iterator): Same.
(front_insert_iterator): Same.
(insert_iterator): Same.
* testsuite/20_util/raw_storage_iterator.cc: Modify.
* testsuite/24_iterators/reverse_iterator.cc: New file.
* testsuite/24_iterators/back_insert_iterator.cc: New file.
* testsuite/24_iterators/front_insert_iterator.cc: New file.
* testsuite/24_iterators/insert_iterator.cc: New file.
From-SVN: r43524
2001-06-23 00:08:47 +00:00
Phil Edwards
41104fd541
*: Revert comment/license change from yesterday for all except libsupc++/unwind-cxx.h.
...
2001-06-22 Phil Edwards <pme@sources.redhat.com>
* include/*: Revert comment/license change from yesterday for all
except libsupc++/unwind-cxx.h.
* src/bitset.cc: Likewise.
* src/strstream.cc: Likewise.
From-SVN: r43513
2001-06-22 19:53:32 +00:00
Phil Edwards
daa19534a9
algo.h: Add "GPL plus runtime exception" comment.
...
2001-06-21 Phil Edwards <pme@sources.redhat.com>
* include/backward/algo.h: Add "GPL plus runtime exception" comment.
* include/backward/algobase.h: Likewise.
* include/backward/alloc.h: Likewise.
* include/backward/bvector.h: Likewise.
* include/backward/defalloc.h: Likewise.
* include/backward/deque.h: Likewise.
* include/backward/function.h: Likewise.
* include/backward/hash_map.h: Likewise.
* include/backward/hash_set.h: Likewise.
* include/backward/hashtable.h: Likewise.
* include/backward/heap.h: Likewise.
* include/backward/iterator.h: Likewise.
* include/backward/list.h: Likewise.
* include/backward/map.h: Likewise.
* include/backward/multimap.h: Likewise.
* include/backward/multiset.h: Likewise.
* include/backward/pair.h: Likewise.
* include/backward/rope.h: Likewise.
* include/backward/set.h: Likewise.
* include/backward/slist.h: Likewise.
* include/backward/stack.h: Likewise.
* include/backward/strstream: Likewise.
* include/backward/tempbuf.h: Likewise.
* include/backward/tree.h: Likewise.
* include/backward/vector.h: Likewise.
* include/bits/pthread_allocimpl.h: Likewise.
* include/bits/std_algorithm.h: Likewise.
* include/bits/std_bitset.h: Likewise.
* include/bits/std_deque.h: Likewise.
* include/bits/std_functional.h: Likewise.
* include/bits/std_iterator.h: Likewise.
* include/bits/std_list.h: Likewise.
* include/bits/std_map.h: Likewise.
* include/bits/std_memory.h: Likewise.
* include/bits/std_numeric.h: Likewise.
* include/bits/std_queue.h: Likewise.
* include/bits/std_set.h: Likewise.
* include/bits/std_stack.h: Likewise.
* include/bits/std_utility.h: Likewise.
* include/bits/std_vector.h: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_alloc.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_function.h: Likewise.
* include/bits/stl_heap.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Likewise.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_numeric.h: Likewise.
* include/bits/stl_pair.h: Likewise.
* include/bits/stl_pthread_alloc.h: Likewise.
* include/bits/stl_queue.h: Likewise.
* include/bits/stl_raw_storage_iter.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_stack.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_threads.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/type_traits.h: Likewise.
* include/ext/hash_map: Likewise.
* include/ext/hash_set: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/slist: Likewise.
* include/ext/stl_hash_fun.h: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* include/ext/stl_rope.h: Likewise.
* libsupc++/unwind-cxx.h: Likewise.
* src/bitset.cc: Likewise.
* src/strstream.cc: Likewise.
From-SVN: r43496
2001-06-21 23:03:00 +00:00
Gabriel Dos Reis
8164237cfc
indirect_array.h (indirect_array<>::operator=): Make copy and assignment operator public.
...
* include/bits/indirect_array.h (indirect_array<>::operator=):
Make copy and assignment operator public. Implement. Format.
* include/bits/valarray_array.h (__valarray_copy): Add overloads
for copy between index arrays. Format.
From-SVN: r43483
2001-06-21 12:01:09 +00:00
Benjamin Kosnik
54da4898cc
mknumeric_limits: Add static defintions, format.
...
2001-06-19 Benjamin Kosnik <bkoz@redhat.com>
* mknumeric_limits: Add static defintions, format.
* testsuite/18_support/numeric_limits.cc (test02): Add test.
* include/c_std/bits/std_cwchar.h: Include ctime.
* testsuite/17_intro/header_cwchar.cc : Check.
* include/c_std/bits/std_cwctype.h: Inject wctype.
From-SVN: r43466
2001-06-20 03:05:31 +00:00
Benjamin Kosnik
3768cee7ca
stl_raw_storage_iter.h: Format.
...
2001-06-18 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_raw_storage_iter.h: Format. Correct derivation.
* testsuite/20_util/raw_storage_iterator.cc: Same.
* include/bits/stl_alloc.h (_S_chunk_alloc): Change malloc to
operator new.
(__mem_interface): New typedef for switching between malloc and new.
* testsuite/20_util/allocator_members.cc: New file.
* testsuite/20_util/comparisons.cc: New file.
* testsuite/20_util/pairs.cc: New file.
From-SVN: r43451
2001-06-19 01:51:33 +00:00
John David Anglin
91bfd02dae
globals.cc: Define globals _GLIBCPP_mutex_init ()...
...
* src/globals.cc: Define globals _GLIBCPP_mutex_init (),
_GLIBCPP_mutex_address_init (), _GLIBCPP_once, _GLIBCPP_mutex
and _GLIBCPP_mutex_address.
* include/bits/stl_threads.h (_STL_mutex_lock): Use above to provide
once-only runtime initialization of _M_lock mutex when
__GTHREAD_MUTEX_INIT_FUNCTION is defined.
(__STL_MUTEX_INITIALIZER): Provide initializer for _STL_mutex_lock
for __GTHREAD_MUTEX_INIT_FUNCTION case.
From-SVN: r43360
2001-06-14 06:06:48 +00:00
Gabriel Dos Reis
7c301abf46
slice_array_assignment.cc (main): New test.
...
* testsuite/26_numerics/slice_array_assignment.cc (main): New test.
* include/bits/slice_array.h (slice_array<>::operator=): Make
public and implement.
(slice_array<>::slice_array): Make copy-constructor public.
* include/bits/valarray_array.h (__valarray_copy): Add another
overload to copy between strided arrays.
From-SVN: r43352
2001-06-13 22:16:24 +00:00
Benjamin Kosnik
dd48b185dc
acinclude.m4 (GLIBCPP_CONFIGURE): Bump version to 3.0.0.
...
2001-06-13 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CONFIGURE): Bump version to 3.0.0.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/bits/c++config (__GLIBCPP__): Update date.
From-SVN: r43332
2001-06-13 17:51:38 +00:00
Benjamin Kosnik
7f3e3e0a22
fpos.h (fpos::operator-): Don't return reference, return original, non-modified version.
...
2001-06-12 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/fpos.h (fpos::operator-): Don't return reference,
return original, non-modified version.
(fpos::operator+): Same.
From-SVN: r43287
2001-06-13 01:14:42 +00:00
Loren J. Rittle
ddf1e65262
porting.texi: Add documentation about libstdc++-v3-specific macros that are currently...
...
libstdc++/2071
* porting.texi: Add documentation about libstdc++-v3-specific
macros that are currently included in os_defines.h files.
* config/basic_file_stdio.h (sys_getc): New method.
(sys_ungetc): New method.
* include/bits/basic_file.h: (sys_getc): New method signature.
(sys_ungetc): New method signature.
* include/bits/fstream.tcc (underflow): Add conditional code
paths which avoid using short seeks on streams (especially
useful when the stream might be interactive or a pipe). At
the moment, this alternate path only avoids seeking when the
``buffer size'' of underflow() is 1 since the C standard only
guarantees buffer space for one ungetc (this technique could
be extended since *-*-solaris* supports buffering for 4 calls
to ungetc and *-*-*bsd* supports buffering limited only by
memory resources). Also, _GLIBCPP_AVOID_FSEEK must be defined
in a port's os_defines.h file for this alternate path to even
be considered. As a bonus, the idiom of using getc/ungetc
requires no system calls whereas fseek maps to one or two
system call(s) on many platforms.
* config/os/bsd/freebsd/bits/os_defines.h (_GLIBCPP_AVOID_FSEEK):
Define it.
* config/os/solaris/solaris2.5/bits/os_defines.h
(_GLIBCPP_AVOID_FSEEK): Likewise.
* config/os/solaris/solaris2.6/bits/os_defines.h
(_GLIBCPP_AVOID_FSEEK): Likewise.
* config/os/solaris/solaris2.7/bits/os_defines.h
(_GLIBCPP_AVOID_FSEEK): Likewise.
From-SVN: r43278
2001-06-12 23:09:09 +00:00
Benjamin Kosnik
30f69f71d8
std_sstream.h: Add allocator_type, as per DR 251.
...
2001-06-12 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3142
* include/bits/std_sstream.h: Add allocator_type, as per DR 251.
libstdc++/3141
* include/bits/istream.tcc (getline, get): Fix as per DR 243.
libstdc++/3140
* include/bits/std_bitset.h (bitset::set): Fix as per DR 186.
libstdc++/3139
* include/bits/limits_generic.h: Fix as per DR 184.
From-SVN: r43273
2001-06-12 22:14:08 +00:00
Benjamin Kosnik
3b0fd4bcdb
basic_string.h (string::compare): Adjust signatures as per DR 5.
...
2001-06-11 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3126
* include/bits/basic_string.h (string::compare): Adjust signatures
as per DR 5.
* include/bits/basic_string.tcc: And here.
libstdc++/2346
* config/c_io_stdio.h: Remove whitespace.
* testsuite/27_io/istream_seeks.cc (test03): Add regression.
(test02): Add regression.
* testsuite/27_io/istream_seeks-3.tst: New file.
From-SVN: r43240
2001-06-12 02:30:37 +00:00
Benjamin Kosnik
d52a984783
ostream.tcc (ostream::seekp): Add error checking as per DR 129.
...
2001-06-11 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3114
* include/bits/ostream.tcc (ostream::seekp): Add error checking as
per DR 129.
* include/bits/istream.tcc (istream::seekg): Same.
* testsuite/27_io/istream_seeks.cc: Fix.
libstdc++/3113
* include/bits/stl_function.h (binder2nd): Fix as per DR 109.
(binder1st): Same.
* include/bits/std_queue.h: Add c++config.h.
* testsuite/20_util/binders.cc: New test.
From-SVN: r43201
2001-06-11 19:20:20 +00:00
Benjamin Kosnik
68fe6226c8
std_cwchar.h: Alphabetize.
...
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwchar.h: Alphabetize.
* include/bits/char_traits.h: Tweak.
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for
everything used by std_cwchar.h.
* aclocal.m4: Regenerate.
* configure.in: Regenerate.
* config.h.in: Regenerate.
From-SVN: r43167
2001-06-11 04:36:59 +00:00
Benjamin Kosnik
61c7194612
acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking.
...
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking.
Add checking for strtof, _Exit in stdlib.h
* aclocal.m4: Regenerate.
* configure.in: Regenerate.
* include/c_std/bits/std_cstdio.h: Alphabetize lists.
(snprintf): Put C99 functions into __gnu_cxx namespace.
(vfscanf): Same.
(vscanf): Same.
(vsnprintf): Same.
(vsscanf): Same.
* include/c_std/bits/std_cstdlib.h: Alphabetize lists. Put undefs
for C99 functions within _GLIBCPP_USE_C99 guard.
(_Exit): Same.
(strtof): Same.
(strtold): Same.
* include/bits/locale_facets.tcc: Check if C99 is enabled.
* include/c_std/bits/std_cwchar.h (__gnu_cxx): Put undefs within
C99 guard.
* include/c_std/bits/cmath.tcc: Formatting tweak.
* include/c_std/bits/std_cmath.h: Same.
From-SVN: r43161
2001-06-10 23:26:34 +00:00
Benjamin Kosnik
680cd9ed7b
std_cstdio.h: Include cstddef for size_t.
...
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cstdio.h: Include cstddef for size_t.
From-SVN: r43128
2001-06-10 07:42:25 +00:00
Benjamin Kosnik
d25e11935b
std_cwchar.h: Remove size_t injection, include std_cstddef.
...
2001-06-09 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwchar.h: Remove size_t injection,
include std_cstddef.
* include/c_std/bits/std_ctime.h: Same.
* include/c_std/bits/std_cstring.h: Same.
* include/c_std/bits/std_cstdlib.h: Same.
* include/c_std/bits/std_cstdio.h: Remove vsnprintf, snprintf.
* include/c_std/bits/std_cctype.h: Remove isblank.
From-SVN: r43097
2001-06-09 18:53:35 +00:00
Benjamin Kosnik
cd7894a510
std_cctype.h: Remove isblank.
...
2001-06-09 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cctype.h: Remove isblank.
From-SVN: r43078
2001-06-09 17:39:29 +00:00
Benjamin Kosnik
df7b13598a
acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for fgetwc, fgetws.
...
2001-06-09 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for fgetwc,
fgetws.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c_std/bits/std_cwchar.h: Remove duplicate fgetwc
injection, guard fgetwc, fgetws.
* include/c_std/bits/std_cstdio.h: Remove superfluous includes.
* include/c_std/bits/std_clocale.h: And here.
* include/c_std/bits/std_cctype.h: And here.
* include/c_std/bits/std_cstdlib.h (strtof): Guard strtof injection.
* config/basic_file_stdio.h: Don't include unistd.h.
* config/c_io_stdio.h: Don't use compatibility headers.
* libsupc++/eh_terminate.cc: Qualify abort.
(__terminate): And here.
* libsupc++/eh_catch.cc (__cxa_end_catch): Qualify abort.
From-SVN: r43070
2001-06-09 06:49:13 +00:00
Benjamin Kosnik
7ae4a70a1c
std_cstdlib.h: Remove _Exit, strtof injections.
...
2001-06-08 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections.
From-SVN: r43069
2001-06-09 04:24:10 +00:00
Benjamin Kosnik
de96ac4681
*: Add copyright notice.
...
2001-06-08 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2767
libstdc++/2989
libstdc++/2992
* include/std/*: Add copyright notice.
* include/c_std/bits/*: Use using statements instead of extern "C".
* include/c_std/bits/std_cmath.h: Don't overload double versions
of math functions with __buitin versions, use global version to
prevent ambiguities. Remove define hacks.
* include/c_std/bits/std_cwchar.h: Using declarations for "C"
functions that have changed signatures and std::
declarations. Remove define hacks.
* include/c_std/bits/std_cwchar.h: Same, plus remove ambiguous
__builtins in std::. Remove define hacks.
* testsuite/17_intro/headers_c.cc: Add tests.
* testsuite/17_intro/headers_c++.cc: Add test.
From-SVN: r43061
2001-06-08 23:22:26 +00:00
Loren J. Rittle
5e21803304
threads-no.h: Remove file.
...
* config/threads-no.h: Remove file.
* config/threads-posix.h: Remove file.
* acconfig.h (_GLIBCPP_USE_THREADS): Remove.
(_GLIBCPP_SUPPORTS_WEAK): Add (required by namespace-clean gthr*.h).
(_GLIBCPP_HAVE_GTHR_DEFAULT): Likewise.
* config.h.in: Regenerate.
* acinclude.m4 (GLIBCPP_ENABLE_THREADS): Completely rework to
setup and use gthr*.h files. In particular, make gthr.h files
namespace-clean in the staging area (they don't have to be for
libgcc.a).
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.am (build_headers): Remove bits/c++threads.h
and add bits/gthr.h bits/gthr-single.h bits/gthr-default.h.
* src/Makefile.in: Regenerate.
* include/bits/c++config: Cleanup threading configuration macros.
In particular, define __STL_GTHREADS macro which controls...
* include/bits/stl_threads.h: ...a brand new gthr.h-based
configuration here.
* config/c_io_stdio.h: Include staged gthr.h instead of local
thread configuration file. Always use __gthread_mutex_t
instead of __mutext_type (or int).
* include/bits/std_fstream.h: Likewise.
* docs/html/17_intro/howto.html: Remove placeholder comment in
case this configuration patch didn't make it. Add advice that
section only applies if configured with --enable-threads.
* docs/html/23_containers/howto.html: Reword to make clear
that _PTHREADS is no longer required for any port to be
correctly using STL with threads. Add advice that section
only applies if configured with --enable-threads.
Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca>
From-SVN: r42998
2001-06-08 03:53:35 +00:00
Benjamin Kosnik
5de197f210
basic_ios.tcc: Formatting tweaks.
...
2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3045
* include/bits/basic_ios.tcc: Formatting tweaks.
* include/bits/ios_base.h: Formatting tweaks.
* src/ios.cc (ios_base::Init::_S_ios_create): Use filebufs here.
(ios_base::Init::_S_ios_destroy): ..and here. Explicitly call dtors.
* src/globals.cc: Allocate filebufs for standard streams here.
(buf_cout, buf_cin, buf_cerr): Like so.
(buf_wcout, buf_wcin, buf_wcerr): And so.
* testsuite/27_io/ios_init.cc: Add.
From-SVN: r42922
2001-06-06 01:31:58 +00:00
Benjamin Kosnik
fdf1b60d2b
locale_facets.h (ctype<_CharT>): Add definitions for generic ctype virtuals.
...
2001-06-04 Brendan Kehoe <brendan@zen.org>
Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3017
* include/bits/locale_facets.h (ctype<_CharT>): Add definitions
for generic ctype virtuals.
* src/locale.cc: Minor tweaks, naming consistency.
* testsuite/22_locale/ctype.cc: Add test.
From-SVN: r42872
2001-06-04 19:25:41 +00:00
Kenny Simpson
31990cd54c
PR libstdc++/3035 and PR libstdc++/3036
...
2001-06-04 Kenny Simpson <theonetruekenny@yahoo.com>
Phil Edwards <pme@sources.redhat.com>
PR libstdc++/3035 and PR libstdc++/3036
* include/bits/stl_pair.h: Fix pair ctor and make_pair according
to LWG DR 181 and 265.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r42865
2001-06-04 18:04:52 +00:00
Phil Edwards
5c626f5260
re PR libstdc++/3034 (DR 214)
...
2001-06-04 Phil Edwards <pme@sources.redhat.com>
PR libstdc++/3034
* include/bits/stl_multiset.h (find, lower_bound, upper_bound,
equal_range): Add const overloads as per LWG DR 214.
* include/bits/stl_set.h: Likewise.
From-SVN: r42862
2001-06-04 17:50:18 +00:00
Brendan Kehoe
84b9f762bb
std_bitset.h (bitset::test): Fix __pos >= _Nb comparison; all positions must be < _Nb.
...
2001-06-04 Brendan Kehoe <brendan@zen.org>
Phil Edwards <pme@sources.redhat.com>
* include/bits/std_bitset.h (bitset::test): Fix __pos >= _Nb
comparison; all positions must be < _Nb.
* testsuite/23_containers/bitset_members.cc: New file.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r42859
2001-06-04 17:42:22 +00:00
Brendan Kehoe
5890be1892
re PR libstdc++/3016 (stl_queue.h bugs wrt compliance)
...
2001-06-04 Brendan Kehoe <brendan@zen.org>
PR libstdc++/3016
* include/bits/stl_queue.h (classes queue, priority_queue): Fix
ctors to match the standard.
From-SVN: r42857
2001-06-04 17:34:36 +00:00
Jeffrey Oldham
c0e17dafb2
char_traits.h (move): Reverse qualification of memmove with std::.
...
2001-06-04 Jeffrey Oldham <oldham@codesourcery.com>
* include/bits/char_traits.h (move): Reverse qualification of
memmove with std::.
(copy): Reverse qualification of memcpy with std::.
From-SVN: r42856
2001-06-04 16:57:04 +00:00
Jeffrey Oldham
1007e271a3
char_traits.h (move): Qualify memmove with std::.
...
2001-06-04 Jeffrey Oldham <oldham@codesourcery.com>
* include/bits/char_traits.h (move): Qualify memmove with std::.
(copy): Qualify memcpy with std::.
* testsuite/27_io/filebuf_virtuals.cc (test01): Qualify strlen and
strncmp with std::.
(test02): Likewise.
* testsuite/27_io/stringbuf_virtuals.cc (test01): Likewise.
From-SVN: r42854
2001-06-04 15:46:03 +00:00
Scott Snyder
59bd14d84a
istream.tcc: Include std_ostream.h.
...
2001-05-27 scott snyder <snyder@fnal.gov>
libstdc++/2976
* include/bits/istream.tcc: Include std_ostream.h.
From-SVN: r42754
2001-05-31 20:33:06 +00:00
Benjamin Kosnik
bfa1e6b11b
acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove.
...
2001-05-30 Benjamin Kosnik <bkoz@redat.com>
* acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove.
(_GLIBCPP_BUGGY_COMPLEX): Remove.
* config.h.in: Regenerate.
* acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT): Remove.
* aclocal.m4: Regenerate.
* configure.in: Don't call it.
* configure: Regenerate.
libstdc++/2970
* src/complex_io.cc (operator<<(ostream&, const complex&): Fix.
* testsuite/26_numerics/complex_inserters_extractors.cc (test01):
New test.
libstdc++/2985
* include/bits/std_complex.h: Include sstream. Put definitions for
complex inserters and extractors here, and remove them from...
* src/complex_io.cc: ...here.
* include/bits/basic_ios.h (basic_ios::__numput_type): Add _Traits
parameter.
(basic_ios::__numget_type): Same.
* include/bits/std_istream.h: Same.
* include/bits/std_ostream.h: Same.
* include/bits/sbuf_iter.h (ostreambuf_iterator): Fix typo in base
class iterator template arguments.
* src/locale-inst.cc: Add explicit has_facet instantiations.
* include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove.
(_M_get_fnumput): Remove.
(_M_get_fnumget): Remove.
(basic_ios::_M_check_facet): New function.
(basic_ios::_M_cache_facets): New function.
* include/bits/basic_ios.tcc: Definition for _M_cache_facets.
(basic_ios::imbue): Call _M_cache_facets.
(basic_ios::init): Same.
* include/bits/istream.tcc: Format, use _M_check_facet.
* include/bits/ostream.tcc: Same.
* include/bits/locale_facets.tcc (__output_float): Change
signature, add _Traits.
* testsuite/26_numerics/complex_inserters_extractors.cc (test02):
New test.
From-SVN: r42743
2001-05-31 12:14:56 +00:00
Loren J. Rittle
85836c0b63
c++config (__USE_MALLOC): Do not define it.
...
* include/bits/c++config (__USE_MALLOC): Do not define it.
Document why not and give pointers to more information.
* docs/html/23_containers/howto.html: Update documentation
to reflect recent understanding of problem.
* docs/html/17_intro/howto.html: Likewise.
From-SVN: r42732
2001-05-31 02:45:04 +00:00
Gabriel Dos Reis
3702c6346a
[multiple changes]
...
2001-05-29 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/c_std/bits/std_cstdlib.h:: Move C99 thingies to __gnu_cxx::.
* include/c_std/bits/std_cwchar.h (__gnu_cxx): Likewise.
2001-05-27 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/c_std/bits/std_cmath.h: Move C99 functions in __gnu_cxx::.
* include/c_std/bits/std_cstdlib.h: Same.
* include/c_std/bits/std_cwchar.h: Same.
From-SVN: r42707
2001-05-30 11:34:26 +00:00
Gabriel Dos Reis
4200d6fe87
* include/c_std/bits/std_cmath.h (sqrt): #undef.
...
From-SVN: r42622
2001-05-26 07:03:23 +00:00
Gabriel Dos Reis
4e588ec90e
std_cmath.h: Tweak.
...
* include/c_std/bits/std_cmath.h: Tweak. #define away abs, cos,
fabs, sin, sqrt. They are now implemented in terms of __builtin_
variants.
From-SVN: r42595
2001-05-25 21:43:42 +00:00
Benjamin Kosnik
a16ad77946
inserters_extractors.cc (test09): New test.
...
2001-05-24 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2830
* testsuite/21_strings/inserters_extractors.cc (test09): New test.
* include/bits/ostream.tcc: Format to match istream.tcc.
(operator<<(basic_ostream __out, const basic_string __s)): Fix.
From-SVN: r42557
2001-05-25 04:24:12 +00:00
Mark Mitchell
eeff8d2c06
std_cstring.h: #define away all global functions we will redeclare in namespace `std'.
...
* include/c_std/bin/std_cstring.h: #define away all global
functions we will redeclare in namespace `std'.
* libsupc++/eh_alloc.cc (__cxa_allocate_exception): Use
std::memset, instead of memset.
* testsuite/19_diagnostics/stdexceptions.cc: Use `std::strcmp',
not plain `strcmp'.
* testsuite/21_strings/c_strings.cc: Use `std::strcpy' instead of
plain `strcpy'.
From-SVN: r42555
2001-05-25 01:33:21 +00:00
Benjamin Kosnik
d422980b3f
basic_ios.tcc: Small tweak.
...
2001-05-24 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2832
* include/bits/basic_ios.tcc: Small tweak.
* include/bits/std_fstream.h (ifstream): Add buffer member. Adjust
ctors and dtors, and rdbuf settings.
(ofstream): Same.
(fstream): Same.
* include/bits/std_sstream.h: Same, but for stringstream classes.
* testsuite/27_io/ostringstream_members.cc: New.
* testsuite/27_io/stringstream_members.cc: New.
* testsuite/27_io/fstream_members.cc: New.
* testsuite/27_io/ifstream_members.cc: Add test.
* testsuite/27_io/istringstream_members.cc: Add test.
* testsuite/27_io/ofstream_members.cc: Add test.
From-SVN: r42547
2001-05-24 23:09:53 +00:00
Gabriel Dos Reis
3e0105a41d
c++config (__NO_MATH_INLINES): Move to...
...
* include/bits/c++config(__NO_MATH_INLINES): Move to...
* config/os/gnu-linux/bits/os_defines.h: ...here.
From-SVN: r42538
2001-05-24 20:51:33 +00:00
Gabriel Dos Reis
cf3e18dd1e
c++config (__NO_MATH_INLINES): New macro.
...
* include/bits/c++config (__NO_MATH_INLINES): New macro.
* testsuite/26_numerics/fabs_inline.cc (main): New test.
From-SVN: r42533
2001-05-24 18:38:20 +00:00
Benjamin Kosnik
990101f973
mkcheck.in (static_fail): Remove S_FLAG decoration on output.
...
2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
* mkcheck.in (static_fail): Remove S_FLAG decoration on output.
* include/bits/std_sstream.h (stringbuf::setbuf): Require both
arguments to be non-null.
* include/bits/fstream.tcc (filebuf::_M_allocate_buffers): Only
try allocations if allocated size is greater than zero.
(filebuf::_M_filebuf_init): Change to
(filebuf::_M_allocate_file): Which is what it does now.
(filebuf::_M_allocate_bufers): Change to
(filebuf::_M_allocate_internal_buffer): This, and create
(filebuf::_M_allocate_pback_buffer): New.
(filebuf::_M_destroy_internal_buffer): New.
(filebuf::_M_buf_allocated): New data member.
(filebuf::setbuf): Use new logic, allow use of external buffer.
* testsuite/27_io/stringbuf_virtuals.cc: New file.
* testsuite/27_io/filebuf_virtuals.cc: New file.
From-SVN: r42458
2001-05-22 18:48:19 +00:00
Benjamin Kosnik
9ea659ac82
std_cstring.h (memchr): Define "C" functions to __glibcpp_memchr.
...
2001-05-21 Stephen M. Webb <stephen@bregmasoft.com>
* include/c_std/bits/std_cstring.h (memchr): Define "C" functions to
__glibcpp_memchr.
(strchr): Same, but to __glibcpp_strchr.
(strpbrk): Same.
(strrchr): Same.
(strstr): Same.
* include/c_std/bits/std_cwchar.h (wcschr): Same.
(wcsbrk): Same.
(wcsrchr): Same.
(wcsstr): Same.
(wmemchr): Same.
From-SVN: r42421
2001-05-22 04:58:45 +00:00
Benjamin Kosnik
52a5725062
acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir amd glibcpp_prefixdir with absolute paths.
...
2001-05-18 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
amd glibcpp_prefixdir with absolute paths.
* include/bits/c++config (__GLIBCPP__): Bump.
* acinclude.m4 (GLIBCPP_CONFIGURE): Correct version number.
From-SVN: r42253
2001-05-18 07:24:24 +00:00
Gabriel Dos Reis
5c542b4a19
std_valarray.h (valarray<>::operator[] const): Return a const reference.
...
* include/bits/std_valarray.h (valarray<>::operator[] const):
Return a const reference.
* testsuite/26_numerics/valarray_const_bracket.cc: New test.
From-SVN: r42245
2001-05-18 05:47:46 +00:00
Benjamin Kosnik
eea790f7b3
std_cstring.h (memchr): Correct definitions.
...
2001-05-08 Benjamin Kosnik <bkoz@fillmore.constant.com>
* include/c_std/bits/std_cstring.h (memchr): Correct definitions.
(strchr): Same.
(strpbrk): Same.
(strrchr): Same.
(strstr): Same.
* include/c_std/bits/std_cwchar.h (wcschr): Same.
(wcsbrk): Same.
(wcsrchr): Same.
(wcsstr): Same.
(wmemchr): Same.
* testsuite/21_strings/c_strings.cc: Add tests.
From-SVN: r41919
2001-05-08 23:53:55 +00:00
Benjamin Kosnik
39003c9902
std_fstream.h (basic_filebuf): Change signature.
...
2001-05-07 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2523
* include/bits/std_fstream.h (basic_filebuf): Change signature.
* include/bits/fstream.tcc (basic_filebuf): Change bool argument
to int_type, pass in buffer size info.
* include/bits/std_streambuf.h (_M_is_indeterminate): Check for
unbuffered situation.
(underflow): Remove codecvt bits for the time being.
* include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
* include/bits/locale_facets.tcc (_M_extract): Cache dereference
values from iterators, clean.
* src/locale.cc: Ditto.
* include/bits/sbuf_iter.h: Format.
* src/ios.cc: Explicitly pass in buffer sizes at creation time.
* testsuite/27_io/narrow_stream_objects.cc: Add tests.
* testsuite/27_io/filebuf.cc: Tweaks.
* testsuite/27_io/filebuf_members.cc: Tweaks.
From-SVN: r41908
2001-05-08 03:07:56 +00:00
Benjamin Kosnik
a85afd69a3
sbuf_iter.h (istreambuf_iterator): Correct.
...
2001-05-01 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/sbuf_iter.h (istreambuf_iterator): Correct.
* testsuite/24_iterators/istreambuf_iterator.cc (test02): Add test.
* include/bits/std_sstream.h (stringbuf): Leak
copied string.
* testsuite/24_iterators/ostreambuf_iterator.cc: Correct.
From-SVN: r41755
2001-05-02 05:50:20 +00:00
Benjamin Kosnik
b85381b911
ostreambuf_iterator.cc: New file.
...
2001-04-30 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2627
* testsuite/24_iterators/ostreambuf_iterator.cc: New file.
* include/bits/sbuf_iter.h (ostreambuf_iterator): Remove bogus
specializations.
From-SVN: r41694
2001-04-30 20:53:31 +00:00
Benjamin Kosnik
2458d950f4
stl_iterator_base_funcs.h (__advance): Fix.
...
2001-04-30 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2964
* include/bits/stl_iterator_base_funcs.h (__advance): Fix.
From-SVN: r41691
2001-04-30 18:07:51 +00:00
Benjamin Kosnik
9d377fd443
stl_iterator_base_funcs.h (__advance): Fix.
...
2001-04-30 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2964
* include/bits/stl_iterator_base_funcs.h (__advance): Fix.
From-SVN: r41690
2001-04-30 17:48:41 +00:00
Benjamin Kosnik
5db6f3de56
std_cmath.h (std): Explicitly inject c99 names.
...
2001-04-25 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cmath.h (std): Explicitly inject c99 names.
* include/c_std/bits/std_cstdlib.h (std): Same, except for llabs.
* include/c_std/bits/std_cwchar.h (std): Same.
* acconfig.h (std): Remove c99 injection into std.
* config.h.in: Regenerate.
* testsuite/README: Fix typo.
* include/bits/codecvt.h: Remove warnings.
From-SVN: r41568
2001-04-26 02:23:52 +00:00
Peter Schmid
673af03ae5
slist: Include required header files.
...
2001-04-24 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/ext/slist: Include required header files.
From-SVN: r41512
2001-04-23 23:17:20 +00:00
Loren J. Rittle
910e8539cb
std_cerrno.h (errno): Define macro from identifier declared with external linkage, if needed.
...
* include/c_std/bits/std_cerrno.h (errno): Define macro from
identifier declared with external linkage, if needed.
* include/c_std/bits/std_csetjmp.h (setjmp): Likewise.
* include/c_std/bits/std_cstdarg.h (va_end): Likewise.
From-SVN: r41507
2001-04-23 19:54:34 +00:00
Benjamin Kosnik
6c3a9f72bf
acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is enabled correctly before long long is activated.
...
2001-04-20 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99
support is enabled correctly before long long is activated.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/backward/backward_warning.h: Format correctly.
* testsuite/26_numerics/c99_classification_macros_c.cc: Add.
* testsuite/26_numerics/c99_classification_macros_c++.cc: Add.
* testsuite/26_numerics/c99_macros.cc: Remove.
From-SVN: r41470
2001-04-20 22:26:55 +00:00
Phil Edwards
e906926f5f
stl_bvector.h: Replace __ITERATOR_CATEGORY with __iterator_category.
...
2001-04-20 Phil Edwards <pme@sources.redhat.com>
* include/bits/stl_bvector.h: Replace __ITERATOR_CATEGORY with
__iterator_category.
From-SVN: r41468
2001-04-20 20:16:37 +00:00
Benjamin Kosnik
7cda84dc70
acconfig.h (_GLIBCPP_USE_C99): Add.
...
2001-04-19 Benjamin Kosnik <bkoz@redhat.com>
* acconfig.h (_GLIBCPP_USE_C99): Add.
* config.h.in: Regenerate.
* acinclude.m4 (GLIBCPP_ENABLE_C99): New macro. Test for ISO/IEC
9899: 1999 support.
* aclocal.m4: Regenerate.
* configure.in (GLIBCPP_ENABLE_C99): Use it, on by default.
* configure: Regenerate.
* configure.in (GLIBCPP_ENABLE_LONG_LONG): Set default to yes.
* configure: Regenerate.
* include/c_std/bits/std_cwchar.h: Put wcstold, wcstoll, wcstoull
into c99.
* include/c_std/bits/std_cmath.h: Bring C99 functions into c99
namespace.
* include/c_std/bits/std_cstdlib.h: Same.
* docs/html/configopts.html: Update.
* testsuite/26_numerics/c99_macros.cc: Edit, use cmath instead of
math.h
(test_c99_classify): Add.
* config/os/gnu-linux/bits/os_defines.h (_GNU_SOURCE): Remove.
(_ISOC99_SOURCE): Remove.
* include/bits/stl_algo.h: Use _GLIBCPP_HAVE_DRAND48.
* include/bits/c++config (__STL_ASSERTIONS): Simplify.
* acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Add check for drand48.
* aclocal.m4: Regenerate.
* configure: Regenerate.
From-SVN: r41451
2001-04-20 08:59:25 +00:00
Benjamin Kosnik
47e982b247
map_operators.cc: Add dg-excess-errors.
...
2001-04-17 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/23_containers/map_operators.cc: Add dg-excess-errors.
* testsuite/23_containers/set_operators.cc: Same.
* include/bits/c++config: Add _GLIBCPP_CONCEPT_CHECKS. Disable by
default.
(__GLIBCPP__): Bump from value of last release.
* include/bits/concept_check.h: Default to off, edit comments.
* src/stl-inst.cc: Use _GLIBCPP_CONCEPT_CHECKS.
* src/Makefile.am (AM_CXXFLAGS): Remove _GLIBCPP_NO_CONCEPT_CHECKS.
* src/Makefile.in: Regenerate.
From-SVN: r41397
2001-04-18 01:06:05 +00:00
Phil Edwards
996f4bb1cd
stl_algo.h (std::transform): Disable the check on _OutputIter for now.
...
2001-04-17 Phil Edwards <pme@sources.redhat.com>
* include/bits/stl_algo.h (std::transform): Disable the check
on _OutputIter for now.
From-SVN: r41393
2001-04-17 23:11:28 +00:00
Martin Reinecke
f2d43953d7
boost_concept_check.h (_Mutable_ContainerConcept): Properly uglify member.
...
2001-04-14 Martin Reinecke <martin@MPA-Garching.MPG.DE>
* include/bits/boost_concept_check.h(_Mutable_ContainerConcept):
Properly uglify member.
From-SVN: r41354
2001-04-14 09:46:13 +00:00
Phil Edwards
948421e0c9
stl_algobase.h (equal): Use EqualOpConcept instead of EqualityComparableConcept.
...
2001-04-13 Phil Edwards <pme@sources.redhat.com>
* include/bits/stl_algobase.h (equal): Use EqualOpConcept instead
of EqualityComparableConcept.
From-SVN: r41334
2001-04-13 09:28:56 +00:00
Phil Edwards
62bb0c97fd
boost_concept_check.h: Uglify, fork from Boost.
...
2001-04-13 Phil Edwards <pme@sources.redhat.com>
* include/bits/boost_concept_check.h: Uglify, fork from Boost.
* include/bits/concept_check.h: Uglify.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_heap.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_numeric.h: Likewise.
* include/bits/stl_queue.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_stack.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/ext/hash_map: Likewise.
* include/ext/hash_set: Likewise.
* include/ext/slist: Likewise.
From-SVN: r41333
2001-04-13 09:03:18 +00:00
Gabriel Dos Reis
0f7190689e
std_valarray.h (valarray<>::operator[]): Make inline.
...
* include/bits/std_valarray.h(valarray<>::operator[]): Make
inline.
From-SVN: r41190
2001-04-08 16:20:49 +00:00
Benjamin Kosnik
14bc1c0e15
stl_algobase.h (std::equal): avoid use of possibly-undefined operator != (one line patch).
...
2001-04-06 Joe Buck <jbuck@welsh-buck.org>
* stl_algobase.h (std::equal): avoid use of possibly-undefined
operator != (one line patch).
From-SVN: r41170
2001-04-06 22:21:29 +00:00
Benjamin Kosnik
4efbaaa75f
backward_warning.h: Re-enable.
...
2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
* include/backward/backward_warning.h: Re-enable.
From-SVN: r41168
2001-04-06 22:11:31 +00:00
Gabriel Dos Reis
e521873c0e
std_cmath.h: Get rid of C99 math macros.
...
* include/c_std/bits/std_cmath.h: Get rid of C99 math macros.
* testsuite/26_numerics/c99_macros.cc: Add test.
From-SVN: r41159
2001-04-06 19:14:27 +00:00
Benjamin Kosnik
8f946b6e2f
backward_warning.h: Temporarily disable until g++ testsuite changes go in.
...
2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
* include/backward/backward_warning.h: Temporarily disable until
g++ testsuite changes go in.
* tests_flags.in (CROSS_LIB_PATH): Add.
From-SVN: r41149
2001-04-06 08:00:55 +00:00
Benjamin Kosnik
baac9fce7d
Warn when using backward headers.
...
2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
Warn when using backward headers.
* include/backward/algo.h: Include warning file.
* include/backward/vector.h: Same.
* include/backward/tree.h: Same.
* include/backward/tempbuf.h: Same.
* include/backward/strstream: Same.
* include/backward/streambuf.h: Same.
* include/backward/stream.h: Same.
* include/backward/stack.h: Same.
* include/backward/slist.h: Same.
* include/backward/set.h: Same.
* include/backward/rope.h:
* include/backward/queue.h: Same.
* include/backward/pair.h: Same.
* include/backward/ostream.h: Same.
* include/backward/new.h: Same.
* include/backward/multiset.h: Same.
* include/backward/multimap.h: Same.
* include/backward/map.h: Same.
* include/backward/list.h: Same.
* include/backward/iterator.h: Same.
* include/backward/istream.h: Same.
* include/backward/iostream.h:
* include/backward/iomanip.h:
* include/backward/heap.h: Same.
* include/backward/hashtable.h:
* include/backward/hash_set.h:
* include/backward/hash_map.h:
* include/backward/function.h:
* include/backward/fstream.h:
* include/backward/deque.h:
* include/backward/defalloc.h: Same.
* include/backward/complex.h: Same.
* include/backward/bvector.h:
* include/backward/alloc.h:
* include/backward/algobase.h: Same.
* include/backward/backward_warning.h: New file.
* src/Makefile.am (backward_headers): Add backward_warning.h
* src/Makefile.in: Regenerate.
2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (myinstalldirs): Make sure backward directory is
created.
(myinstallheaders): Install backward headers in backward directory.
* src/Makefile.in: Regenerate.
From-SVN: r41139
2001-04-06 06:08:17 +00:00
Benjamin Kosnik
8d66b99ac2
Prepare for libstdc++-2.92.
...
2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
Prepare for libstdc++-2.92.
* docs/html/17_intro/RELEASE-NOTES (New): Update.
* docs/html/configopts.html: Fix formatting.
* README (file): Updates.
* include/bits/c++config (__GLIBCPP__): Update.
From-SVN: r41136
2001-04-06 01:47:11 +00:00
Geoffrey Keating
75da53c9ee
* include/backward/fstream.h: Add missing semicolons.
...
From-SVN: r41090
2001-04-04 18:04:52 +00:00
Benjamin Kosnik
127644626f
fstream.tcc: Add bool parameter to filebuf ctor.
...
2001-04-03 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/fstream.tcc: Add bool parameter to filebuf ctor.
* include/bits/ios_base.h(ios_base::Init): Remove _M_cout, _M_cin,
_M_cerr, _M_wcout, _M_wcin, _M_wcerr.
(ios_base::Init::_S_ios_create): New.
(ios_base::Init::_S_ios_destroy): New.
* include/bits/std_fstream.h: Change ctor args.
* src/ios.cc (ios_base::Init::Init): Use _S_ios_create.
(ios_base::Init::~Init): Use _S_ios_destroy.
(ios_base::sync_with_stdio): Use new members.
* testsuite/27_io/filebuf_members.cc: Fix calling conventions for
filebuf ctor.
From-SVN: r41072
2001-04-04 01:02:26 +00:00
Peter Schmid
cf54a76769
fstream.h: Expose streampos to global namespace.
...
2001-04-03 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/backward/fstream.h: Expose streampos to global
namespace.
From-SVN: r41064
2001-04-03 21:02:43 +00:00
Peter Schmid
aa53cb52eb
stl_iterator_base_types.h: Fix typo
...
2001-04-03 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/stl_iterator_base_types.h: Fix typo
From-SVN: r41063
2001-04-03 20:40:26 +00:00
Andreas Schwab
896b336b8c
* include/backward/fstream.h: Define filebuf and wfilebuf.
...
From-SVN: r41048
2001-04-03 08:49:38 +00:00
Phil Edwards
30a20a1ee0
New concept checking implementation.
...
2001-04-02 Phil Edwards <pme@sources.redhat.com>
New concept checking implementation.
* docs/html/19_diagnostics/howto.html: Document.
* docs/html/17_intro/concept_check.diff: New file, for reference.
* include/bits/boost_concept_check.h: New file from Boost.
* include/bits/c++config: Update comments.
* include/bits/concept_check.h: New file.
* include/bits/concept_checks.h: Removed.
* include/bits/container_concepts.h: Removed.
* include/bits/sequence_concepts.h: Removed.
* include/bits/stl_iterator_base.h: Removed; split into...
* include/bits/stl_iterator_base_funcs.h: ...this new file...
* include/bits/stl_iterator_base_types.h: ...and this new file.
* include/bits/sbuf_iter.h: Update to use new implementation.
* include/bits/std_iterator.h: Likewise.
* include/bits/std_memory.h: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_heap.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_numeric.h: Likewise.
* include/bits/stl_queue.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_stack.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/ext/hash_map: Likewise.
* include/ext/hash_set: Likewise.
* include/ext/slist: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* src/Makefile.am (base_headers): Update list of headers.
* Makefile.in: Regenerated.
* src/Makefile.in: Regenerated.
* libio/Makefile.in: Regenerated.
* libmath/Makefile.in: Regenerated.
* libsupc++/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* docs/html/install.html: Update contact information.
* docs/html/17_intro/howto.html: Ditto.
* docs/html/18_support/howto.html: Ditto.
* docs/html/20_util/howto.html: Ditto.
* docs/html/21_strings/howto.html: Ditto.
* docs/html/22_locale/howto.html: Ditto.
* docs/html/23_containers/howto.html: Ditto.
* docs/html/24_iterators/howto.html: Ditto.
* docs/html/25_algorithms/howto.html: Ditto.
* docs/html/26_numerics/howto.html: Ditto.
* docs/html/27_io/howto.html: Ditto.
* docs/html/faq/index.html: Ditto, plus info on new checking code.
* docs/html/ext/howto.html: Ditto, plus info on new checking code.
* docs/html/faq/index.txt: Regenerated.
From-SVN: r41031
2001-04-03 00:26:58 +00:00
Stephen M. Webb
92c3688a97
std_cstring.h: Fix for const-correctness.
...
2001-04-02 Stephen M. Webb <stephen@bregmasoft.com>
* include/c_std/bits/std_cstring.h: Fix for const-correctness.
* include/c_std/bits/std_cwchar.h: Same.
* testsuite/21_strings/c_strings.cc: Add.
From-SVN: r41019
2001-04-02 22:51:25 +00:00
Benjamin Kosnik
9b7e0d0005
[multiple changes]
...
2001-03-31 Benjamin Kosnik <bkoz@redhat.com>
* configure.target: Remove duplicate aix entry.
2001-03-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stl_bvector.h: Move to...
* include/bits/stl_vector.h: ...here.
* include/ext/bvector: Move to...
* include/backward/bvector.h: ...here.
* include/bits/std_vector.h: Change stl_bvector include.
* include/bits/std_queue.h: Remove bvector include.
* include/ext/tree: Insert using rb_tree, move to...
* include/backward/tree.h: ...here.
* include/backward/hash_map.h: Include ext/hash_map.
* include/backward/hash_set.h: Include ext/hash_set.
* include/backward/queue.h: New file.
* include/backward/stack.h: Edit.
* include/backward/algo.h: Same.
* include/backward/algobase.h: Same.
* include/backward/alloc.h: Same.
* include/backward/function.h: Same.
* include/backward/iomanip.h: Same.
* include/backward/istream.h: Same.
* include/backward/iterator.h: Same.
* include/backward/list.h: Same.
* include/backward/map.h: Same.
* include/backward/multimap.h: Same.
* include/backward/multiset.h: Same.
* include/backward/ostream.h: Same.
* include/backward/pair.h: Same
* include/backward/rope.h: Same.
* include/backward/set.h: Same.
* include/backward/stream.h: Same.
* include/backward/strstream.h: Same.
* include/backward/tempbuf.h: Same.
* src/Makefile.am (ext_headers): Edit.
* src/Makefile.in: Regenerate.
* testsuite/ext/headers.cc (main): Fix.
* mkcheck.in: Fix.
From-SVN: r40979
2001-03-31 20:15:43 +00:00
Benjamin Kosnik
ec0104b3bc
c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.
...
2001-03-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.
From-SVN: r40877
2001-03-27 19:40:46 +00:00
Benjamin Kosnik
5fa9abc3e9
basic_file.h (get_fileno): Remove.
...
2001-03-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_file.h (get_fileno): Remove.
(_M_fileno): Remove.
(_M_cfile_created): Add.
(basic_file::basic_file(__c_file_type*, openmode): Add.
(basic_file::basic_file(int, const char*, openmode): Remove.
* include/bits/fstream.tcc (basic_fstream::basic_filebuf(int __fd,
const char*, ios_base::openmode): Don't allocate
internal buffers. Turn off internal buffers.
(basic_filebuf::overflow): Remove test for null buffer.
(basic_filebuf::_M_really_overflow): Same. Allow unbuffered use.
* include/bits/streambuf.cc: Tweak.
* include/bits/std_ostream.h: Tweak.
* config/basic_file_libio.h: Same.
* config/basic_file_stdio.h: Same.
* src/ios.cc (ios_base::Init::Init()): Unbuffer stdout by default.
* testsuite/27_io/filebuf_members.cc: Tweaks.
* testsuite/27_io/ios_base_members_static.cc: Tweaks.
From-SVN: r40863
2001-03-27 03:48:17 +00:00
Phil Edwards
2c085782da
std_bitset.h: Include ostream and istream headers instead of iostream.
...
2001-03-24 Phil Edwards <pme@sources.redhat.com>
* include/bits/std_bitset.h: Include ostream and istream headers
instead of iostream.
From-SVN: r40820
2001-03-24 23:46:38 +00:00
Greg Bumgardner
0d6eae43fc
ostream.tcc: Use __builtin_alloca.
...
2001-03-22 Greg Bumgardner <bumgard@roguewave.com>
* include/bits/ostream.tcc: Use __builtin_alloca.
From-SVN: r40793
2001-03-23 20:29:14 +00:00
Benjamin Kosnik
6ca9928acc
misc-inst.cc (__sink_unused_warning): Move to...
...
2001-03-22 Benjamin Kosnik <bkoz@redhat.com>
* src/misc-inst.cc (__sink_unused_warning): Move to...
* src/locale-inst.cc (__sink_unused_warning): Move to...
* src/stl-inst.cc: Here.
* include/bits/c++config (_STL_NO_CONCEPT_CHECKS): Add define,
commented it out.
From-SVN: r40792
2001-03-23 20:02:03 +00:00
Theodore Papadopoulo
edb7d731b6
basic_file.h: Fix typos in comments.
...
2001-03-21 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* intclude/bits/basic_file.h: Fix typos in comments.
From-SVN: r40705
2001-03-21 19:26:49 +00:00
Gabriel Dos Reis
15f13f01ed
* include/bits/basic_string.tcc (operator+): Fix thinko.
...
From-SVN: r40493
2001-03-15 08:46:23 +00:00
Benjamin Kosnik
69302d8b5e
std_streambuf.h: Remove cached locale facets.
...
2001-03-14 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2020
* include/bits/std_streambuf.h: Remove cached locale facets.
(basic_streambuf::_M_buf_fctype): Remove.
(basic_streambuf::~basic_streambuf): Remove here.
(basic_streambuf::basic_streambuf): Same.
(basic_streambuf::imbue): Same.
* include/bits/fstream.tcc (filebuf::imbue): Remove _M_buf_fctype.
* include/bits/std_fstream.h (basic_filebuf::_M_fcvt): Remove.
(basic_filebuf::~basic_filebuf()): Remove here.
* include/bits/fstream.tcc (basic_filebuf::basic_filebuf): Same.
(basic_filebuf::imbue): Same.
* include/bits/localefwd.h (_Count_ones): Remove.
(locale::_S_num_categories): Just use 6, since this doesn't
actually change, ever.
* include/bits/locale_facets.tcc (has_facet): Simplify.
(use_facet): Same.
* testsuite/27_io/filebuf.cc (test06): Add tests.
From-SVN: r40472
2001-03-14 20:46:34 +00:00
Benjamin Kosnik
db1d582c81
Fixups for -fno-for-scope
...
2001-03-12 Benjamin Kosnik <bkoz@redhat.com>
Fixups for -fno-for-scope
* include/bits/locale_facets.tcc (__match_parallel): Fixup.
* src/valarray-inst.cc (__gslice_to_index): Same.
From-SVN: r40429
2001-03-12 21:42:57 +00:00
Benjamin Kosnik
1877bd890d
vector.h: Include std_vector.h.
...
2001-03-12 Benjamin Kosnik <bkoz@redhat.com>
* include/backward/vector.h: Include std_vector.h.
From-SVN: r40425
2001-03-12 19:58:04 +00:00
Craig Rodrigues
86c18af9bb
hashtable.h: Same.
...
2001-03-12 Craig Rodrigues <rodrigc@mediaone.net>
* include/backward/hashtable.h: Same.
* include/backward/rope.h: Fix include.
From-SVN: r40418
2001-03-12 18:49:33 +00:00
Benjamin Kosnik
bc4f48d775
istream.tcc (basic_istream<_CharT, [...]): Fix typo.
...
2001-03-12 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/istream.tcc (basic_istream<_CharT, _Traits>&
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
Fix typo.
From-SVN: r40417
2001-03-12 18:30:29 +00:00
Peter Schmid
8f9995782e
stl_hashtable.h: Change type of __n to size_t
...
2001-03-11 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/ext/stl_hashtable.h: Change type of __n to size_t
* include/backward/bvector.h: Include <ext/stl_bvector.h>
From-SVN: r40416
2001-03-12 18:18:34 +00:00
Benjamin Kosnik
0e061da691
[multiple changes]
...
2001-03-09 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
Use streamsize, not int_type.
2001-03-08 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/streambuf.cc (test06): New test, disabled at the
moment.
From-SVN: r40358
2001-03-10 01:36:23 +00:00
Benjamin Kosnik
d32c94be18
std_iosfwd.h: Remove string forward decls here.
...
2001-03-07 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/std_iosfwd.h: Remove string forward decls here.
* include/bits/stringfwd.h: Add forward decls for char_traits
specializations.
* config/c_io_libio.h (wstreamoff): Delete.
* config/c_io_stdio.h (wstreamoff): Same.
* include/bits/char_traits.h: Use streamoff not wstreamoff for
char_traits<wchar_t>::off_type.
Remove duplicate typedefs.
* include/bits/fpos.h: Define streampos/wstreampos here.
* testsuite/27_io/istream_seeks.cc (test04): Explicitly cast int
values to off_type.
(test05): Same.
Changeup output files.
* testsuite/27_io/istream_unformatted.cc: Change output files.
* testsuite/27_io/istream_seeks-1.txt: Add.
* testsuite/27_io/istream_seeks-2.tst: Add.
* testsuite/27_io/istream_seeks-1.tst: Add.
* testsuite/27_io/istream_unformatted-2.tst: Delete.
* testsuite/27_io/istream_unformatted-3.tst: Delete.
* testsuite/27_io/istream_unformatted-3.txt: Delete.
From-SVN: r40303
2001-03-07 22:22:41 +00:00
Benjamin Kosnik
2077a6c51e
istream.tcc (basic_istream<_CharT, [...]): Don't use sentry.
...
2001-03-06 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2181
* include/bits/istream.tcc (basic_istream<_CharT, _Traits>::
operator>>(__istream_type& (*__pf)(__istream_type&)): Don't use
sentry.
(basic_istream<_CharT, _Traits>:: operator>>(__ios_type&
(*__pf)(__ios_type&)): Same.
(basic_istream<_CharT, _Traits>:: operator>>(ios_base&
(*__pf)(ios_base&))): Same.
* testsuite/27_io/istream_extractor_other.cc: Add tests.
* testsuite/27_io/istream_manip.cc (test01): Fix.
From-SVN: r40281
2001-03-07 02:08:59 +00:00
Nathan Myers
d3688a0232
std_cerrno.h: Don't define errno in std::.
...
2001-03-06 Nathan Myers <ncm@cantrip.org>
Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cerrno.h: Don't define errno in std::.
* testsuite/17_intro/header_cerrno.cc (test01): New file.
* testsuite/17_intro/header_cassert.cc (test01): New file.
* testsuite/17_intro/header_cstddef.cc (test01): New file.
* testsuite/17_intro/header_csetjmp.cc (test01): New file.
* testsuite/17_intro/header_cstdarg.cc (test01): New file.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r40270
2001-03-06 23:32:59 +00:00
Scott Snyder
21aaf8bffc
std_cmath.h: Move abs(long), div(long,long) from here...
...
2001-03-05 scott snyder <snyder@fnal.gov>
libstdc++/2190
* include/c_std/bits/std_cmath.h: Move abs(long), div(long,long)
from here...
* include/c_std/bits/std_cstdlib.h: ... to here.
* testsuite/17_intro/header_cstdlib.cc: Add test.
From-SVN: r40254
2001-03-06 02:51:15 +00:00
Phil Edwards
d53d7f6e61
algo.h: Use std not __STD.
...
2001-03-04 Phil Edwards <pme@sources.redhat.com>
http://gcc.gnu.org/ml/libstdc++/2001-03/msg00015.html
* include/backward/algo.h: Use std not __STD. Remove unneeded
macros and "never happens" code. Adjust to C++STYLE guidelines.
* include/backward/algobase.h: Likewise.
* include/backward/alloc.h: Likewise.
* include/backward/bvector.h: Likewise.
* include/backward/deque.h: Likewise.
* include/backward/function.h: Likewise.
* include/backward/hash_map.h: Likewise.
* include/backward/hash_set.h: Likewise.
* include/backward/hashtable.h: Likewise.
* include/backward/heap.h: Likewise.
* include/backward/iterator.h: Likewise.
* include/backward/list.h: Likewise.
* include/backward/map.h: Likewise.
* include/backward/multimap.h: Likewise.
* include/backward/multiset.h: Likewise.
* include/backward/pair.h: Likewise.
* include/backward/rope.h: Likewise.
* include/backward/set.h: Likewise.
* include/backward/slist.h: Likewise.
* include/backward/stack.h: Likewise.
* include/backward/strstream: Likewise.
* include/backward/tempbuf.h: Likewise.
* include/backward/tree.h: Likewise.
* include/backward/vector.h: Likewise.
* include/bits/basic_ios.h: Likewise.
* include/bits/basic_ios.tcc: Likewise.
* include/bits/basic_string.h: Likewise.
* include/bits/c++config: Likewise.
* include/bits/concept_checks.h: Likewise.
* include/bits/fpos.h: Likewise.
* include/bits/fstream.tcc: Likewise.
* include/bits/functexcept.h: Likewise.
* include/bits/ios_base.h: Likewise.
* include/bits/istream.tcc: Likewise.
* include/bits/mask_array.h: Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/pthread_allocimpl.h: Likewise.
* include/bits/sbuf_iter.h: Likewise.
* include/bits/slice.h: Likewise.
* include/bits/slice_array.h: Likewise.
* include/bits/sstream.tcc: Likewise.
* include/bits/std_bitset.h: Likewise.
* include/bits/std_fstream.h: Likewise.
* include/bits/std_iomanip.h: Likewise.
* include/bits/std_ios.h: Likewise.
* include/bits/std_istream.h: Likewise.
* include/bits/std_iterator.h: Likewise.
* include/bits/std_memory.h: Likewise.
* include/bits/std_ostream.h: Likewise.
* include/bits/std_sstream.h: Likewise.
* include/bits/std_streambuf.h: Likewise.
* include/bits/std_string.h: Likewise.
* include/bits/std_valarray.h: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_alloc.h: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_function.h: Likewise.
* include/bits/stl_heap.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_iterator_base.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_numeric.h: Likewise.
* include/bits/stl_pair.h: Likewise.
* include/bits/stl_pthread_alloc.h: Likewise.
* include/bits/stl_queue.h: Likewise.
* include/bits/stl_raw_storage_iter.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_stack.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_threads.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/streambuf.tcc: Likewise.
* include/bits/type_traits.h: Likewise.
* include/bits/valarray_meta.h: Likewise.
* include/ext/bvector: Likewise.
* include/ext/hash_map: Likewise.
* include/ext/hash_set: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/slist: Likewise.
* include/ext/stl_bvector.h: Likewise.
* include/ext/stl_hash_fun.h: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* include/ext/stl_rope.h: Likewise.
* src/complex_io.cc: Likewise.
* src/ios.cc: Likewise.
* src/locale-inst.cc: Likewise.
* src/locale.cc: Likewise.
* src/localename.cc: Likewise.
* src/misc-inst.cc: Likewise.
* src/stdexcept.cc: Likewise.
* src/stl-inst.cc: Likewise.
* src/strstream.cc: Likewise.
* src/valarray-inst.cc: Likewise.
From-SVN: r40239
2001-03-04 21:34:02 +00:00
Benjamin Kosnik
4cacbdf21f
[multiple changes]
...
2001-03-02 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/istream.tcc: change type of __extracted to __size_type
2001-03-02 Benjamin Kosnik <bkoz@redhat.com>
* src/wstring-inst.cc: New file.
* src/Makefile.am (EXTRA_LTLIBRARIES): Remove.
(libinst_wstring_la_SOURCES): Remove.
(libstdc___la_LIBADD): Remove libinst_wstring_la.
(sources): Add wstring-inst.cc
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Remove
libinst_wstring_la.
From-SVN: r40192
2001-03-02 21:38:26 +00:00
Benjamin Kosnik
e08838ac57
c++config (__GLIBCPP__): Bump number in anticipation of 2.92.
...
2001-02-28 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2103
* include/bits/c++config (__GLIBCPP__): Bump number in
anticipation of 2.92.
* include/bits/codecvt.h: Fix typo.
* include/bits/basic_file.h (__basic_file): Don't use _M_wfile for
stdio model.
* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Enable wchar_t
instantiations for stdio model.
From-SVN: r40140
2001-03-01 00:37:18 +00:00
Benjamin Kosnik
c0a26060f6
basic_file.h: Include basic_file_model.h.
...
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1886
* include/bits/basic_file.h: Include basic_file_model.h.
* config/c_io_libio.cc: Move to...
* config/basic_file_libio.cc: Here.
* config/basic_file_libio.h: New file.
* config/c_io_stdio.cc: Move to...
* config/basic_file_stdio.cc: Here.
* config/basic_file_stdio.h: New file.
* config/c_io_libio.h: Tweak.
* config/c_io_stdio.h: Tweak.
* src/Makefile.am (build_headers): Add basic_file_model.h.
(sources): Add basic_file.cc, remove c++io.cc.
* src/Makefile.in: Regenerate.
* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add support for
basic_file_model.h and basic_file.cc.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/27_io/filebuf.cc (test05): Add regression.
From-SVN: r40108
2001-02-28 03:20:36 +00:00
Benjamin Kosnik
9dd3d53c9a
std_stdexcept.h (runtime_error): Make string member non-const.
...
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/std_stdexcept.h (runtime_error): Make string
member non-const.
(logic_error): Same.
* testsuite/19_diagnostics/stdexceptions.cc (test04): Add test.
(test03): Fix.
From-SVN: r40098
2001-02-27 23:00:35 +00:00
Benjamin Kosnik
0349df29f0
std_stdexcept.h (logic_error::logic_error): Use string object, not reference.
...
2001-02-26 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1972
libstdc++/2089
* include/bits/std_stdexcept.h (logic_error::logic_error): Use
string object, not reference.
(runtime_error::runtime_error): Same.
* testsuite/19_diagnostics/stdexceptions.cc: New file.
From-SVN: r40079
2001-02-27 04:13:17 +00:00
Phil Edwards
a008643689
Fixes libstdc++/2079
...
2001-02-26 Phil Edwards <pme@sources.redhat.com>
Fixes libstdc++/2079
* include/backward/iomanip.h: Expose <ios> manipulators to global
namespace.
* include/backward/iostream.h: Also expose std::ws.
From-SVN: r40073
2001-02-26 20:33:09 +00:00
Benjamin Kosnik
8ac2677fbb
codecvt.h: Use __builtin_alloca.
...
2001-02-23 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/codecvt.h: Use __builtin_alloca.
* include/bits/ostream.tcc: Same.
* include/bits/fstream.tcc: Same.
From-SVN: r40007
2001-02-23 19:22:04 +00:00
Phil Edwards
12961d6516
iostream.h: Expose std::flush in old headers.
...
2001-02-23 Phil Edwards <pme@sources.redhat.com>
c++/2052
* include/backward/iostream.h: Expose std::flush in old headers.
From-SVN: r40000
2001-02-23 17:47:34 +00:00
Benjamin Kosnik
6259cad9af
tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
...
2001-02-22 Benjamin Kosnik <bkoz@redhat.com>
* tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
* include/bits/codecvt.h: Use alloca instead of __extension__ for
the time being.
* include/bits/ostream.tcc: Same.
* include/bits/std_ostream.h: Same.
* include/bits/fstream.tcc: Same.
* include/bits/locale_facets.tcc: Add typename.
* include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Enable.
From-SVN: r39991
2001-02-23 07:12:03 +00:00
Phil Edwards
9cfeea6e4e
stl_config.h: Remove file.
...
2001-02-20 Phil Edwards <pme@sources.redhat.com>
* include/bits/stl_config.h: Remove file.
* src/Makefile.am (base_headers): Remove from list.
* configure: Regenerate.
* Makefile.in: Ditto.
* libio/Makefile.in: Ditto.
* libmath/Makefile.in: Ditto.
* libsupc++/Makefile.in: Ditto.
* src/Makefile.in: Ditto.
* include/bits/c++config: Move relevant macros to here.
* include/backward/alloc.h: Include c++config.h instead.
* include/backward/function.h: Ditto.
* include/backward/heap.h: Ditto.
* include/backward/pair.h: Ditto.
* include/bits/pthread_allocimpl.h: Ditto.
* include/bits/std_functional.h: Ditto.
* include/bits/std_iterator.h: Ditto.
* include/bits/std_numeric.h: Ditto.
* include/bits/std_utility.h: Ditto.
* include/bits/stl_algobase.h: Ditto.
* include/bits/type_traits.h: Ditto.
* src/stl-inst.cc: Ditto.
From-SVN: r39931
2001-02-20 20:20:48 +00:00
Gabriel Dos Reis
b0a85b861e
Add #pragma system_header to header files.
...
From-SVN: r39896
2001-02-19 18:52:25 +00:00
Greg Bumgardner
f5d3e93f97
std_ostream.h: Replaced usage of _Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.
...
2001-02-16 Greg Bumgardner <bumgard@roguewave.com>
libstdc++/1734
* include/bits/std_ostream.h: Replaced usage of
_Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.
* include/bits/char_traits.h: Removed non-standard
methods that cannot be used elsewhere.
libstdc++/1885
* include/bits/basic_ios.h: Uncommented #include of
bits/basic_ios.tcc
libstdc++/1897
* include/bits/codecvt.h: See next...
* include/bits/fstream.tcc: See next...
* include/bits/ostream.tcc: Add __extension__
to variable-length arrays.
libstdc++/1967
* include/bits/localefwd.h: Changed int counter type to size_t.
libstdc++/1968
* include/bits/std_fstream.h: Added typedef for __ctype_type.
From-SVN: r39802
2001-02-17 17:51:45 +00:00
Benjamin Kosnik
63100912b7
c++config: Revert.
...
2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config: Revert.
From-SVN: r39747
2001-02-16 05:39:47 +00:00
Mark Mitchell
bcd0cabb19
istream.tcc: Use ios_base::iostate in place of iostate throughout.
...
* include/bits/istream.tcc: Use ios_base::iostate in place of
iostate throughout. Insert `typename' keyword where necessary.
* include/bits/ostream.tcc: Insert `typename' keyword where
necessary.
From-SVN: r39743
2001-02-16 03:35:50 +00:00
Jeffrey Oldham
e4df3e482d
c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Define so library is compliant.
...
2001-02-14 Jeffrey Oldham <oldham@codesourcery.com>
* include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS):
Define so library is compliant.
From-SVN: r39741
2001-02-16 02:38:35 +00:00
Benjamin Kosnik
e2c094827c
Add support for -fno-exceptions.
...
2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
Add support for -fno-exceptions.
* include/bits/exception_support.h: Remove.
* include/bits/basic_string.h: Remove exception_support.
(string::_M_check): Replace __OUTOFRANGE with __throw_out_of_range.
(string::at): Same.
(string::substr): Same.
* include/bits/basic_string.tcc (string::reserve): Replace
__LENGTHERROR with __throw_length_error.
(string::_S_create): Same.
(string::resize): Same.
(string::_M_replace): Same.
(string::replace): Same.
(string::copy): Replace __OUTOFRANGE with __throw_out_of_range.
(string::compare): Same.
* include/bits/stl_vector.h: Remove exception_support.
* src/Makefile.am (base_headers): Remove here.
* src/Makefile.in: Regenerate.
* include/bits/stl_range_errors.h: Remove.
* include/bits/stl_deque.h: Use __throw_range_error.
* include/bits/std_deque.h: Include functexcept.h.
* include/bits/std_vector.h: Same.
* src/Makefile.am (base_headers): Remove here.
* src/Makefile.in: Regenerate.
* include/ext/stl_bvector.h (class __BVECTOR): Use __throw_range_error.
* include/ext/bvector: Remove stl_range_errors.h
* include/bits/c++config (_GLIBCPP_USE_EXCEPTIONS): Remove.
* include/bits/functexcept.h: New file.
* src/functexcept.cc: New file. Definitions for function-based
exception routines.
* src/Makefile.am (sources): Add functexcept.cc.
* src/Makefile.in: Regenerate.
* include/bits/stl_config.h (__STL_USE_EXCEPTIONS): Wrap with
__EXCEPTIONS.
* include/bits/localefwd.h: Include functexcept.h.
* include/bits/std_iosfwd.h: Same.
* include/bits/basic_ios.h: Use __throw_ios_failure instead of
throw basic_ios::failure.
* include/bits/fstream.tcc (filebuf::_M_allocate_buffers):
Use __throw_exception_again.
(filebuf::_M_filebuf_init): Same.
* include/bits/streambuf.tcc (__copy_streambufs): Same.
* include/bits/ostream.tcc (ostream::operator<<): Same.
* include/bits/istream.tcc (istream::operator>>): Same.
* include/bits/basic_string.tcc (string::_M_mutate): Same.
(string::_S_construct): Same.
(string::_M_clone): Same.
* include/bits/locale_facets.tcc (use_facet(const locale&)): Use
__throw_bad_cast.
(num_put<_CharT, _OutIter>::do_put): Use __throw_exception_again.
* src/localename.cc (locale::_Imp::_Imp(const _Impl&, size_t): Use
__throw_exception_again.
(locale::_Imp::_Imp(string, size_t): Same.
(locale::_Imp::_M_replace_facet): Use __throw_runtime_error.
* src/locale.cc (locale::_M_coalesce): Use __throw_exception_again.
(locale::locale(const char*)): Use __throw_runtime_error.
(locale::classic): Use __throw_exception_again.
(locale::_S_normalize_category): Use __throw_runtime_error.
* src/stdexcept.cc: Remove cruft.
* libsupc++/exception_defines.h: New file.
* libsupc++/new_opnt.cc: Include exception_defines.h.
* libsupc++/vec.cc: Same.
(__cxa_vec_new2): Use __throw_exception_again.
(__cxa_vec_new3): Same.
(__cxa_vec_ctor): Same.
(__cxa_vec_delete3): Same.
(__cxa_vec_cctor): Same.
(__cxa_vec_delete2): Same.
(__cxa_vec_dtor): Same.
* libsupc++/exception_support.cc: Include exception_defines.h. Only
compile exception-handling bits if __EXCEPTIONS is defined.
Remove old ABI support.
* libsupc++/new_op.cc (new): Include exception_defines.h. Use
std::__throw_bad_alloc() instead of throw bad_alloc.
* libsupc++/Makefile.am: Add exception_defines.h.
* libsupc++/Makefile.in: Reformat.
* libsupc++/*: Format.
From-SVN: r39730
2001-02-16 00:44:44 +00:00
Dirk Mueller
f4483e8502
function.h: Do not use rel_ops for older headers either.
...
2001-02-13 Dirk Mueller <dmuell@gmx.net>
Phil Edwards <pme@sources.redhat.com>
* include/backward/function.h: Do not use rel_ops for older
headers either.
* include/backward/pair.h: Likewise.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r39637
2001-02-13 16:09:05 +00:00
Gabriel Dos Reis
1c7c97cc63
std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR...
...
* include/bits/std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR,
not _DEFINE_VALARRAY_OPERATOR which is not existent.
From-SVN: r39592
2001-02-11 22:42:36 +00:00
Gabriel Dos Reis
169ef01cf0
valarray_meta.h (_RefFunClos<>_RefRunClos): Fix thinko in member initialisation.
...
* include/bits/valarray_meta.h (_RefFunClos<>_RefRunClos): Fix
thinko in member initialisation.
From-SVN: r39591
2001-02-11 22:25:50 +00:00
Gabriel Dos Reis
d2155bfea5
std_valarray.h (valarray<>::shift): Avoid comparaison between signed and unsigned integer types.
...
* include/bits/std_valarray.h(valarray<>::shift): Avoid
comparaison between signed and unsigned integer types.
(valarray<>::cshift): Reformat.
From-SVN: r39590
2001-02-11 22:16:48 +00:00
Gabriel Dos Reis
b80253d7c0
char_traits.h (char_traits<char>::int_type): Change to `int' to match 21.1.3.1/2.
...
2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
* include/bits/char_traits.h char_traits<char>::int_type: Change
to `int' to match 21.1.3.1/2.
* testsuite/21_strings/char_traits-int_type.C: New test.
From-SVN: r39581
2001-02-11 04:43:44 +00:00
Nathan Sidwell
929408ba11
* include/c_shadow/bits/std_cstdlib.h (lldiv_t): Fix typo.
...
From-SVN: r39565
2001-02-09 14:12:51 +00:00
Benjamin Kosnik
0c952af328
Clean up stdexcept.
...
2001-02-07 Benjamin Kosnik <bkoz@redhat.com>
Clean up stdexcept.
* include/bits/stringfwd.h: New file.
* include/bits/stl_string_fwd.h: Remove.
* include/bits/localefwd.h: Remove declaration for allocator.
* include/bits/std_iosfwd: Same.
* include/bits/std_string.h: Include it.
* include/bits/std_ios.h: Remove include.
* include/bits/basic_string.h: Tweak.
* libsupc++/new: Format.
* src/Makefile.am (base_headers): Add stringfwd.h, remove
stl_string_fwd.h
* src/Makefile.in: Regenerate.
* include/bits/std_stdexcept.h: Rewrite.
* src/stdexcept.cc: Same.
From-SVN: r39526
2001-02-07 20:26:24 +00:00
Benjamin Kosnik
72ed283692
acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library install locations too.
...
2001-02-06 Benjamin Kosnik <bkoz@fillmore.constant.com>
* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library
install locations too.
* aclocal.m4: Regeneate.
* configure.in: Remove USE_LIBDIR.
* configure: Regenerate.
* src/Makefile.am (toolexecdir): Simplify, use
glibcpp_toolexecdir, glibcpp_toolexeclibdir.
* src/Makefile.in: Regenerate.
* libsupc++/Makefile.am: Same.
* libsupc++/Makefile.in: Regenerate.
* src/Makefile.am: Just remove special rules for locale-inst.cc and
misc-inst.cc as no longer necessary.
Follow C++STYLE for naming non-static functions.
* include/bits/ostream.tcc (_S_pad_char): Not static, rename to
__pad_char.
* include/bits/streambuf.tcc: Same.
* include/bits/ostream.tcc: Same.
* include/bits/istream.tcc: Same.
* include/bits/locale_facets.tcc (_S_pad_numeric): To __pad_numeric.
(_S_output_float): To __output_float.
* include/bits/std_streambuf.h (_S_copy_streambufs): To
__copy_streambufs.
* include/bits/locale_facets.tcc (_S_build_float_format): To
__build_float_format.
(_S_format): To __output_integer.
(_S_fill): To __pad.
* src/locale.cc: Same.
* src/misc-inst.cc: Fix formatting. Fix signature for wchar_t. Correct
names.
* include/bits/locale_facets.tcc (_S_group_digits): To
__group_digits.
* src/locale-inst.cc: Fixup names. Add use_facet instantiations
for collate, numpunct.
From-SVN: r39508
2001-02-07 01:54:21 +00:00
Hyman Rosen
0cc21532eb
std_istream.h (op>> signed,unsigned char): Must use reinterpret_cast, not static_cast.
...
2001-02-06 Phil Edwards <pme@sources.redhat.com>
* include/bits/std_istream.h (op>> signed,unsigned char): Must
use reinterpret_cast, not static_cast.
From-SVN: r39493
2001-02-06 15:52:37 +00:00
Benjamin Kosnik
0a1cceea5c
locale_facets.h (class moneypunct): Fix typos.
...
2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (class moneypunct): Fix typos.
From-SVN: r39483
2001-02-06 07:21:41 +00:00
Mark Mitchell
bf6adbe2c6
locale_facets.tcc: Remove `static' keyword on function definitions.
...
* include/bits/locale_facets.tcc: Remove `static' keyword on
function definitions.
* include/bits/std_streambuf.h: Likewise.
* src/Makefile.am: Remove use of -fimplicit-templates.
* src/Makefile.in: Regenerated.
* src/locale-inst.cc: Explicitly instantiate more functions.
* src/msic-inst.cc: Likewise.
* src/string-inst.cc: Likewise.
From-SVN: r39481
2001-02-06 06:36:18 +00:00
Benjamin Kosnik
8089616e6a
std_cerrno.h: Correct date format for copyright.
...
2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cerrno.h: Correct date format for copyright.
* include/c_std/bits/std_cctype.h: Same.
* include/c_std/bits/std_cassert.h: Same.
* include/c_std/bits/std_cstdarg.h: Same.
* include/c_std/bits/std_cstddef.h: Same.
* include/c_std/bits/std_cstdio.h: Undefine all names brought into
namespace std.
* include/c_std/bits/std_ctime.h: Same.
* include/c_std/bits/std_clocale.h: Same.
* include/c_std/bits/std_cmath.h: Same.
* include/c_std/bits/std_csetjmp.h: Same.
* include/c_std/bits/std_csignal.h: Same.
* include/c_std/bits/std_cstring.h: Same.
* include/c_std/bits/std_cstdlib.h: Same.
* include/c_std/bits/std_cwchar.h: Same.
From-SVN: r39468
2001-02-05 22:27:40 +00:00
Benjamin Kosnik
be76a59f6a
stl_threads.h (struct _STL_mutex_lock): Same.
...
2001-02-03 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_threads.h (struct _STL_mutex_lock): Same.
* include/bits/localefwd.h: More initialization cleanups.
From-SVN: r39428
2001-02-03 08:33:35 +00:00
Jeffrey A Law
073197227c
ios_base.h (_S_ios_fmtflags_end): Initialize correctly targets with 16bit ints.
...
* include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
correctly targets with 16bit ints.
(_S_ios_openmode_end): Similarly.
(_S_ios_iostate_end): Similarly.
(_S_ios_Seekdir_end): Similarly.
From-SVN: r39427
2001-02-03 00:24:06 -07:00
Benjamin Kosnik
0214010c60
Preliminary named locales.
...
2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
Preliminary named locales.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
* aclocal.m4: Regenerate.
* configure.in: Use it.
* configure: Regerate.
* src/Makefile.am (sources): Add c++locale.cc.
(build_headers): Add c++locale.h.
* src/Makefile.in: Regenerate.
* config/c_locale_gnu.h: New file.
* config/c_locale_gnu.cc: New file. Non-inline member functions
for named locales, gnu-specific.
* config/c_locale_generic.h: New file.
* config/c_locale_generic.cc: New file. Non-inline member
functions for named locales, generic version.
* docs/html/configopts.html: Add documentation on new options.
* include/bits/locale_facets.h (class _Messages): Remove.
(class _Moneypunct): Remove.
* src/locale-inst.cc: Remove.
* include/bits/locale_facets.h (class _Collate): Remove.
* src/locale-inst.cc (std): Remove.
* src/locale.cc: And here.
* include/bits/localefwd.h (locale::_M_coalesce): New
function. Correctly put together multi-name locales.
(_Impl(const _Impl&, category, size_t)): Remove.
* include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
member functions.
(_M_normalize_category_names): Remove.
(_M_replace_categories): Fix.
* src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
(locale::_Impl::_M_construct_ctype): Remove.
(locale::_Impl::_M_construct_monetary): Remove.
(locale::_Impl::_M_construct_numeric): Remove.
(locale::_Impl::_M_construct_time): Remove.
(locale::_Impl::_M_construct_messages): Remove.
* include/bits/locale_facets.h (_Bad_use_facet): Remove.
(_Use_facet_failure_handle): Remove.
* src/locale.cc: Remove definitions.
* src/locale-inst.cc: And here.
* testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
* src/localename.cc (locale::facet::_S_create_c_locale): Properly
create and error-check underlying locale object.
(locale::facet::_S_destroy_c_locale): Add, take care of properly
tearing down underlying locale object.
* include/bits/localefwd.h (locale::facet): Declare.
* testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
correctness, as glibc apparently has incorrect info in it. Test
with it when it works again.....
* include/bits/localefwd.h (locale::_Impl::__vec_string):
Remove. Number of categories is fixed at six, so just simplify and
make this an array of strings.
(locale::_Impl::_M_has_name): Remove.
(locale::_Impl::_M_name): Remove.
(locale::_Impl::_M_category_names): Turns into...
(locale::_Impl::_M_names): ...this.
(locale::_Impl::_M_has_same_name()): New function.
* src/localename.cc (locale::_Impl::~_Impl()): Remove here.
(locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
signature.
* src/locale.cc (locale::name()): Construct mangled name
accurately reflecting combined locale categories.
* src/locale.cc (locale::classic()): Don't initialize here.
* src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
__refs, bool __has_name, string __str): Do it here.
* include/bits/localefwd.h: _S_categories_num to
_S_num_categories. _S_facets_num to _S_num_facets.
(locale:🆔 :id()): Explicitly set _M_index to zero.
* src/locale.cc: Same.
* src/locale.cc: (locale::locale(const char*)): Construct named
locales uniquely.
* src/locale.cc: Remove numpunct_byname ctors.
* testsuite/22_locale/numpunct_byname.cc: New file.
* testsuite/22_locale/numpunct.cc: New file.
* include/bits/localefwd.h (class locale): Change data members to
protected, from private.
(_Impl::_M_get_c_locale): Add member function.
(locale::facet::_M_get_global_impl()): Add member function.
* include/bits/locale_facets.h (numpunct::_M_init): Change to take
a __c_locale pointer.
(numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
named locales.
* testsuite/22_locale/members.cc: New file, test name and combine.
* include/bits/locale_facets.h (class numpunct): Remove class
_Punct and _Numpunct. Rewrite class numpunct to be correct for
named locales.
* include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
* src/localename.cc (_Impl::~_Impl()): Call __frelocale.
(_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
* src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
* testsuite/22_locale/numpunct_char_members.cc: New file.
From-SVN: r39347
2001-01-30 09:18:51 +00:00
Phil Edwards
69d211dd50
std_iterator.h: Do not include stl_relops.h.
...
2001-01-25 Phil Edwards <pme@sources.redhat.com>
* include/bits/std_iterator.h: Do not include stl_relops.h.
* include/bits/std_numeric.h: Ditto.
* include/bits/stl_algobase.h: Ditto.
* include/bits/stl_relops.h: Add comment warning about problems.
From-SVN: r39267
2001-01-25 15:35:10 +00:00
Benjamin Kosnik
d34786e3fe
ios_base.h (ios_base::failure): Tighten up throw specs.
...
2001-01-16 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1605
* include/bits/ios_base.h (ios_base::failure): Tighten up throw specs.
* src/ios.cc (ios_base::failure): Make definitions match.
* libsupc++/typeinfo (class bad_typeid): Add throw specs.
(class bad_cast): Same.
* libsupc++/exception (class exception): Add throw specs.
* libsupc++/exception_support.cc (set_terminate): Add throw specs.
(set_unexpected): Same.
(uncaught_exception): Same.
(what): Same.
* docs/html/17_intro/C++STYLE (classname): Fix.
From-SVN: r39087
2001-01-17 07:44:57 +00:00
Benjamin Kosnik
13187a454d
C++STYLE (classname): Add more existing and stylish patterns.
...
2001-01-16 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/C++STYLE (classname): Add more existing
and stylish patterns.
libstdc++/944
* include/bits/istream.tcc (istream::sentry::sentry()): Set
failbit if the state of the stream is not good.
* testsuite/27_io/istream_sentry.cc (test02): Add test.
* testsuite/27_io/istream_manip.cc (test01): Modify.
libstdc++/1019
reported by Paolo Carlini <pcarlini@unitus.it>
* include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
* testsuite/21_strings/inserters_extractors.cc (test08): Add test.
libstdc++/1057
* include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
* include/bits/streambuf.tcc (xsputn): Remove outside if clause.
(xsgetn): Same. Simplify.
* testsuite/27_io/streambuf.cc (test04): Add testcases.
reported by Larry Evans <jcampbell3@prodigy.net>
* include/bits/streambuf.tcc (streambuf::xsputn): Just check for
equality with eof on returned value from overflow.
From-SVN: r39059
2001-01-16 07:55:26 +00:00
Benjamin Kosnik
976448273e
basic_string.h (_S_find(const _CharT* __beg, const _CharT* __end, _CharT __c): Remove.
...
2001-01-12 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_string.h (_S_find(const _CharT* __beg, const
_CharT* __end, _CharT __c): Remove.
* include/bits/basic_string.tcc: Substitute traits::find for _S_find.
* include/bits/char_traits.h: Tweak.
From-SVN: r38961
2001-01-12 21:24:15 +00:00
Joseph Myers
57043d914e
std_cstdio.h: Undef printf.
...
2001-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
* include/c_std/bits/std_cstdio.h: Undef printf.
From-SVN: r38917
2001-01-11 18:16:16 +00:00
Peter Schmid
90e420bd60
std_complex.h: Fix a typo.
...
2001-01-10 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/std_complex.h: Fix a typo.
From-SVN: r38878
2001-01-10 20:55:03 +00:00
Benjamin Kosnik
469550eb04
Fixes for libstdc++/1576
...
2001-01-09 Benjamin Kosnik <bkoz@redhat.com>
<kainz@ilm.com>
Fixes for libstdc++/1576
* src/stdstreams.cc: Initialize with NULL filebuf. Delete
file, move contents into....
* src/ios.cc: ...Here. Put defines for iostreams objects and
initialization routines into one file to simplify DSO interaction.
* include/bits/std_iostream.h: Touch.
* include/bits/ios_base.h (_S_synched_with_stdio): Make static.
* src/Makefile.am (sources): Remove stdstreams.cc.
* src/Makefile.in: Regenerate.
From-SVN: r38871
2001-01-10 17:24:11 +00:00
Peter Schmid
fa44a93614
2001-01-09 Peter Schmid<schmid@snake.iap.physik.tu-darmstadt.de>
...
2001-01-09 Peter Schmid<schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/std_complex.h: Fix a typo.
From-SVN: r38848
2001-01-10 02:30:57 +00:00
Robert Lipe
e7eceef2af
* include/c_std/bits/std_ctime.h: Undefine difftime.
...
From-SVN: r38817
2001-01-09 07:42:45 +00:00
Benjamin Kosnik
5a259aec51
fpos.h (fpos:::fpos(streamoff __pos)): Explicitly initialize mbstate_t member, name offset data members *off, not pos.
...
2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
initialize mbstate_t member, name offset data members *off, not pos.
* include/bits/fstream.tcc (filebuf::filebuf): Same.
From-SVN: r38809
2001-01-08 23:51:57 +00:00
Benjamin Kosnik
d358ecd01f
[multiple changes]
...
2001-01-05 Benjamin Kosnik <bkoz@redhat.com>
Fix 27_io/filebuf_members.cc
* src/localename.cc (locale::_Impl::_Impl(const _Impl& __imp,
const string& __name, category __cat, size_t __refs): Set
_M_has_name with _M_name.
* include/bits/localefwd.h (locale::operator!=): Protect member
function call with this->.
* src/locale.cc (locale::operator==): Make fast checks first.
* include/bits/basic_ios.tcc (basic_ios::init): Simplify.
* include/bits/ios_base.h (_M_synced_with_stdio): Add data member
to ios_base::Init.
* src/ios.cc (ios_base::Init::Init): Initialize here.
(ios_base::sync_with_stdio): Set here.
2001-01-04 Loren J. Rittle <ljrittle@acm.org>
* config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On
systems that support it, call dup() before fdopen().
From-SVN: r38742
2001-01-06 02:44:11 +00:00
Benjamin Kosnik
e61c3e8cde
std_cwctype.h: Include std_cwchar.h for wint_t.
...
2001-01-03 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
* testsuite/17_intro/header_cwctype.cc (main): New file.
* src/Makefile.am (base_headers): Change.
* include/bits/std_string.h: And here.
* include/bits/string.tcc: Tweaks, move to...
* include/bits/basic_string.tcc: ...Here.
* src/string-inst.cc: Simplify, just instantiate the whole class,
not member-by-member.
From-SVN: r38679
2001-01-04 04:21:42 +00:00
Benjamin Kosnik
36e40658db
acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
...
2001-01-02 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/bits/c++config (__GLIBCPP__): Bump version number.
* ChangeLog: Start new log for year 2001
* ChangeLog-2000: New file.
* docs/html/configopts.html: Make sure default values are current,
From-SVN: r38663
2001-01-03 15:53:28 +00:00
Benjamin Kosnik
7b33122850
std_cwchar.h: Same.
...
2001-01-01 Benjamin Kosnik <bkoz@fillmore.redhat.com>
* include/c_std/bits/std_cwchar.h: Same.
* testsuite/17_intro/header_cwchar.cc: Same.
* include/c_std/bits/std_ctime.h: Same.
* testsuite/17_intro/header_ctime.cc: Same.
* include/c_std/bits/std_cstdlib.h: Same.
Clean up undefs, make consistent with cwchar and cmath, etc.
* testsuite/17_intro/header_cstdlib.cc: Same.
* include/c_std/bits/std_cstdio.h: Same here.
* testsuite/17_intro/header_cstring.cc: Same.
* include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t.
* testsuite/17_intro/header_cstring.cc: New file. Check for
size_t in namespace std.
* include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t.
* acconfig.h (HAVE_MBSTATE_T): Add.
* config.h.in: Regenerate.
* acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for
mbstate_t.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/17_intro/headers_c++.cc: New file.
* testsuite/17_intro/headers_c.cc: Small changes.
From-SVN: r38614
2001-01-02 07:38:47 +00:00
Alexandre Oliva
2b872543ba
* include/c_std/bits/std_cstdlib.h (mblen): Protect against macro.
...
From-SVN: r38574
2001-01-01 00:06:50 +00:00
Benjamin Kosnik
a40ba78e55
Makefile.am (CSTD_INCLUDES): Change from CSHADOW_INCLUDES.
...
2000-12-23 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (CSTD_INCLUDES): Change from CSHADOW_INCLUDES.
(strstream.cc): Add special rule for deprecated files.
* libsupc++/Makefile.am (INCLUDES): Sync.
* acinclude.m4 (GLIBCPP_EXPORT_INCLUDES): And here.
Reported by Fred Fish <fnf@ninemoons.com>
* include/backward/iomanip.h: Remove backward from include
* include/backward/strstream.h: Same.
* include/backward/stream.h: Same.
* include/backward/ostream.h: Same.
* include/backward/istream.h: Same.
* src/strstream.cc: And here.
Reported by Brad Garcia <bgarcia@laurelnetworks.com>
* src/string-inst.cc (_S_find): Use generic template.
* include/bits/string.tcc (_S_find): Remove specializations
From-SVN: r38477
2000-12-23 07:13:57 +00:00
Benjamin Kosnik
e63a5d07ad
000-12-22 Benjamin Kosnik <bkoz@fillmore.redhat.com>
...
Attempt to make locale visible in gdb.
* include/bits/std_locale.h: Remove codecvt.h include.
* include/bits/locale_facets.h: Add here, after ctype decls.
* include/bits/codecvt.h: Remove std namespace, as assumed to be
in std now.
* include/bits/locale_facets.h: Consistently move generic static
member definitions directly after generic facet declarations.
* include/bits/locale_facets.tcc: From here.
* src/locale.cc: Organize locale::id static definitions for
required facets.
* src/codecvt.cc (codecvt<char...>): Remove locale::id definition.
(codecvt<wchar_t...>): Same.
* src/localename: And here.
* include/bits/localefwd.h (_Count_ones): Change _S_count to _M_count.
Same for _M_halfcount.
From-SVN: r38450
2000-12-22 11:06:17 +00:00
Benjamin Kosnik
0a31609b5a
Attempt to make locale visible in gdb.
...
2000-12-22 Benjamin Kosnik <bkoz@fillmore.redhat.com>
Attempt to make locale visible in gdb.
* include/bits/std_locale.h: Remove codecvt.h include.
* include/bits/locale_facets.h: Add here, after ctype decls.
* include/bits/codecvt.h: Remove std namespace, as assumed to be
in std now.
* include/bits/locale_facets.h: Consistently move generic static
member definitions directly after generic facet declarations.
* include/bits/locale_facets.tcc: From here.
* src/locale.cc: Organize locale::id static definitions for
required facets.
* src/codecvt.cc (codecvt<char...>): Remove locale::id definition.
(codecvt<wchar_t...>): Same.
* src/localename: And here.
* include/bits/localefwd.h (_Count_ones): Change _S_count to _M_count.
Same for _M_halfcount.
(std): make locale::_Impl protected. CHANGE BACK
From-SVN: r38449
2000-12-22 11:03:33 +00:00
Benjamin Kosnik
98e6e789f6
configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
...
2000-12-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Change GLIBCPP_ENABLE_SHADOW to
GLIBCPP_ENABLE_CHEADERS.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c: Move to ...
* include/c_std: ...here.
* include/c_std: Move to ...
* include/c_shadow: ...here.
* include/c: Repopulate, with simple headers.
* docs/html/configopts.html: Adjust docs.
From-SVN: r38440
2000-12-22 00:27:01 +00:00
Benjamin Kosnik
74da183aea
configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
...
2000-12-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Change GLIBCPP_ENABLE_SHADOW to
GLIBCPP_ENABLE_CHEADERS.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c: Move to ...
* include/c_std: ...here.
* include/c_std: Move to ...
* include/c_shadow: ...here.
* include/c: Repopulate, with simple headers.
* docs/html/configopts.html: Adjust docs.
From-SVN: r38439
2000-12-22 00:14:08 +00:00
Benjamin Kosnik
fb9affe790
configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
...
2000-12-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Change GLIBCPP_ENABLE_SHADOW to
GLIBCPP_ENABLE_CHEADERS.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c: Move to ...
* include/c_std: ...here.
* include/c_std: Move to ...
* include/c_shadow: ...here.
* include/c: Repopulate, with simple headers.
* docs/html/configopts.html: Adjust docs.
From-SVN: r38438
2000-12-22 00:04:33 +00:00
Benjamin Kosnik
1aa040fc77
configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
...
2000-12-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Change GLIBCPP_ENABLE_SHADOW to
GLIBCPP_ENABLE_CHEADERS.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c: Move to ...
* include/c_std: ...here.
* include/c_std: Move to ...
* include/c_shadow: ...here.
* include/c: Repopulate, with simple headers.
* docs/html/configopts.html: Adjust docs.
From-SVN: r38437
2000-12-21 23:58:35 +00:00
Benjamin Kosnik
2b8c76ef65
configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
...
2000-12-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Change GLIBCPP_ENABLE_SHADOW to
GLIBCPP_ENABLE_CHEADERS.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c: Move to ...
* include/c_std: ...here.
* include/c_std: Move to ...
* include/c_shadow: ...here.
* include/c: Repopulate, with simple headers.
* docs/html/configopts.html: Adjust docs.
From-SVN: r38436
2000-12-21 23:54:19 +00:00
Benjamin Kosnik
8358c2c297
configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
...
2000-12-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Change GLIBCPP_ENABLE_SHADOW to
GLIBCPP_ENABLE_CHEADERS.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c: Move to ...
* include/c_std: ...here.
* include/c_std: Move to ...
* include/c_shadow: ...here.
* include/c: Repopulate, with simple headers.
* docs/html/configopts.html: Adjust docs.
From-SVN: r38434
2000-12-21 23:15:18 +00:00
Benjamin Kosnik
d8147b1eb1
configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS.
...
2000-12-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Change GLIBCPP_ENABLE_SHADOW to
GLIBCPP_ENABLE_CHEADERS.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
ENABLE_CHEADERS. C_INCLUDE_DIR defaults to c_std from c.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/c: Move to ...
* include/c_std: ...here.
* include/c_std: Move to ...
* include/c_shadow: ...here.
* include/c: Repopulate, with simple headers.
* docs/html/configopts.html: Adjust docs.
From-SVN: r38430
2000-12-21 22:46:27 +00:00
Gabriel Dos Reis
1228c7b6bd
Makefile.am (sources): Remove complex.cc, complexf.cc and complexl.cc from list.
...
* src/Makefile.am (sources): Remove complex.cc, complexf.cc and
complexl.cc from list.
* src/Makefile.in: Regenerate.
* src/complex.cc: Remove.
* src/complexf.cc: Likewise.
* src/complexl.cc: Likewise.
* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove csqrtl.c
(EXTRA_DIST): Remove csqrt.c and csqrtf.c.
* libmath/Makefile.in: Regenerate.
* libmath/complex-stub.h: Remove.
* libmath/csqrt.c: Likewise.
* libmath/sqrtf.c: Likewise.
* libmath/sqrtl.c: Likewise.
* libmath/mathconf.h: Remove <complex.h> and "complex-stub.h"
#inclusion.
* include/bits/std_complex.h (sqrt<>): Define primary template.
(complex<>): Remove sqrt friend declarations.
* configure.in: Initialize with src/ios.cc.
* configure: Regenerate.
* acinclude.m4: Remove check for csqrt* and <complex.h>
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* Makefile.in: Regenerate.
From-SVN: r38409
2000-12-21 01:28:58 +00:00
Phil Edwards
4c07386b32
acinclude.m4 (SECTION_FLAGS, [...]): Fix minor thinko.
...
2000-12-20 Phil Edwards <pme@sources.redhat.com>
* acinclude.m4 (SECTION_FLAGS, OPT_LDFLAGS): Fix minor thinko.
* aclocal.m4: Regenerate.
* configure: Ditto.
* Makefile.in: Ditto.
* libio/Makefile.in: Ditto.
* libmath/Makefile.in: Ditto.
* libsupc++/Makefile.in: Ditto.
* src/Makefile.in: Ditto.
* include/bits/istream.tcc: Fix clause reference in comment.
From-SVN: r38406
2000-12-20 21:37:57 +00:00
Benjamin Kosnik
205c6f1709
[multiple changes]
...
2000-12-19 Benjamin Kosnik <bkoz@fillmore.constant.com>
* configure.in: Don't turn on long long by default.
* configure: Regenerate.
* include/c/bits/std_cstdio.h: Remove c++config.h include.
* src/locale.cc: Formatting tweaks.
* testsuite/22_locale/ctype.cc (char<unsigned char>): Provide
member functions.
2000-12-19 Loren J. Rittle <ljrittle@acm.org>
* testsuite/22_locale/ctype.cc (test01): Correct ~ operator usage.
From-SVN: r38388
2000-12-19 22:55:07 +00:00
Gabriel Dos Reis
0a9419ccca
std_complex.h (complex<float>::operator-=): Fix thinko.
...
* include/bits/std_complex.h (complex<float>::operator-=): Fix
thinko.
From-SVN: r38377
2000-12-19 11:21:14 +00:00
Benjamin Kosnik
3d182b4c2a
*.h: Remove include_next...
...
2000-12-14 Benjamin Kosnik <bkoz@redhat.com>
* include/c/bits/*.h: Remove include_next, replace with include,
as include_next does not work host-x-host, and include_next not
necessary.
From-SVN: r38256
2000-12-14 19:06:57 +00:00
Benjamin Kosnik
65b66e1f90
locale_facets.h (ctype<char>): Remove throw specs not in base class signature.
...
2000-12-13 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (ctype<char>): Remove throw specs not in
base class signature.
From-SVN: r38249
2000-12-14 09:07:01 +00:00
Benjamin Kosnik
d9ab8adb37
ctype_base.h (ctype_base): Consistency with linux.
...
2000-12-13 Benjamin Kosnik <bkoz@redhat.com>
* config/os/generic/bits/ctype_base.h (ctype_base): Consistency
with linux.
* config/os/generic/bits/ctype_inline.h (is): Same.
* config/os/solaris/solaris2.5/bits/ctype_inline.h (is): Same.
* config/os/solaris/solaris2.5/bits/ctype_base.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_inline.h (is): Same.
* config/os/solaris/solaris2.6/bits/ctype_base.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_inline.h (is): Same.
* config/os/solaris/solaris2.7/bits/ctype_base.h: Same.
* config/os/irix/bits/ctype_inline.h (is): Same.
* config/os/irix/bits/ctype_base.h (ctype_base): Same.
* config/os/aix/bits/ctype_inline.h (is): Same.
* config/os/aix/bits/ctype_base.h (ctype_base): Same.
* config/os/bsd/netbsd/bits/ctype_inline.h (is): Same.
* config/os/bsd/netbsd/bits/ctype_base.h (ctype_base): Same.
* config/os/bsd/freebsd/bits/ctype_base.h (ctype_base): Same.
* config/os/bsd/freebsd/bits/ctype_inline.h (is): Same.
* config/os/newlib/bits/ctype_inline.h (is): Same.
* config/os/newlib/bits/ctype_base.h (ctype_base): Same.
* testsuite/22_locale/ctype_char_members.cc (test01): Add tests, fix.
* testsuite/22_locale/ctype.cc (test01): Add tests for
ctype_base::mask bitmask features.
* src/locale.cc: Define const static data for ctype_base.
* config/os/gnu-linux/bits/ctype_base.h (ctype_base): Make
ctype_base::mask type an integer type, not an enum.
* config/os/gnu-linux/bits/ctype_inline.h (is): Implement correctly.
* include/bits/locale_facets.h: Tweaks.
* include/bits/ios_base.h: Formatting tweaks.
* docs/html/17_intro/C++STYLE: Add.
From-SVN: r38243
2000-12-14 07:20:37 +00:00
Gabriel Dos Reis
0ba2a514ef
Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove ccosl, cexpl, clog10l, csinhl, ctanhl, ctanl.
...
* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove ccosl,
cexpl, clog10l, csinhl, ctanhl, ctanl.
(EXTRA_DIST): Remove ccos, ccosf, csin, csinf, ccosh, ccoshf,
csing, csinhf, clog10, clog10f, ctan, ctanf, ctanh, ctanhf.
* libmath/Makefile.in: Regenarate.
* libmath/ccos.c: Remove.
* libmath/ccosf.c: Likewise.
* libmath/ccosl.c: Likewise.
* libmath/csin.c: Likewise.
* libmath/csinf.c: Likewise.
* libmath/csinl.c: Likewise.
* libmath/ctan.c: Likewise.
* libmath/ctanf.c: Likewise.
* libmath/ctanl.c: Likewise.
* libmath/ccosh.c: Likewise.
* libmath/ccoshf.c: Likewise.
* libmath/ccoshl.c: Likewise.
* libmath/csinh.c: Likewise.
* libmath/csinhf.c: Likewise.
* libmath/csinhl.c: Likewise.
* libmath/ctanh.c: Likewise.
* libmath/ctanhf.c: Likewise.
* libmath/ctanhl.c: Likewise.
* libmath/cexp.c: Likewise.
* libmath/cexpf.c: Likewise.
* libmath/cexpl.c: Likewise.
* libmath/clog10.c: Likewise.
* libmath/clog10f.c: Likewise.
* libmath/clog10l.c: Likewise.
* libmath/complex-stub.h: Remove forward declaration of functions
mentioned above.
* include/bits/std_complex.h(tan, tanh): Define primary templates.
(complex<>): Remove friend declarations for tan<> and tanh<>.
* src/complex.cc(tan, tanh): Remove specializations.
* acinclude.m4: Remove check for ccos, ccosf, ccosl, ccosh,
ccoshf, ccoshl, csin, csinf, csinl, csinh, csinhf, csinhl, cexp,
cexpf, cexpl, ctan, ctanf, ctanl, ctanh, ctanhf, ctanhl.
* aclocal.m4: Regenarate.
* configure: Regenarate.
From-SVN: r38128
2000-12-08 05:57:48 +00:00
Benjamin Kosnik
4716be24b5
ctype_base.h (ctype_base): Change space mask.
...
2000-12-07 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* config/os/generic/bits/ctype_base.h (ctype_base): Change space mask.
* config/os/generic/bits/ctype_noninline.h (ctype): Remove default
arguments in definition.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
* config/os/newlib/bits/ctype_noninline.h (ctype): Same.
* config/os/irix/bits/ctype_noninline.h (ctype): Same.
* config/os/hpux/bits/ctype_noninline.h (ctype): Same.
* config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
* config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
* config/os/aix/bits/ctype_noninline.h (ctype): Same.
* include/bits/locale_facets.h: Tweak.
From-SVN: r38115
2000-12-07 20:49:10 +00:00
Benjamin Kosnik
167ed88f7a
locale_facets.h (ctype): Remove _Ctype_nois and _Ctype and replace with common __ctype_abstract_base.
...
2000-12-06 Benjamin Kosnik <bkoz@kredhat.com>
* include/bits/locale_facets.h (ctype): Remove _Ctype_nois and
_Ctype and replace with common __ctype_abstract_base.
(ctype<wchar_t>::_M_convert_to_wmask): Move to locale.cc.
* config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>::ctype):
And here.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
* config/os/newlib/bits/ctype_noninline.h (ctype): Same.
* config/os/irix/bits/ctype_noninline.h (ctype): Same.
* config/os/hpux/bits/ctype_noninline.h (ctype): Same.
* config/os/generic/bits/ctype_noninline.h (ctype): Same.
* config/os/aix/bits/ctype_noninline.h (ctype): Same.
* config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
* config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
* src/locale-inst.cc: Clean instantiations.
* src/locale.cc (ctype<char>): Add definitions here.
(ctype<wchar_t>::_M_wmask): Move definitions here.
* config/os/generic/bits/ctype_inline.h (ctype<char>::is):
Implement in a generic way, with only "C" functionality and no
knowlege of the target os.
* config/os/generic/bits/os_defines.h: Change comments to C++ style.
* testsuite/22_locale/ctype_char_members.cc (test01): Add tests.
* include/bits/codecvt.h (ctype_byname): Remove specializations,
as not required.
* include/bits/localefwd.h (codecvt_byname): And here.
* src/codecvt.cc: Remove codecvt_byname specializations.
* include/c/bits/std_cstdio.h: Include c++config.h.
From-SVN: r38100
2000-12-07 06:44:49 +00:00
Gabriel Dos Reis
fad3e66e8e
complex.cc (pow): Remove definitions for explicit specializations.
...
* src/complex.cc (pow): Remove definitions for explicit
specializations.
* libmath/mathconf.h: Remove declarations for c_log, c_logf,
c_logl.
* libmath/complex-stub.h: Remove declarations for cpow, cpowf,
cpowl.
* libmath/cpow.c: Remove.
* libmath/cpowf.c: Remove.
* libmath/cpowl.c: Remove.
* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove c_logl,
cpowl,
(EXTRA_DIST): Remove c_log, c_logf, carg, cargf.
* libmath/Makefile.in: Regenarate.
* libmath/c_log.c: Remove
* libmath/c_logf.c: Likewise.
* libmath/c_logl.c: Likewise.
* libmath/carg.c: Likewise.
* libmath/cargf.c: Likewise.
* libmath/cargl.c: Likewise.
* include/bits/std_complex.h (pow): Define primary templates.
(complex<>): Remove friend declarations for pow<>().
* acinclude.m4: Remove check for c_log, c_logf, c_logl, carg,
cargf.
* aclocal.m4: Regenarate.
* configure: Regenarate.
From-SVN: r38025
2000-12-05 04:01:46 +00:00
Gabriel Dos Reis
a30dbb3960
cmath.cc: Remove.
...
* src/cmath.cc: Remove.
* src/Makefile.am (c_base_headers): Add bits/cmath.tcc.
(sources): Remove cmath.cc
* src/Makefile.in: Regenerate.
* include/c/bits/std_cmath.h (__cmath_power<>): Declare.
(__cmath_abs<>): New function.
(abs, fabs): Use __cmath_abs when no direct support is available.
(__pow_helper<>): New function.
(pow): Define here. Use __pow_helper<>.
* include/c/bits/cmath.tcc: New file.
From-SVN: r37901
2000-11-30 23:44:32 +00:00
Gabriel Dos Reis
abfadcb132
Makefile.am (sources): Add bitset.cc
...
* src/Makefile.am (sources): Add bitset.cc
* src/Makefile.in: Regenrate.
* include/bits/std_bitset.h (_GLIBCPP_BITSET_BITS_PER_WORD): New
macro. Replace __BITS_PER_WORDS throughout.
(__BITS_PER_WORDS): Remove.
(bitset<>::_M_do_find_first, bitset<>::_M_do_find_next): Move
definitions to src/bitset.cc.
* src/bitset.cc (bitset<>::_M_do_find_first,
bitset<>::_M_do_find_next): Define here.
(_Bit_count<>::_S_bit_count, _Find_one<>::_S_first_one): Define
here. Explicitly instantiate definitions.
From-SVN: r37837
2000-11-29 01:09:09 +00:00
Benjamin Kosnik
74d2f859d2
Update for 2.91 release.
...
2000-11-28 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
Update for 2.91 release.
* include/bits/c++config (__GLIBCPP__): Update.
* docs/17_intro/RELEASE-NOTES: Update.
* docs/status.html: Update, remove bogus autotools disinformation.
From-SVN: r37825
2000-11-28 20:33:39 +00:00
Joseph Myers
7ee9826b89
acinclude.m4: Change C9X references to refer to C99.
...
* acinclude.m4: Change C9X references to refer to C99.
* aclocal.m4, configure: Regenerate.
* config/os/gnu-linux/bits/os_defines.h, src/complex.cc,
testsuite/22_locale/codecvt_wchar_t_char.cc,
include/bits/stl_config.h, include/c/bits/std_cwchar.h,
libmath/mathconf.h: Change C9X references to refer to C99.
From-SVN: r37743
2000-11-25 19:36:53 +00:00
Benjamin Kosnik
4ce69c7f61
Make deprecated strstream header consistent with new and new.h.
...
2000-11-22 Benjamin Kosnik <bkoz@redhat.com>
Make deprecated strstream header consistent with new and new.h.
* include/backward/strstream.h: Add. Use using declarations to
scope strstreambuf, istrstream, ostrstream, strstream to global
scope.
* include/backward/strstream: Remove using declarations.
* src/Makefile.am (base_headers): Add strstream.
* src/Makefile.in: Regenerate.
* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
to be consistent with other headers.
From-SVN: r37692
2000-11-23 06:46:31 +00:00
Gabriel Dos Reis
23a5b4448c
ios_base.h (ios_base::failure::~failure, [...]): Move defintion to ...
...
* include/bits/ios_base.h (ios_base::failure::~failure,
ios_base::failure::what): Move defintion to ...
* src/ios.cc (ios_base::failure::~failure): ... here.
src/ios.cc (ios::failure::what): Likewise.
From-SVN: r37684
2000-11-23 04:53:40 +00:00
Benjamin Kosnik
27ddcd48c1
Make deprecated strstream header consistent with new and new.h.
...
2000-11-22 Benjamin Kosnik <bkoz@redhat.com>
Make deprecated strstream header consistent with new and new.h.
* include/backward/strstream.h: Add. Use using declarations to
scope strstreambuf, istrstream, ostrstream, strstream to global
scope.
* include/backward/strstream: Remove using declarations.
* src/Makefile.am (base_headers): Add strstream.
* src/Makefile.in: Regenerate.
* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
to be consistent with other headers.
From-SVN: r37682
2000-11-23 03:25:47 +00:00
Loren J. Rittle
5789a524a6
strstream.h: Reinstate the `using' statements.
...
2000-11-22 Loren J. Rittle <ljrittle@acm.org>
* include/backward/strstream.h: Reinstate the `using'
statements.
From-SVN: r37660
2000-11-22 18:06:53 +00:00
Benjamin Kosnik
5feb272b7a
strstream.cc: Adjust includes.
...
2000-11-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* src/strstream.cc: Adjust includes.
* src/Makefile.am (base_headers): Remove std_strstream.h, add
backwards/strstream.h.
(std_headers): Remove strstream.
* src/Makefile.in: Regenerate.
* libsupc++/Makefile.am (headers): Remove new.h
* libsupc++/Makefile.in: Regenerate.
* include/std/strstream: Remove.
* include/backward/strstream.h: Replace with...
* include/bits/std_strstream.h: ...this. Move.
* include/backward/complex.h: Remove SGIisms.
* include/backward/streambuf.h: Same.
* include/backward/stream.h: Same.
* include/backward/ostream.h: Same.
* include/backward/istream.h: Same.
* include/backward/iostream.h: Same.
* include/backward/iomanip.h: Same.
* include/backward/fstream.h: Same.
* libsupc++/new.h: Add using declarations for bad_alloc,
nothrow_t, and nothrow, move to ...
* include/backward/new.h: ...here.
From-SVN: r37632
2000-11-22 00:05:16 +00:00
Benjamin Kosnik
63e749a813
strstream.h: Replace with...
...
2000-11-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* include/backward/strstream.h: Replace with...
* include/bits/std_strstream.h: ...this. Move.
* include/backward/complex.h: Remove SGIisms.
* include/backward/streambuf.h: Same.
* include/backward/stream.h: Same.
* include/backward/ostream.h: Same.
* include/backward/istream.h: Same.
* include/backward/iostream.h: Same.
* include/backward/iomanip.h: Same.
* include/backward/fstream.h: Same.
* libsupc++/new.h: Add using declarations for bad_alloc,
nothrow_t, and nothrow, move to ...
* include/backward/new.h: ...here.
From-SVN: r37631
2000-11-21 23:44:50 +00:00
Gabriel Dos Reis
b555ebaa9e
std_complex.h (complex<double>): Constructor complex<double>::complex(const complex<float>&) is not explicit...
...
2000-11-21 Gabriel Dos Reis <gdr@codesourcery.com>
* include/bits/std_complex.h (complex<double>): Constructor
complex<double>::complex(const complex<float>&) is not explicit;
since it is a promotion.
(complex<long double>): Constructors taking complex<float> and
complex<double> are not explicit.
From-SVN: r37599
2000-11-21 00:08:02 +00:00
Benjamin Kosnik
5e90dd7193
std_complex.h: Tweaks, include cmath for abs overloads.
...
2000-11-20 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/std_complex.h: Tweaks, include cmath for abs overloads.
* src/complex.cc: Remove cmath include, formatting tweaks, remove
dead code.
* include/c/bits/std_cmath.h: Formatting tweaks.
* testsuite/26_numerics/complex_value.cc: New file, for catching
bits gleaned from libstdc++/106.
* testsuite/23_containers/vector_ctor.cc (test02): Add test from
libstdc++/102.
From-SVN: r37591
2000-11-20 21:13:45 +00:00
Joseph Myers
78d58962af
c++config, [...]: Correct spelling of "deprecated".
...
* include/bits/c++config, include/bits/ios_base.h,
include/bits/std_streambuf.h: Correct spelling of "deprecated".
From-SVN: r37580
2000-11-20 08:25:18 +00:00
Benjamin Kosnik
c9b6c28211
stl_tree.h: Overload operators == and != to be able to handle the case...
...
2000-11-17 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* include/bits/stl_tree.h: Overload operators == and != to be able
to handle the case (const_iterator,iterator) and
(iterator,const_iterator), thus fixing libstdc++/737 and the like.
From-SVN: r37531
2000-11-17 22:58:19 +00:00
Loren J. Rittle
5af655ccee
locale_facets.tcc (num_get<_CharT, [...]): Add missing typename keyword.
...
* include/bits/locale_facets.tcc (num_get<_CharT,
_InIter>::do_get(...)): Add missing typename keyword.
From-SVN: r37513
2000-11-17 05:38:04 +00:00
Mark Mitchell
4f12dd3c7d
mkcheckin.in: Move check for bash version 2 later in the file.
...
* mkcheckin.in: Move check for bash version 2 later in the file.
* include/bits/basic_string.h (basic_string::_Rep::_S_max_size):
Make it const.
(basic_string::_Rep::_S_terminal): Likewise.
* include/bits/string.tcc (basic_string::_Rep::_S_max_size):
Likewise.
(basic_string::_Rep::_S_terminal): Likewise.
From-SVN: r37490
2000-11-16 01:03:20 +00:00
Benjamin Kosnik
5b20f7a054
acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to initial value.
...
2000-11-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to
initial value.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/bits/c++config (__GLIBCPP__): Set release version for 2.91.
From-SVN: r37457
2000-11-14 17:23:49 +00:00
Benjamin Kosnik
84e0b551f1
wrap_langinfo.h: New file.
...
2000-11-12 Brent Verner <brent@rcfile.org>
* include/c_std/bits/wrap_langinfo.h: New file.
* include/c_std/langinfo.h: New file.
* include/bits/codecvt.h (__enc_trants::__enc_traits()): Bring in
CODESET from _C_legacy::CODESET if using shadow headers.
From-SVN: r37436
2000-11-13 20:58:46 +00:00
Mark Mitchell
81dfdc485e
std_cmath.h (abs): Change extern "C" declaration of `abs (double)' to ...
...
* include/c/bits/std_cmath.h (abs): Change extern "C" declaration
of `abs (double)' to ...
(fabs): this.
From-SVN: r37413
2000-11-13 00:43:39 +00:00
Mark Mitchell
8d8523fe52
basic_file.h (__basic_file): Don't use __c_wfile_type when _GLIBCPP_USE_WCHAR_T is not defined.
...
* include/bits/basic_file.h (__basic_file): Don't use __c_wfile_type
when _GLIBCPP_USE_WCHAR_T is not defined.
From-SVN: r37400
2000-11-12 03:27:10 +00:00
Phil Edwards
585ddf9c47
codecvt.h (__iconv_adaptor): New adaptor function...
...
2000-11-10 Phil Edwards <pme@sources.redhat.com>
* include/bits/codecvt.h (__iconv_adaptor): New adaptor function,
courtesy of Alexandre Oliva, to handle const/non-const signatures.
(codecvt::do_out): Use.
(codecvt::do_in): And here.
From-SVN: r37379
2000-11-11 00:37:45 +00:00