+2002-06-21 Benjamin Kosnik <bkoz@redhat.com>
+
+ * 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.
+
2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
* libsupc++/Makefile.am (libsupc__convenience_la_SOURCES): Add
// ISO C++ 14882: 19.3 Error numbers
//
+/** @file cerrno
+ * This is a Standard C++ Library file. You should @c #include this file
+ * in your programs, rather than any of the "*.h" implementation files.
+ *
+ * This is the C++ version of the Standard C Library header @c errno.h,
+ * and its contents are (mostly) the same as that header, but are all
+ * contained in the namespace @c std.
+ */
+
#ifndef _CPP_CERRNO
#define _CPP_CERRNO 1
#include_next <errno.h>
+// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
+#ifndef errno
+#define errno errno
+#endif
+
#endif
#pragma GCC system_header
+#include <bits/c++config.h>
+
#include_next <math.h>
+// Get rid of those macros defined in <math.h> in lieu of real functions.
+#undef abs
+#undef div
+#undef acos
+#undef asin
+#undef atan
+#undef atan2
+#undef ceil
+#undef cos
+#undef cosh
+#undef exp
+#undef fabs
+#undef floor
+#undef fmod
+#undef frexp
+#undef ldexp
+#undef log
+#undef log10
+#undef modf
+#undef pow
+#undef sin
+#undef sinh
+#undef sqrt
+#undef tan
+#undef tanh
+
+#undef fpclassify
+#undef isfinite
+#undef isinf
+#undef isnan
+#undef isnormal
+#undef signbit
+#undef isgreater
+#undef isgreaterequal
+#undef isless
+#undef islessequal
+#undef islessgreater
+#undef isunordered
+
+namespace std
+{
+ inline double
+ abs(double __x)
+ { return __builtin_fabs(__x); }
+
+ inline float
+ abs(float __x)
+ { return __builtin_fabsf(__x); }
+
+ inline long double
+ abs(long double __x)
+ { return __builtin_fabsl(__x); }
+
+#if _GLIBCPP_HAVE_MODFF
+ inline float
+ modf(float __x, float* __iptr) { return modff(__x, __iptr); }
+#else
+ inline float
+ modf(float __x, float* __iptr)
+ {
+ double __tmp;
+ double __res = modf(static_cast<double>(__x), &__tmp);
+ *__iptr = static_cast<float>(__tmp);
+ return __res;
+ }
+#endif
+
+#if _GLIBCPP_HAVE_MODFL
+ inline long double
+ modf(long double __x, long double* __iptr) { return modfl(__x, __iptr); }
+#else
+ inline long double
+ modf(long double __x, long double* __iptr)
+ {
+ double __tmp;
+ double __res = modf(static_cast<double>(__x), &__tmp);
+ * __iptr = static_cast<long double>(__tmp);
+ return __res;
+ }
+#endif
+}
#endif
#include_next <setjmp.h>
+// Get rid of those macros defined in <setjmp.h> in lieu of real functions.
+#undef longjmp
+
+// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
+#ifndef setjmp
+#define setjmp(env) std::setjmp (env)
+#endif
+
#endif
#include_next <stdio.h>
+// Get rid of those macros defined in <stdio.h> in lieu of real functions.
+#undef clearerr
+#undef fclose
+#undef feof
+#undef ferror
+#undef fflush
+#undef fgetc
+#undef fgetpos
+#undef fgets
+#undef fopen
+#undef fprintf
+#undef fputc
+#undef fputs
+#undef fread
+#undef freopen
+#undef fscanf
+#undef fseek
+#undef fsetpos
+#undef ftell
+#undef fwrite
+#undef getc
+#undef getchar
+#undef gets
+#undef perror
+#undef printf
+#undef putc
+#undef putchar
+#undef puts
+#undef remove
+#undef rename
+#undef rewind
+#undef scanf
+#undef setbuf
+#undef setvbuf
+#undef sprintf
+#undef sscanf
+#undef tmpfile
+#undef tmpnam
+#undef ungetc
+#undef vfprintf
+#undef vprintf
+#undef vsprintf
+
#endif
#pragma GCC system_header
#include <bits/c++config.h>
+#include <cstddef>
+#include <ctime>
#if _GLIBCPP_HAVE_WCHAR_H
#include_next <wchar.h>
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#include <cassert>
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_CTYPE_H_
+#define _CPP_CTYPE_H_ 1
+
+#include <cctype>
+
+using std::isalnum;
+using std::isalpha;
+using std::iscntrl;
+using std::isdigit;
+using std::isgraph;
+using std::islower;
+using std::isprint;
+using std::ispunct;
+using std::isspace;
+using std::isupper;
+using std::isxdigit;
+using std::tolower;
+using std::toupper;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_ERRNO_H_
+#define _CPP_ERRNO_H_ 1
+
+#include <cerrno>
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_FLOAT_H_
+#define _CPP_FLOAT_H_ 1
+
+#include <cfloat>
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_ISO646_H_
+#define _CPP_ISO646_H_ 1
+
+#include <ciso646>
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_LIMITS_H_
+#define _CPP_LIMITS_H_ 1
+
+#include <climits>
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_LOCALE_H_
+#define _CPP_LOCALE_H_ 1
+
+#include <clocale>
+
+using std::lconv;
+using std::setlocale;
+using std::localeconv;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_MATH_H_
+#define _CPP_MATH_H_ 1
+
+#include <cmath>
+
+using std::abs;
+using std::acos;
+using std::asin;
+using std::atan;
+using std::atan2;
+using std::cos;
+using std::sin;
+using std::tan;
+using std::cosh;
+using std::sinh;
+using std::tanh;
+using std::exp;
+using std::frexp;
+using std::ldexp;
+using std::log;
+using std::log10;
+using std::modf;
+using std::pow;
+using std::sqrt;
+using std::ceil;
+using std::fabs;
+using std::floor;
+using std::fmod;
+
+#if _GLIBCPP_USE_C99
+using std::fpclassify;
+using std::isfinite;
+using std::isinf;
+using std::isnan;
+using std::isnormal;
+using std::signbit;
+using std::isgreater;
+using std::isgreaterequal;
+using std::isless;
+using std::islessequal;
+using std::islessgreater;
+using std::isunordered;
+#endif
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_SETJMP_H_
+#define _CPP_SETJMP_H_ 1
+
+#include <csetjmp>
+
+using std::jmp_buf;
+using std::longjmp;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_SIGNAL_H_
+#define _CPP_SIGNAL_H_ 1
+
+#include <csignal>
+
+using std::sig_atomic_t;
+
+using std::raise;
+using std::signal;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_STDARG_H_
+#define _CPP_STDARG_H_ 1
+
+#include <cstdarg>
+
+using std::va_list;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_STDDEF_H_
+#define _CPP_STDDEF_H_ 1
+
+#include <cstddef>
+
+using std::size_t;
+using std::ptrdiff_t;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_STDIO_H_
+#define _CPP_STDIO_H_ 1
+
+#include <cstdio>
+
+using std::FILE;
+using std::fpos_t;
+
+using std::remove;
+using std::rename;
+using std::tmpfile;
+using std::tmpnam;
+using std::fclose;
+using std::fflush;
+using std::fopen;
+using std::freopen;
+using std::setbuf;
+using std::setvbuf;
+using std::fprintf;
+using std::fscanf;
+using std::printf;
+using std::scanf;
+using std::snprintf;
+using std::sprintf;
+using std::sscanf;
+using std::vfprintf;
+using std::vfscanf;
+using std::vprintf;
+using std::vscanf;
+using std::vsnprintf;
+using std::vsprintf;
+using std::vsscanf;
+using std::fgetc;
+using std::fgets;
+using std::fputc;
+using std::fputs;
+using std::getc;
+using std::getchar;
+using std::gets;
+using std::putc;
+using std::putchar;
+using std::puts;
+using std::ungetc;
+using std::fread;
+using std::fwrite;
+using std::fgetpos;
+using std::fseek;
+using std::fsetpos;
+using std::ftell;
+using std::rewind;
+using std::clearerr;
+using std::feof;
+using std::ferror;
+using std::perror;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_STDLIB_H_
+#define _CPP_STDLIB_H_ 1
+
+#include <cstdlib>
+
+using std::div_t;
+using std::ldiv_t;
+
+using std::abort;
+using std::abs;
+using std::atexit;
+using std::atof;
+using std::atoi;
+using std::atol;
+using std::bsearch;
+using std::calloc;
+using std::div;
+using std::exit;
+using std::free;
+using std::getenv;
+using std::labs;
+using std::ldiv;
+using std::malloc;
+using std::mblen;
+using std::mbstowcs;
+using std::mbtowc;
+using std::qsort;
+using std::rand;
+using std::realloc;
+using std::srand;
+using std::strtod;
+using std::strtol;
+using std::strtoul;
+using std::system;
+using std::wcstombs;
+using std::wctomb;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_STRING_H_
+#define _CPP_STRING_H_ 1
+
+#include <cstring>
+
+using std::memcpy;
+using std::memmove;
+using std::strcpy;
+using std::strncpy;
+using std::strcat;
+using std::strncat;
+using std::memcmp;
+using std::strcmp;
+using std::strcoll;
+using std::strncmp;
+using std::strxfrm;
+using std::memchr;
+using std::strchr;
+using std::strcspn;
+using std::strpbrk;
+using std::strrchr;
+using std::strspn;
+using std::strstr;
+using std::strtok;
+using std::memset;
+using std::strerror;
+using std::strlen;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_TIME_H_
+#define _CPP_TIME_H_ 1
+
+#include <ctime>
+
+// Get rid of those macros defined in <time.h> in lieu of real functions.
+#undef clock
+#undef difftime
+#undef mktime
+#undef time
+#undef asctime
+#undef ctime
+#undef gmtime
+#undef localtime
+#undef strftime
+
+using std::clock_t;
+using std::time_t;
+using std::tm;
+
+using std::clock;
+using std::difftime;
+using std::mktime;
+using std::time;
+using std::asctime;
+using std::ctime;
+using std::gmtime;
+using std::localtime;
+using std::strftime;
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_WCHAR_H_
+#define _CPP_WCHAR_H_ 1
+
+#include <cwchar>
+
+using std::mbstate_t;
+
+#if _GLIBCPP_USE_WCHAR_T
+using std::wint_t;
+
+using std::btowc;
+using std::wctob;
+using std::fgetwc;
+using std::fgetwc;
+using std::fgetws;
+using std::fputwc;
+using std::fputws;
+using std::fwide;
+using std::fwprintf;
+using std::fwscanf;
+using std::swprintf;
+using std::swscanf;
+using std::vfwprintf;
+using std::vfwscanf;
+using std::vswprintf;
+using std::vswscanf;
+using std::vwprintf;
+using std::vwscanf;
+using std::wprintf;
+using std::wscanf;
+using std::getwc;
+using std::getwchar;
+using std::mbsinit;
+using std::mbrlen;
+using std::mbrtowc;
+using std::mbsrtowcs;
+using std::wcsrtombs;
+using std::putwc;
+using std::putwchar;
+using std::ungetwc;
+using std::wcrtomb;
+using std::wcstod;
+using std::wcstof;
+using std::wcstol;
+using std::wcstoul;
+using std::wcscpy;
+using std::wcsncpy;
+using std::wcscat;
+using std::wcsncat;
+using std::wcscmp;
+using std::wcscoll;
+using std::wcsncmmp;
+using std::wcsxfrm;
+using std::wcschr;
+using std::wcscspn;
+using std::wcslen;
+using std::wcspbrk;
+using std::wcsrchr;
+using std::wcsspn;
+using std::wcsstr;
+using std::wcstok;
+using std::wmemchr;
+using std::wmemcmp;
+using std::wmemcpy;
+using std::wmemmove;
+using std::wmemset;
+using std::wcsftime;
+
+#if _GLIBCPP_USE_C99
+using std::wcstold;
+using std::wcstoll;
+using std::wcstoull;
+#endif
+
+#endif //_GLIBCPP_USE_WCHAR_T
+
+#endif
--- /dev/null
+// -*- C++ -*- compatibility header.
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction. Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License. This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+#ifndef _CPP_CWCTYPE_H_
+#define _CPP_CWCTYPE_H_ 1
+
+#include <cwctype>
+
+using std::wctype_t;
+using std::wctrans_t;
+using std::iswalpha;
+using std::iswupper;
+using std::iswlower;
+using std::iswdigit;
+using std::iswxdigit;
+using std::iswalnum;
+using std::iswspace;
+using std::iswpunct;
+using std::iswprint;
+using std::iswgraph;
+using std::iswcntrl;
+using std::iswctype;
+using std::towctrans;
+using std::towlower;
+using std::towupper;
+using std::wctrans;
+using std::wctype;
+
+#endif
// an `exported' forward declaration.
template<typename _Tp> _Tp __cmath_power(_Tp, unsigned int);
- template<typename _Tp>
- inline _Tp
- __cmath_abs(_Tp __x)
- {
- return __x < _Tp() ? -__x : __x;
- }
-
inline double
abs(double __x)
{ return __builtin_fabs(__x); }
// 2000-01-01 bkoz
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
void test01()
{
long a = std::abs(1L);
- ldiv_t b = std::div(2L, 1L);
+ std::div(2L, 1L);
+ std::ldiv_t b;
}
void test02()
{
- // Make sure size_t is in namespace std
+ // Make sure size_t is in namespace std.
std::size_t i = 5;
}
#include <cwchar>
-
int main(void)
{
// Make sure size_t is in namespace std
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
test03();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
test03();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
test02();
test03();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test05();
test06();
test07();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test05();
test06();
test07();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test03();
test05();
test06();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test03();
test05();
test06();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test02();
test04();
test05();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test02();
test04();
test05();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
test02();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
test02();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test04();
test05();
test06();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test04();
test05();
test06();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
test02();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
{
bool test = true;
- const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
if (tentLANG != NULL)
{
std::string preLANG = tentLANG;
test01();
test02();
- std::string postLANG = setlocale(LC_ALL, NULL);
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
VERIFY( preLANG == postLANG );
}
}
-// Copyright (C) 1999 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
double a = fabs (-2.4);
realfn myfn = fabs;
double b = myfn (-2.5);
- printf ("%f, %f, %p\n", a, b, myfn);
+ std::printf ("%f, %f, %p\n", a, b, myfn);
return 0;
}
// 1999-04-12 bkoz
-// Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// sanity check via 'C' library call
char* err;
- long l = strtol(cstrlit, &err, 0);
+ long l = std::strtol(cstrlit, &err, 0);
std::istringstream iss(cstrlit);
iss.setf(std::ios::fmtflags(0), std::ios::basefield);
// 2000-06-29 bkoz
-// Copyright (C) 2000, 2001 Free Software Foundation
+// Copyright (C) 2000, 2001, 2002 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
std::fstream ofstrm;
ofstrm.open("istream_seeks-3.txt", std::ios::out);
if (!ofstrm)
- abort();
+ std::abort();
write_rewind(ofstrm);
ofstrm.close();