diff options
Diffstat (limited to 'gcc-4.4.3/libstdc++-v3/include/c_compatibility')
25 files changed, 1499 insertions, 0 deletions
diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/assert.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/assert.h new file mode 100644 index 000000000..d5697eb60 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/assert.h @@ -0,0 +1,29 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file assert.h + * This is a Standard C++ Library header. + */ + +#include <cassert> diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/complex.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/complex.h new file mode 100644 index 000000000..7dc5926f1 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/complex.h @@ -0,0 +1,42 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file complex.h + * This is a Standard C++ Library header. + */ + +#include <bits/c++config.h> + +#ifdef __GXX_EXPERIMENTAL_CXX0X__ +# include <ccomplex> +#else +# if _GLIBCXX_HAVE_COMPLEX_H +# include_next <complex.h> +# endif +#endif + +#ifndef _GLIBCXX_COMPLEX_H +#define _GLIBCXX_COMPLEX_H 1 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/ctype.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/ctype.h new file mode 100644 index 000000000..49ee9fd14 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/ctype.h @@ -0,0 +1,50 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file ctype.h + * This is a Standard C++ Library header. + */ + +#include <cctype> + +#ifndef _GLIBCXX_CTYPE_H +#define _GLIBCXX_CTYPE_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +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 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/errno.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/errno.h new file mode 100644 index 000000000..1dbf49416 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/errno.h @@ -0,0 +1,34 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file errno.h + * This is a Standard C++ Library header. + */ + +#include <cerrno> + +#ifndef _GLIBCXX_ERRNO_H +#define _GLIBCXX_ERRNO_H 1 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/fenv.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/fenv.h new file mode 100644 index 000000000..5db6d9d01 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/fenv.h @@ -0,0 +1,58 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2007, 2008, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file fenv.h + * This is a Standard C++ Library header. + */ + +#ifndef _GLIBCXX_FENV_H +#define _GLIBCXX_FENV_H 1 + +#pragma GCC system_header + +#include <bits/c++config.h> +#if _GLIBCXX_HAVE_FENV_H +# include_next <fenv.h> +#endif + +#ifdef __GXX_EXPERIMENTAL_CXX0X__ +# if defined(_GLIBCXX_INCLUDE_AS_TR1) +# error C++0x header cannot be included from TR1 header +# endif +# if defined(_GLIBCXX_INCLUDE_AS_CXX0X) +# include <tr1_impl/cfenv> +# else +# define _GLIBCXX_INCLUDE_AS_CXX0X +# define _GLIBCXX_BEGIN_NAMESPACE_TR1 +# define _GLIBCXX_END_NAMESPACE_TR1 +# define _GLIBCXX_TR1 +# include <tr1_impl/cfenv> +# undef _GLIBCXX_TR1 +# undef _GLIBCXX_END_NAMESPACE_TR1 +# undef _GLIBCXX_BEGIN_NAMESPACE_TR1 +# undef _GLIBCXX_INCLUDE_AS_CXX0X +# endif +#endif + +#endif // _GLIBCXX_FENV_H diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/float.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/float.h new file mode 100644 index 000000000..e65386fe6 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/float.h @@ -0,0 +1,34 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file float.h + * This is a Standard C++ Library header. + */ + +#include <cfloat> + +#ifndef _GLIBCXX_FLOAT_H +#define _GLIBCXX_FLOAT_H 1 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/inttypes.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/inttypes.h new file mode 100644 index 000000000..31fd43169 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/inttypes.h @@ -0,0 +1,76 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2007, 2008, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file inttypes.h + * This is a Standard C++ Library header. + */ + +#ifndef _GLIBCXX_INTTYPES_H +#define _GLIBCXX_INTTYPES_H 1 + +#pragma GCC system_header + +#include <bits/c++config.h> + +#ifdef __GXX_EXPERIMENTAL_CXX0X__ + +// For 8.11.1/1 (see C99, Note 184) +# if _GLIBCXX_HAVE_INTTYPES_H +# ifndef __STDC_FORMAT_MACROS +# define _UNDEF__STDC_FORMAT_MACROS +# define __STDC_FORMAT_MACROS +# endif +# include_next <inttypes.h> +# ifdef _UNDEF__STDC_FORMAT_MACROS +# undef __STDC_FORMAT_MACROS +# undef _UNDEF__STDC_FORMAT_MACROS +# endif +# endif + +# if defined(_GLIBCXX_INCLUDE_AS_TR1) +# error C++0x header cannot be included from TR1 header +# endif +# if defined(_GLIBCXX_INCLUDE_AS_CXX0X) +# include <tr1_impl/cinttypes> +# else +# define _GLIBCXX_INCLUDE_AS_CXX0X +# define _GLIBCXX_BEGIN_NAMESPACE_TR1 +# define _GLIBCXX_END_NAMESPACE_TR1 +# define _GLIBCXX_TR1 +# include <tr1_impl/cinttypes> +# undef _GLIBCXX_TR1 +# undef _GLIBCXX_END_NAMESPACE_TR1 +# undef _GLIBCXX_BEGIN_NAMESPACE_TR1 +# undef _GLIBCXX_INCLUDE_AS_CXX0X +# endif + +#else + +# if _GLIBCXX_HAVE_INTTYPES_H +# include_next <inttypes.h> +# endif + +#endif // __GXX_EXPERIMENTAL_CXX0X__ + +#endif // _GLIBCXX_INTTYPES_H diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/iso646.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/iso646.h new file mode 100644 index 000000000..c2ad80689 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/iso646.h @@ -0,0 +1,34 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file iso646.h + * This is a Standard C++ Library header. + */ + +#include <ciso646> + +#ifndef _GLIBCXX_ISO646_H +#define _GLIBCXX_ISO646_H 1 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/limits.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/limits.h new file mode 100644 index 000000000..95d91f0e6 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/limits.h @@ -0,0 +1,34 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file limits.h + * This is a Standard C++ Library header. + */ + +#include <climits> + +#ifndef _GLIBCXX_LIMITS_H +#define _GLIBCXX_LIMITS_H 1 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/locale.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/locale.h new file mode 100644 index 000000000..c0d4ae1cf --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/locale.h @@ -0,0 +1,40 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file locale.h + * This is a Standard C++ Library header. + */ + +#include <clocale> + +#ifndef _GLIBCXX_LOCALE_H +#define _GLIBCXX_LOCALE_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +using std::lconv; +using std::setlocale; +using std::localeconv; +#endif + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/math.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/math.h new file mode 100644 index 000000000..a7518d240 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/math.h @@ -0,0 +1,77 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +// 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file math.h + * This is a Standard C++ Library header. + */ + +#include <cmath> + +#ifndef _GLIBCXX_MATH_H +#define _GLIBCXX_MATH_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +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 _GLIBCXX_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 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/setjmp.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/setjmp.h new file mode 100644 index 000000000..9293551f1 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/setjmp.h @@ -0,0 +1,39 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file setjmp.h + * This is a Standard C++ Library header. + */ + +#include <csetjmp> + +#ifndef _GLIBCXX_SETJMP_H +#define _GLIBCXX_SETJMP_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +using std::jmp_buf; +using std::longjmp; +#endif + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/signal.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/signal.h new file mode 100644 index 000000000..47697ca38 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/signal.h @@ -0,0 +1,40 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file signal.h + * This is a Standard C++ Library header. + */ + +#include <csignal> + +#ifndef _GLIBCXX_SIGNAL_H +#define _GLIBCXX_SIGNAL_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +using std::sig_atomic_t; +using std::raise; +using std::signal; +#endif + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdarg.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdarg.h new file mode 100644 index 000000000..dc5e9d4e2 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdarg.h @@ -0,0 +1,38 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file stdarg.h + * This is a Standard C++ Library header. + */ + +#include <cstdarg> + +#ifndef _GLIBCXX_STDARG_H +#define _GLIBCXX_STDARG_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +using std::va_list; +#endif + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdatomic.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdatomic.h new file mode 100644 index 000000000..ecbacc951 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdatomic.h @@ -0,0 +1,221 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2008, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file stdatomic.h + * This is a Standard C++ Library header. + */ + +#include <bits/c++config.h> +#include <stddef.h> +#include <stdbool.h> // XXX need to define bool w/o stdbool.h in tr1/cstdbool + +#ifndef _GLIBCXX_STDATOMIC_H +#define _GLIBCXX_STDATOMIC_H 1 + +_GLIBCXX_BEGIN_NAMESPACE(std) +_GLIBCXX_BEGIN_EXTERN_C + + /** + * @defgroup atomics Atomics + * + * Components for performing atomic operations. + * @{ + */ + + /// Enumeration for memory_order + typedef enum memory_order + { + memory_order_relaxed, + memory_order_consume, + memory_order_acquire, + memory_order_release, + memory_order_acq_rel, + memory_order_seq_cst + } memory_order; + + // Base for atomic_flag. + typedef struct __atomic_flag_base + { + bool _M_i; + } __atomic_flag_base; + +#define ATOMIC_FLAG_INIT { false } + + /// 29.2 Lock-free Property +#if defined(_GLIBCXX_ATOMIC_BUILTINS_1) && defined(_GLIBCXX_ATOMIC_BUILTINS_2) \ + && defined(_GLIBCXX_ATOMIC_BUILTINS_4) && defined(_GLIBCXX_ATOMIC_BUILTINS_8) +# define _GLIBCXX_ATOMIC_PROPERTY 2 +# define _GLIBCXX_ATOMIC_NAMESPACE __atomic2 +#elif defined(_GLIBCXX_ATOMIC_BUILTINS_1) +# define _GLIBCXX_ATOMIC_PROPERTY 1 +# define _GLIBCXX_ATOMIC_NAMESPACE __atomic1 +#else +# define _GLIBCXX_ATOMIC_PROPERTY 0 +# define _GLIBCXX_ATOMIC_NAMESPACE __atomic0 +#endif + +#define ATOMIC_INTEGRAL_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY +#define ATOMIC_ADDRESS_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY + + // Switch atomic integral base types based on C or C++. In + // addition, for "C" only provide type-generic macros for atomic + // operations. (As C++ accomplishes the same thing with sets of + // overloaded functions. +#ifdef __cplusplus + inline namespace _GLIBCXX_ATOMIC_NAMESPACE { } +# include <bits/atomicfwd_cxx.h> +#else +# include <bits/atomicfwd_c.h> +#endif + + // Typedefs for other atomic integral types. + typedef atomic_schar atomic_int_least8_t; + typedef atomic_uchar atomic_uint_least8_t; + typedef atomic_short atomic_int_least16_t; + typedef atomic_ushort atomic_uint_least16_t; + typedef atomic_int atomic_int_least32_t; + typedef atomic_uint atomic_uint_least32_t; + typedef atomic_llong atomic_int_least64_t; + typedef atomic_ullong atomic_uint_least64_t; + + typedef atomic_schar atomic_int_fast8_t; + typedef atomic_uchar atomic_uint_fast8_t; + typedef atomic_short atomic_int_fast16_t; + typedef atomic_ushort atomic_uint_fast16_t; + typedef atomic_int atomic_int_fast32_t; + typedef atomic_uint atomic_uint_fast32_t; + typedef atomic_llong atomic_int_fast64_t; + typedef atomic_ullong atomic_uint_fast64_t; + + typedef atomic_long atomic_intptr_t; + typedef atomic_ulong atomic_uintptr_t; + + typedef atomic_long atomic_ssize_t; + typedef atomic_ulong atomic_size_t; + + typedef atomic_llong atomic_intmax_t; + typedef atomic_ullong atomic_uintmax_t; + + typedef atomic_long atomic_ptrdiff_t; + + // Accessor functions for base atomic_flag type. + bool + atomic_flag_test_and_set_explicit(volatile __atomic_flag_base*, memory_order); + + inline bool + atomic_flag_test_and_set(volatile __atomic_flag_base* __a) + { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } + + void + atomic_flag_clear_explicit(volatile __atomic_flag_base*, memory_order); + + inline void + atomic_flag_clear(volatile __atomic_flag_base* __a) + { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } + + void + __atomic_flag_wait_explicit(volatile __atomic_flag_base*, memory_order); + + volatile __atomic_flag_base* + __atomic_flag_for_address(const volatile void* __z) __attribute__((const)); + + // Implementation specific defines. +#define _ATOMIC_LOAD_(__a, __x) \ + ({ volatile __typeof__ _ATOMIC_MEMBER_* __p = &_ATOMIC_MEMBER_; \ + volatile atomic_flag* __g = __atomic_flag_for_address(__p); \ + __atomic_flag_wait_explicit(__g, __x); \ + __typeof__ _ATOMIC_MEMBER_ __r = *__p; \ + atomic_flag_clear_explicit(__g, __x); \ + __r; }) + +#define _ATOMIC_STORE_(__a, __m, __x) \ + ({ volatile __typeof__ _ATOMIC_MEMBER_* __p = &_ATOMIC_MEMBER_; \ + __typeof__(__m) __v = (__m); \ + volatile atomic_flag* __g = __atomic_flag_for_address(__p); \ + __atomic_flag_wait_explicit(__g, __x); \ + *__p = __v; \ + atomic_flag_clear_explicit(__g, __x); \ + __v; }) + +#define _ATOMIC_MODIFY_(__a, __o, __m, __x) \ + ({ volatile __typeof__ _ATOMIC_MEMBER_* __p = &_ATOMIC_MEMBER_; \ + __typeof__(__m) __v = (__m); \ + volatile atomic_flag* __g = __atomic_flag_for_address(__p); \ + __atomic_flag_wait_explicit(__g, __x); \ + __typeof__ _ATOMIC_MEMBER_ __r = *__p; \ + *__p __o __v; \ + atomic_flag_clear_explicit(__g, __x); \ + __r; }) + +#define _ATOMIC_CMPEXCHNG_(__a, __e, __m, __x) \ + ({ volatile __typeof__ _ATOMIC_MEMBER_* __p = &_ATOMIC_MEMBER_; \ + __typeof__(__e) __q = (__e); \ + __typeof__(__m) __v = (__m); \ + bool __r; \ + volatile atomic_flag* __g = __atomic_flag_for_address(__p); \ + __atomic_flag_wait_explicit(__g, __x); \ + __typeof__ _ATOMIC_MEMBER_ __t__ = *__p; \ + if (__t__ == *__q) { *__p = __v; __r = true; } \ + else { *__q = __t__; __r = false; } \ + atomic_flag_clear_explicit(__g, __x); \ + __r; }) + + // @} group atomics + +_GLIBCXX_END_EXTERN_C +_GLIBCXX_END_NAMESPACE + +// Inject into global namespace. +#ifdef __cplusplus + +#include <cstdatomic> + +using std::memory_order; +using std::memory_order_relaxed; +using std::memory_order_consume; +using std::memory_order_acquire; +using std::memory_order_release; +using std::memory_order_acq_rel; +using std::memory_order_seq_cst; +using std::atomic_flag; +using std::atomic_bool; +using std::atomic_char; +using std::atomic_schar; +using std::atomic_uchar; +using std::atomic_short; +using std::atomic_ushort; +using std::atomic_int; +using std::atomic_uint; +using std::atomic_long; +using std::atomic_ulong; +using std::atomic_llong; +using std::atomic_ullong; +using std::atomic_wchar_t; +using std::atomic_char16_t; +using std::atomic_char32_t; +using std::atomic_address; +using std::atomic; +#endif + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdbool.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdbool.h new file mode 100644 index 000000000..27485d99d --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdbool.h @@ -0,0 +1,42 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file stdbool.h + * This is a Standard C++ Library header. + */ + +#include <bits/c++config.h> + +#ifdef __GXX_EXPERIMENTAL_CXX0X__ +# include <cstdbool> +#else +# if _GLIBCXX_HAVE_STDBOOL_H +# include_next <stdbool.h> +# endif +#endif + +#ifndef _GLIBCXX_STDBOOL_H +#define _GLIBCXX_STDBOOL_H 1 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stddef.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stddef.h new file mode 100644 index 000000000..589f1e2dc --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stddef.h @@ -0,0 +1,39 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file stddef.h + * This is a Standard C++ Library header. + */ + +#include <cstddef> + +#ifndef _GLIBCXX_STDDEF_H +#define _GLIBCXX_STDDEF_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +using std::size_t; +using std::ptrdiff_t; +#endif + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdint.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdint.h new file mode 100644 index 000000000..78a66d0d1 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdint.h @@ -0,0 +1,84 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2007, 2008, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file stdint.h + * This is a Standard C++ Library header. + */ + +#ifndef _GLIBCXX_STDINT_H +#define _GLIBCXX_STDINT_H 1 + +#pragma GCC system_header + +#include <bits/c++config.h> + +#ifdef __GXX_EXPERIMENTAL_CXX0X__ + +// For 8.22.1/1 (see C99, Notes 219, 220, 222) +# if _GLIBCXX_HAVE_STDINT_H +# ifndef __STDC_LIMIT_MACROS +# define _UNDEF__STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS +# endif +# ifndef __STDC_CONSTANT_MACROS +# define _UNDEF__STDC_CONSTANT_MACROS +# define __STDC_CONSTANT_MACROS +# endif +# include_next <stdint.h> +# ifdef _UNDEF__STDC_LIMIT_MACROS +# undef __STDC_LIMIT_MACROS +# undef _UNDEF__STDC_LIMIT_MACROS +# endif +# ifdef _UNDEF__STDC_CONSTANT_MACROS +# undef __STDC_CONSTANT_MACROS +# undef _UNDEF__STDC_CONSTANT_MACROS +# endif +# endif + +# if defined(_GLIBCXX_INCLUDE_AS_TR1) +# error C++0x header cannot be included from TR1 header +# endif +# if defined(_GLIBCXX_INCLUDE_AS_CXX0X) +# include <tr1_impl/cstdint> +# else +# define _GLIBCXX_INCLUDE_AS_CXX0X +# define _GLIBCXX_BEGIN_NAMESPACE_TR1 +# define _GLIBCXX_END_NAMESPACE_TR1 +# define _GLIBCXX_TR1 +# include <tr1_impl/cstdint> +# undef _GLIBCXX_TR1 +# undef _GLIBCXX_END_NAMESPACE_TR1 +# undef _GLIBCXX_BEGIN_NAMESPACE_TR1 +# undef _GLIBCXX_INCLUDE_AS_CXX0X +# endif + +#else + +# if _GLIBCXX_HAVE_STDINT_H +# include_next <stdint.h> +# endif + +#endif // __GXX_EXPERIMENTAL_CXX0X__ + +#endif // _GLIBCXX_STDINT_H diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdio.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdio.h new file mode 100644 index 000000000..51a447457 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdio.h @@ -0,0 +1,86 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file stdio.h + * This is a Standard C++ Library header. + */ + +#include <cstdio> + +#ifndef _GLIBCXX_STDIO_H +#define _GLIBCXX_STDIO_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +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 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdlib.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdlib.h new file mode 100644 index 000000000..a8c788ac2 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/stdlib.h @@ -0,0 +1,68 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file stdlib.h + * This is a Standard C++ Library header. + */ + +#include <cstdlib> + +#ifndef _GLIBCXX_STDLIB_H +#define _GLIBCXX_STDLIB_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +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 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/string.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/string.h new file mode 100644 index 000000000..fdb92a8b0 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/string.h @@ -0,0 +1,59 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file string.h + * This is a Standard C++ Library header. + */ + +#include <cstring> + +#ifndef _GLIBCXX_STRING_H +#define _GLIBCXX_STRING_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +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 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/tgmath.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/tgmath.h new file mode 100644 index 000000000..3d84d37a9 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/tgmath.h @@ -0,0 +1,42 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file tgmath.h + * This is a Standard C++ Library header. + */ + +#include <bits/c++config.h> + +#ifdef __GXX_EXPERIMENTAL_CXX0X__ +# include <ctgmath> +#else +# if _GLIBCXX_HAVE_TGMATH_H +# include_next <tgmath.h> +# endif +#endif + +#ifndef _GLIBCXX_TGMATH_H +#define _GLIBCXX_TGMATH_H 1 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/time.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/time.h new file mode 100644 index 000000000..96390df78 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/time.h @@ -0,0 +1,61 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file time.h + * This is a Standard C++ Library header. + */ + +#include <ctime> + +#ifndef _GLIBCXX_TIME_H +#define _GLIBCXX_TIME_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +// 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 + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/wchar.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/wchar.h new file mode 100644 index 000000000..c4c05a121 --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/wchar.h @@ -0,0 +1,116 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2003, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file wchar.h + * This is a Standard C++ Library header. + */ + +#include <cwchar> + +#ifndef _GLIBCXX_WCHAR_H +#define _GLIBCXX_WCHAR_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +using std::mbstate_t; + +#if _GLIBCXX_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; +#if _GLIBCXX_HAVE_VFWSCANF +using std::vfwscanf; +#endif +using std::vswprintf; +#if _GLIBCXX_HAVE_VSWSCANF +using std::vswscanf; +#endif +using std::vwprintf; +#if _GLIBCXX_HAVE_VWSCANF +using std::vwscanf; +#endif +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; +#if _GLIBCXX_HAVE_WCSTOF +using std::wcstof; +#endif +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 _GLIBCXX_USE_C99 +using std::wcstold; +using std::wcstoll; +using std::wcstoull; +#endif + +#endif //_GLIBCXX_USE_WCHAR_T + +#endif + +#endif diff --git a/gcc-4.4.3/libstdc++-v3/include/c_compatibility/wctype.h b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/wctype.h new file mode 100644 index 000000000..33ae5b62f --- /dev/null +++ b/gcc-4.4.3/libstdc++-v3/include/c_compatibility/wctype.h @@ -0,0 +1,56 @@ +// -*- C++ -*- compatibility header. + +// Copyright (C) 2002, 2007, 2009 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 3, 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. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// <http://www.gnu.org/licenses/>. + +/** @file wctype.h + * This is a Standard C++ Library header. + */ + +#include <cwctype> + +#ifndef _GLIBCXX_CWCTYPE_H +#define _GLIBCXX_CWCTYPE_H 1 + +#ifdef _GLIBCXX_NAMESPACE_C +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 + +#endif |