summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_std
Commit message (Collapse)AuthorAgeFilesLines
...
* * include/c_std/std_cwchar.h (wcsstr): Correct signature.dannysmith2004-07-201-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84945 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Steven Bosscher <s.bosscher@student.tudelft.nl>paolo2004-03-111-2/+2
| | | | | | | | PR libstdc++/11706 * include/c_std/cmath.tcc (__cmath_power): Define inline. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79316 138bc75d-0d04-0410-961f-82ee72b054a4
* * acconfig.h: Add _GLIBCXX_USE_C99_MATH.mmitchel2003-12-291-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCXX_ENABLE_C99): Define GLIBCXX_USE_C99_MATH. * configure.ac: Define HAVE_S_ISREG and HAVE_S_IFREG when targeting newlib. * aclocal.m4: Regenerated. * config.h.in: Likewise. * configure: Likewise. * Makefile.in: Likewise. * include/Makefile.in: Likewise. * libmath/Makefile.in: Likewise. * libsupc++/Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. * src/Makefile.in: Likewise. * po/Makefile.in: Likewise. * include/c_std/std_cmath.h (_GLIBCXX_USE_C99): Replace with ... (_GLIBCXX_USE_C99_MATH): ... this. * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL for arm-none-elf. * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Likewise. * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Likewise. * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Likewise. * testsuite/27_io/basic_istream/readsome/char/6476-2.cc: Likewise. * testsuite/27_io/objects/char/9.cc: Likewise. * testsuite/ext/stdio_filebuf/char/10063-2.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75209 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/cmath.tcc, include/c_std/std_cassert.h,bernie2003-12-0910-120/+120
| | | | | | | | | | | include/c_std/std_cctype.h, include/c_std/std_cmath.h, include/c_std/std_cstddef.h, include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h, include/c_std/std_cstring.h, include/c_std/std_cwchar.h, include/c_std/std_cwctype.h: Remove trailing whitespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74458 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/std_cmath.h: Don't import C99's float transcendentalssayle2003-11-151-336/+87
| | | | | | | | | | | | | into the __gnu_cxx::__c99_binding namespace. (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp, ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using GCC's math builtins, i.e. __builtin_foo. * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl, ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl, ldexpf, ldexpl, modff, modfl): Provide stub implementations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73629 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-25 Brad Spencer <spencer@infointeractive.com>bkoz2003-09-252-6/+26
| | | | | | | | | | | | | | | | PR libstdc++/6072 * acinclude.m4: * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * crossconfig.m4: Add in wchar_t bits for solaris crosses. * config/io/basic_file_stdio.cc: Guard unistd.h. * include/c_compatibility/wchar.h: Guard extra wchar_t functionality. * include/c_std/std_cwchar.h: Same. * include/c_std/std_cwctype.h: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71795 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.bernie2003-09-061-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71127 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-07-302-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove. (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE. (_GLIBCXX_AT_AT): Remove. (__USE_MALLOC): Remove. * include/std/std_fstream.h: Modify. * include/bits/basic_ios.h: Same. * include/bits/valarray_array.h: Same. * include/c_std/std_cmath.h: Same. * include/c_std/cmath.tcc: Same. * include/std/std_vector.h: Same. * include/std/std_string.h: Same. * include/std/std_stack.h: Same. * include/std/std_queue.h: Same. * include/std/std_list.h: Same. * include/std/std_deque.h: Same. * include/std/std_streambuf.h: Same. * include/std/std_sstream.h: Same. * include/std/std_ostream.h: Same. * include/std/std_istream.h: Same. * include/bits/valarray_array.tcc: Same, format. * include/c/std_cctype.h: Fix include guards. * include/c/std_cerrno.h: Same. * include/c/std_cfloat.h: Same. * include/c/std_climits.h: Same. * include/c/std_clocale.h: Same. * include/c/std_cmath.h: Same. * include/c/std_csetjmp.h: Same. * include/c/std_csignal.h: Same. * include/c/std_cstdarg.h: Same. * include/c/std_cstddef.h: Same. * include/c/std_cstdio.h: Same. * include/c/std_cstdlib.h: Same. * include/c/std_cstring.h: Same. * include/c/std_ctime.h: Same. * include/c/std_cwchar.h: Same. * include/c/std_cwctype.h: Same. * include/c_std/cmath.tcc: Same. * include/c_std/std_cmath.h: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69961 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.sje2003-07-2317-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/c_std/std_cctype.h: Ditto. * include/c_std/std_cerrno.h: Ditto. * include/c_std/std_cfloat.h: Ditto. * include/c_std/std_climits.h: Ditto. * include/c_std/std_clocale.h: Ditto. * include/c_std/std_cmath.h: Ditto. * include/c_std/std_csetjmp.h: Ditto. * include/c_std/std_csignal.h: Ditto. * include/c_std/std_cstdarg.h: Ditto. * include/c_std/std_cstddef.h: Ditto. * include/c_std/std_cstdio.h: Ditto. * include/c_std/std_cstdlib.h: Ditto. * include/c_std/std_cstring.h: Ditto. * include/c_std/std_ctime.h: Ditto. * include/c_std/std_cwchar.h: Ditto. * include/c_std/std_cwctype.h: Ditto. * include/std/std_algorithm.h: Ditto. * include/std/std_bitset.h: Ditto. * include/std/std_complex.h: Ditto. * include/std/std_deque.h: Ditto. * include/std/std_fstream.h: Ditto. * include/std/std_functional.h: Ditto. * include/std/std_iomanip.h: Ditto. * include/std/std_ios.h: Ditto. * include/std/std_iosfwd.h: Ditto. * include/std/std_iostream.h: Ditto. * include/std/std_istream.h: Ditto. * include/std/std_iterator.h: Ditto. * include/std/std_limits.h: Ditto. * include/std/std_list.h: Ditto. * include/std/std_locale.h: Ditto. * include/std/std_map.h: Ditto. * include/std/std_memory.h: Ditto. * include/std/std_numeric.h: Ditto. * include/std/std_ostream.h: Ditto. * include/std/std_queue.h: Ditto. * include/std/std_set.h: Ditto. * include/std/std_sstream.h: Ditto. * include/std/std_stack.h: Ditto. * include/std/std_stdexcept.h: Ditto. * include/std/std_streambuf.h: Ditto. * include/std/std_string.h: Ditto. * include/std/std_utility.h: Ditto. * include/std/std_valarray.h: Ditto. * include/std/std_vector.h: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69705 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-07-0517-123/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move from CPP to CXX. * include/bits/c++config: Move to GLIBCXX from GLIBCPP. * testsuite/Makefile.am: Same. * testsuite/Makefile.in: Regenerate. * po/Makefile.am: Same. * po/Makefile.in: Regenerate. * libsupc++/Makefile.am: Same. * libsupc++/Makefile.in: Regenerate. * libmath/Makefile.am: Same. * libmath/Makefile.in: Regenerate. * include/Makefile.am: Same. * include/Makefile.in: Regenerate. * src/Makefile.am: Same. * src/Makefile.in: Regenerate. * acconfig.h: Same. * configure.host: Same. * configure.in: Same. * configure: Regenerate. * acinclude.m4: Same. * aclocal.m4: Same. * src: Change all files in this directory. * testsuite: Same. * include: Same, standardize include guards. * config: Same. * libsupc++: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68958 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/3181gdr2003-05-111-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h> (acos): Handle integer argument. (asin): Likewise. (atan): Likewise. (atan2): Likewise. (ceil): Likewise. (cos): Likewise. (cosh): Likewise. (exp): Likewise. (fabs): Likewise. (floor): Likewise. (frexp): Likewise. (ldexp): Likewise. (log): Likewise. (log10): Likewise. (sin): Likewise. (sinh): Likewise. (sqrt): Likewise. (tan): Likewise. (tanh): Likewise. * include/bits/cpp_type_traits.h (__are_same<>): New traits. (__enable_if): Likewise. * testsuite/26_numerics/cmath/overloads.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66681 138bc75d-0d04-0410-961f-82ee72b054a4
* * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.ljrittle2003-04-183-4/+53
| | | | | | | | | | | | | | | | | (_GLIBCPP_USE_C99_DYNAMIC): New macro. (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro. (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro. * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK): New macro. (_GLIBCPP_USE_C99_DYNAMIC): New macro. (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro. (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro. * include/c_std/std_cstdlib.h: Use new macros. * include/c_std/std_cstdio.h: Use new macros. * include/c_std/std_cwchar.h: Use new macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65778 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/std_cmath.h (C99 FP capture): Only undefine saidljrittle2003-04-181-3/+4
| | | | | | | C99 FP macros, if actually captured. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65777 138bc75d-0d04-0410-961f-82ee72b054a4
* libstdc++/7680ljrittle2003-04-151-19/+108
| | | | | | | | | | | | | | | | | | * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace. Populate it with multiple legal ways to obtain the C99 float transcendentals. Use them instead of direct global reference. (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC. * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro. (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro. (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro. * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro. (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro. * testsuite/26_numerics/c_math_dynamic.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65624 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-06-21 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-06-211-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/c_compatibility: New. * include/c_compatibility/assert.h: New. * include/c_compatibility/ctype.h: New. * include/c_compatibility/errno.h: New. * include/c_compatibility/float.h: New. * include/c_compatibility/iso646.h: New. * include/c_compatibility/limits.h: New. * include/c_compatibility/locale.h: New. * include/c_compatibility/math.h: New. * include/c_compatibility/setjmp.h: New. * include/c_compatibility/signal.h: New. * include/c_compatibility/stdarg.h: New. * include/c_compatibility/stddef.h: New. * include/c_compatibility/stdio.h: New. * include/c_compatibility/stdlib.h: New. * include/c_compatibility/string.h: New. * include/c_compatibility/time.h: New. * include/c_compatibility/wchar.h: New. * include/c_compatibility/wctype.h: New. * include/c/std_cerrno.h: Get out of the way... define errno. * include/c/std_cmath.h: Add abs, modf overloads. Undefine C99 isms. Still not sure how to deal with this sanely. * include/c/std_csetjmp.h: Tweak. * include/c/std_cwchar.h: Include cstddef for size_t. * include/c_std/std_cmath.h: Remove extra function. Pendantic std usage in testsuites. * testsuite/17_intro/header_cstdlib.cc (test01): Qualify ldiv_t with std. * testsuite/17_intro/header_cwchar.cc: Tweak. * testsuite/22_locale/codecvt_members_char_char.cc (test03): Use std::setlocale. * testsuite/22_locale/ctype_to_wchar_t.cc (test05): Same. * testsuite/22_locale/ctype_to_char.cc (test05): Same. * testsuite/22_locale/ctype_is_wchar_t.cc (test05): Same. * testsuite/22_locale/ctype_is_char.cc (test05): Same. * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Same. * testsuite/22_locale/time_get_members_wchar_t.cc (test08): Same. * testsuite/22_locale/time_get_members_char.cc (test08): Same. * testsuite/22_locale/time_put_members_wchar_t.cc (test04): Same. * testsuite/22_locale/time_put_members_char.cc (test04): Same. * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Same. * testsuite/22_locale/num_put_members_char.cc (test04): Same. * testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Same. * testsuite/22_locale/numpunct_members_char.cc (test03): Same. * testsuite/22_locale/num_get_members_wchar_t.cc: Same. * testsuite/22_locale/num_get_members_char.cc: Same. * testsuite/22_locale/money_put_members_wchar_t.cc (test07): Same. * testsuite/22_locale/money_put_members_char.cc (test07): Same. * testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Same. * testsuite/22_locale/moneypunct_members_char.cc (test03): Same. * testsuite/22_locale/money_get_members_wchar_t.cc (test08): Same. * testsuite/22_locale/money_get_members_char.cc (test08): Same. * testsuite/22_locale/messages_members_char.cc (test03): Same. * testsuite/22_locale/collate_members_wchar_t.cc (test04): Same. * testsuite/22_locale/collate_members_char.cc (test04): Same. * testsuite/26_numerics/fabs_inline.cc: Use std::printf. * testsuite/27_io/istream_seeks.cc (test02): Qualify abort. * testsuite/27_io/istream_extractor_arith.cc (test11): Qualify strtol. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54891 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/6501danglin2002-04-301-0/+1
| | | | | | | | * include/c_std/std_cctype.h: Include bits/c++config.h. * config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52970 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/std_cmath.h: To prevent problems overloadingmmitchel2002-03-291-51/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | g++ builtins, use the double variants from the global namespace before defining float and long double variants in std::. PR c++/5998: * decl.c (cxx_init_decl_processing): Re-enable built-in functions in the g++ front-end. (duplicate_decl): Allow redefinition of anticipated built-ins. Fix inlining problem by over-writing the old DECL_RTL. (lookup_namespace_name): Fail to find an identifier in the specified namespace if its still anticipated. (builtin_function_1): New function split out from builtin_function to create a builtin in the current namespace with given context. (builtin_function): Call builtin_function_1 to define the appropriate builtins in both the std and global namespaces. (select_decl): Don't test for anticipated decls here. (unqualified_namespace_lookup): Instead ignore them whilst searching through scopes and namespaces. * decl2.c (do_nonmember_using_decl): If a using declaration specifies an anticipated built-in function, mark it as no longer anticipated in that scope. (ambiguous_decl): Avoid resolving to an anticipated decl. * lex.c (do_scoped_id): Fail to find an identifier in the global namespace if its still anticipated. * g++.old-deja/g++.other/builtins5.C: New test. * g++.old-deja/g++.other/builtins6.C: New test. * g++.old-deja/g++.other/builtins7.C: New test. * g++.old-deja/g++.other/builtins8.C: New test. * g++.old-deja/g++.other/builtins9.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51568 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-26 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-03-2716-32/+32
| | | | | | | | | | | * include/c/: Guard with _CPP_. * include/c_std/: Same. * include/Makefile.am: Fixup install, link routines for null c_base_headers_extra scenarios. * include/Makefile.in: Regerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51431 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-22 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-03-2318-64/+86
| | | | | | | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_SUPP): Just test for signbit and __signbit directly. * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. * libmath/Makefile.am: Simplify. * libmath/Makefile.in: Regenerate. * include/c_std/std_cmath.h: Update paths for include of cmath.tcc. * include/Makefile.am: Clean up handling of extra "C" header files. Add hooks for "C" compatibility headers. * include/Makefile.in: Regenerate. * include/c/*: Formatting tweaks, cleanups. * include/c_std/*: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51220 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-11 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-03-121-1/+8
| | | | | | | | | | | * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * include/c_std/std_cwctype.h: Guard. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50628 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-28 Phil Edwards <pme@gcc.gnu.org>pme2002-01-2818-9/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets. * Makefile.in: Regenerate. * docs/doxygen/run_doxygen: Update, mostly for man pages. * docs/doxygen/Intro.3: Update. * docs/doxygen/TODO: Update. * docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx. * docs/doxygen/mainpage.doxy: Update. * docs/doxygen/user.cfg.in: Update for header rename. Also regenerate comments and variables with 1.2.12. * docs/doxygen/maint.cfg.in: Remove file. * include/bits/stl_relops.h: Doxygenate. * include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise. * include/c_std/std_cassert.h, include/c_std/std_cctype.h, include/c_std/std_cerrno.h, include/c_std/std_cfloat.h, include/c_std/std_ciso646.h, include/c_std/std_climits.h, include/c_std/std_clocale.h, include/c_std/std_cmath.h, include/c_std/std_csetjmp.h, include/c_std/std_csignal.h, include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h, include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h, include/c_std/std_cstring.h, include/c_std/std_ctime.h, include/c_std/std_cwchar.h, include/c_std/std_cwctype.h, include/ext/algorithm, include/ext/functional, include/ext/hash_map, include/ext/hash_set, include/ext/iterator, include/ext/memory, include/ext/numeric, include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h, include/ext/stl_hashtable.h, include/ext/stl_rope.h, include/std/std_algorithm.h, include/std/std_bitset.h, include/std/std_complex.h, include/std/std_deque.h, include/std/std_fstream.h, include/std/std_functional.h, include/std/std_iomanip.h, include/std/std_ios.h, include/std/std_iosfwd.h, include/std/std_iostream.h, include/std/std_istream.h, include/std/std_iterator.h, include/std/std_limits.h, include/std/std_list.h, include/std/std_locale.h, include/std/std_map.h, include/std/std_memory.h, include/std/std_numeric.h, include/std/std_ostream.h, include/std/std_queue.h, include/std/std_set.h, include/std/std_sstream.h, include/std/std_stack.h, include/std/std_stdexcept.h, include/std/std_streambuf.h, include/std/std_string.h, include/std/std_utility.h, include/std/std_valarray.h, include/std/std_vector.h: Add/correct @file doxygen hook. * include/ext/memory: Doxygenate most of rest of file. * libsupc++/exception: Doxygen output formatting. * libsupc++/new: Say which header it is. * testsuite/lib/libstdc++-v3-dg.exp: Fix spacing. * docs/html/19_diagnostics/howto.html: Describe concept-checks switch. * docs/html/23_containers/howto.html: Describe O(n) list::size(). * docs/html/27_io/howto.html: Also link to Langer and Kreft text. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49300 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-16 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-01-1718-0/+0
| | | | | | | | | | | | | | | | | | | | | | | * include/Makefile.am (c_base_headers_rename): New. (c_base_headers_extra): New. (stamp-c_base): Modify. (install-data-local): Use both. * include/Makefile.in: Regenerate. * include/c/[cctype ciso646 cmath cstdarg cstdlib cerrno climits csetjmp cstddef cstring cwchar cassert cfloat clocale csignal cstdio ctime cwctype]: Move to.. * include/c/std_*: Here. * include/c_std/[cctype ciso646 cmath cstdarg cstdlib cerrno climits csetjmp cstddef cstring cwchar cassert cfloat clocale csignal cstdio ctime cwctype]: Move to.. * include/c_std/std_*: Here. Alexandre Oliva <aoliva@redhat.com> * include/Makefile.am (.PRECIOUS): Add rule. * include/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48940 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-04 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-01-0419-7/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/Makefile.am (std_headers): Remove cXXX from list. (c_base_srcdir): No bits subdirectory. (c_base_builddir): Same. (c_base_headers): Adjust names, add ciso646. (bits_headers): Remove std_xxx.h headers. * include/Makefile.in: Regenerate. * include/ext/iterator: Adjust includes. * include/ext/ropeimpl.h: Same. * include/ext/stl_hash_fun.h: Same. * include/ext/algorithm: Same. * include/backward/bvector.h: Adjust includes. * include/backward/vector.h: Same. * include/backward/strstream: Same. * include/backward/streambuf.h: Same. * include/backward/stack.h: Same. * include/backward/set.h: Same. * include/backward/queue.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/iostream.h: Same. * include/backward/iomanip.h: Same. * include/backward/fstream.h: Same. * include/backward/deque.h: Same. * include/backward/complex.h: Same. * include/bits/std_algorithm.h: Move to... * include/std/algorithm: ...here. * include/bits/std_iosfwd.h, std_locale.h, std_stack.h, std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h, std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h, std_deque.h, std_istream.h, std_numeric.h, std_string.h, std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h, std_queue.h, std_valarray.h, std_functional.h, std_limits.h, std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h: Same. * include/c_std/bits/std_cassert.h: Move to... * include/c_std/cassert: Here. * include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h, std_cwctype.h: Same. * include/c_std/cmath: Adjust cmath.tcc include. * include/c_std/cstdlib: Adjust includes. * include/c_std/cwchar: Same. * include/c_std/ctime: Same. * include/c_std/cstring: Same. * include/c_std/cstdio: Same. * include/c_std/bits: Remove directory. * include/c/bits/std_cassert.h: Move to... * include/c/cassert: Here. * include/c/std_cctype.h, std_cerrno.h, std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h, std_cwctype.h: Same. * include/c/bits: Remove directory. * include/std/cwctype: Remove. * include/std/cwchar: Remove. * include/std/ctime: Remove. * include/std/cstring: Remove. * include/std/cstdlib: Remove. * include/std/cstdio: Remove. * include/std/cstddef: Remove. * include/std/cstdarg: Remove. * include/std/csignal: Remove. * include/std/csetjmp: Remove. * include/std/cmath: Remove. * include/std/clocale: Remove. * include/std/climits: Remove. * include/std/ciso646: Remove. * include/std/cfloat: Remove. * include/std/cerrno: Remove. * include/std/cctype: Remove. * include/std/cassert: Remove. * include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h> files and subsituting <.xxx> * include/bits/valarray_array.h: Same. * include/bits/stl_uninitialized.h: Same. * include/bits/stl_alloc.h: Same. * include/bits/stl_algobase.h: Same. * include/bits/sstream.tcc: Same. * include/bits/pthread_allocimpl.h: Same. * include/bits/ostream.tcc: Same. * include/bits/localefwd.h: Same. * include/bits/locale_facets.tcc: Same. * include/bits/locale_facets.h: Same. * include/bits/istream.tcc: Same. * include/bits/char_traits.h: Same. * include/bits/boost_concept_check.h: Same. * include/bits/basic_file.h: Same. * include/std/bitset: Same. * include/std/complex: Same. * include/std/fstream: Same. * include/std/functional: Same. * include/std/ios: Same. * include/std/iostream: Same. * include/std/ostream: Same. * include/std/sstream: Same. * include/std/streambuf: Same. * include/std/string: Same. * include/std/iterator: Same. * include/std/valarray: Same. * src/ios.cc: Adjust includes. * src/valarray-inst.cc: Same. * src/string-inst.cc: Same. * src/stl-inst.cc: Same. * src/stdexcept.cc: Same. * src/misc-inst.cc: Same. * src/localename.cc: Same. * src/locale-inst.cc: Same. * src/locale.cc: Same. * src/limits.cc: Same. * src/concept-inst.cc: Same. * src/complex_io.cc: Same. * src/codecvt.cc: Same. * src/bitset.cc: Same. * src/cmath.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48544 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-09-04 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-09-0417-17/+17
| | | | | | | * include/c_std/bits/std_c*.h: Don't use include_next. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45387 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-19 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-202-1/+4
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43466 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-10 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-111-56/+51
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43167 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-10 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-105-119/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43161 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-10 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-101-0/+2
| | | | | | | * include/c_std/bits/std_cstdio.h: Include cstddef for size_t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43128 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-095-12/+6
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43097 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-091-2/+0
| | | | | | | * include/c_std/bits/std_cctype.h: Remove isblank. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43078 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-095-11/+8
| | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43070 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-08 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-091-4/+4
| | | | | | | * include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43069 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-06-08 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-06-0817-526/+306
| | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43061 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-29 Gabriel Dos Reis <gdr@merlin.codesourcery.com>gdr2001-05-303-52/+53
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42707 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/bits/std_cmath.h (sqrt): #undef.gdr2001-05-261-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42622 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/bits/std_cmath.h: Tweak. #define away abs, cos,gdr2001-05-251-320/+287
| | | | | | | | fabs, sin, sqrt. They are now implemented in terms of __builtin_ variants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42595 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/bin/std_cstring.h: #define away all globalmmitchel2001-05-251-25/+100
| | | | | | | | | | | | | 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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42555 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-21 Stephen M. Webb <stephen@bregmasoft.com>bkoz2001-05-222-67/+55
| | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42421 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-08 Benjamin Kosnik <bkoz@fillmore.constant.com>bkoz2001-05-082-40/+67
| | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41919 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-25 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-04-263-1/+40
| | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41568 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/bits/std_cerrno.h (errno): Define macro fromljrittle2001-04-233-0/+15
| | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41507 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-19 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-04-203-45/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41451 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/bits/std_cmath.h: Get rid of C99 math macros.gdr2001-04-061-0/+18
| | | | | | | * testsuite/26_numerics/c99_macros.cc: Add test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41159 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-02 Stephen M. Webb <stephen@bregmasoft.com>bkoz2001-04-022-10/+60
| | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41019 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-06 Nathan Myers <ncm@cantrip.org>bkoz2001-03-061-10/+1
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40270 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-05 scott snyder <snyder@fnal.gov>bkoz2001-03-062-6/+6
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40254 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-02-0516-20/+200
| | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39468 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-01-29 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-01-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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::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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39347 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-01-11 Joseph S. Myers <jsm28@cam.ac.uk>bkoz2001-01-111-0/+1
| | | | | | | * include/c_std/bits/std_cstdio.h: Undef printf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38917 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/c_std/bits/std_ctime.h: Undefine difftime.robertl2001-01-091-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38817 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud