From 1601a6a08bc01cdd222c85d0d845f1ef6332f640 Mon Sep 17 00:00:00 2001 From: "Loren J. Rittle" Date: Thu, 25 May 2000 10:06:30 +0000 Subject: [PATCH] alloc.h (__default_alloc_template): Only expose implementation-specific symbol, if it exists in the configuration. 2000-05-24 Loren J. Rittle * backward/alloc.h (__default_alloc_template): Only expose implementation-specific symbol, if it exists in the configuration. * backward/iostream.h (ends): Expose symbol. * backward/strstream.h: New file. * backward/stream.h: New file. * backward/ostream.h: New file. * backward/istream.h: New file. * backward/fstream.h: New file. * backward/complex.h: New file. * backward/iomanip.h: New file. * mkcheck.in (LIB_PATH): Add -R bits. * math/carg.c (carg): Replace __atan2 with atan2. From-SVN: r34161 --- libstdc++-v3/backward/alloc.h | 2 ++ libstdc++-v3/backward/complex.h | 47 +++++++++++++++++++++++++++++ libstdc++-v3/backward/fstream.h | 50 +++++++++++++++++++++++++++++++ libstdc++-v3/backward/iomanip.h | 48 +++++++++++++++++++++++++++++ libstdc++-v3/backward/iostream.h | 3 +- libstdc++-v3/backward/istream.h | 37 +++++++++++++++++++++++ libstdc++-v3/backward/ostream.h | 37 +++++++++++++++++++++++ libstdc++-v3/backward/stream.h | 37 +++++++++++++++++++++++ libstdc++-v3/backward/strstream.h | 44 +++++++++++++++++++++++++++ 9 files changed, 304 insertions(+), 1 deletion(-) create mode 100644 libstdc++-v3/backward/complex.h create mode 100644 libstdc++-v3/backward/fstream.h create mode 100644 libstdc++-v3/backward/iomanip.h create mode 100644 libstdc++-v3/backward/istream.h create mode 100644 libstdc++-v3/backward/ostream.h create mode 100644 libstdc++-v3/backward/stream.h create mode 100644 libstdc++-v3/backward/strstream.h diff --git a/libstdc++-v3/backward/alloc.h b/libstdc++-v3/backward/alloc.h index d0e4ba3766c..3ec1304a8e7 100644 --- a/libstdc++-v3/backward/alloc.h +++ b/libstdc++-v3/backward/alloc.h @@ -27,7 +27,9 @@ using __STD::__malloc_alloc_template; using __STD::malloc_alloc; using __STD::simple_alloc; using __STD::debug_alloc; +#ifndef __USE_MALLOC using __STD::__default_alloc_template; +#endif using __STD::alloc; using __STD::single_client_alloc; #ifdef __STL_STATIC_TEMPLATE_MEMBER_BUG diff --git a/libstdc++-v3/backward/complex.h b/libstdc++-v3/backward/complex.h new file mode 100644 index 00000000000..97e0852068b --- /dev/null +++ b/libstdc++-v3/backward/complex.h @@ -0,0 +1,47 @@ + +// Copyright (C) 2000 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_BACKWARD_COMPLEX_H +#define _CPP_BACKWARD_COMPLEX_H 1 + +#include +#include + +#ifdef __STL_USE_NAMESPACES +using __STD::complex; +#endif /* __STL_USE_NAMESPACES */ + +typedef complex float_complex; +typedef complex double_complex; +typedef complex long_double_complex; + +#endif /* _CPP_BACKWARD_COMPLEX_H */ + +// Local Variables: +// mode:C++ +// End: diff --git a/libstdc++-v3/backward/fstream.h b/libstdc++-v3/backward/fstream.h new file mode 100644 index 00000000000..a346faf994c --- /dev/null +++ b/libstdc++-v3/backward/fstream.h @@ -0,0 +1,50 @@ +// Copyright (C) 2000 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_BACKWARD_FSTREAM_H +#define _CPP_BACKWARD_FSTREAM_H 1 + +#include + +#ifdef __STL_USE_NAMESPACES +using __STD::ifstream; +using __STD::ofstream; +using __STD::fstream; + +#ifdef _GLIBCPP_USE_WCHAR_T +using __STD::wifstream; +using __STD::wofstream; +using __STD::wfstream; +#endif + +#endif /* __STL_USE_NAMESPACES */ + +#endif /* _CPP_BACKWARD_FSTREAM_H */ + +// Local Variables: +// mode:C++ +// End: diff --git a/libstdc++-v3/backward/iomanip.h b/libstdc++-v3/backward/iomanip.h new file mode 100644 index 00000000000..206a3880b66 --- /dev/null +++ b/libstdc++-v3/backward/iomanip.h @@ -0,0 +1,48 @@ + +// Copyright (C) 2000 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_BACKWARD_IOMANIP_H +#define _CPP_BACKWARD_IOMANIP_H 1 + +#include +#include + +#ifdef __STL_USE_NAMESPACES +using __STD::resetiosflags; +using __STD::setiosflags; +using __STD::setbase; +using __STD::setfill; +using __STD::setprecision; +using __STD::setw; +#endif /* __STL_USE_NAMESPACES */ + +#endif /* _CPP_BACKWARD_IOMANIP_H */ + +// Local Variables: +// mode:C++ +// End: diff --git a/libstdc++-v3/backward/iostream.h b/libstdc++-v3/backward/iostream.h index aab2e8f4580..2caee39adc4 100644 --- a/libstdc++-v3/backward/iostream.h +++ b/libstdc++-v3/backward/iostream.h @@ -1,5 +1,5 @@ -// Copyright (C) 1997-1999 Free Software Foundation, Inc. +// Copyright (C) 1997-1999, 2000 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 @@ -50,6 +50,7 @@ using __STD::wclog; #endif using __STD::endl; +using __STD::ends; #endif /* __STL_USE_NAMESPACES */ #endif /* _CPP_BACKWARD_IOSTREAM_H */ diff --git a/libstdc++-v3/backward/istream.h b/libstdc++-v3/backward/istream.h new file mode 100644 index 00000000000..f45709267eb --- /dev/null +++ b/libstdc++-v3/backward/istream.h @@ -0,0 +1,37 @@ +// Copyright (C) 2000 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_BACKWARD_ISTREAM_H +#define _CPP_BACKWARD_ISTREAM_H 1 + +#include + +#endif /* _CPP_BACKWARD_ISTREAM_H */ + +// Local Variables: +// mode:C++ +// End: diff --git a/libstdc++-v3/backward/ostream.h b/libstdc++-v3/backward/ostream.h new file mode 100644 index 00000000000..740588a277b --- /dev/null +++ b/libstdc++-v3/backward/ostream.h @@ -0,0 +1,37 @@ +// Copyright (C) 2000 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_BACKWARD_OSTREAM_H +#define _CPP_BACKWARD_OSTREAM_H 1 + +#include + +#endif /* _CPP_BACKWARD_OSTREAM_H */ + +// Local Variables: +// mode:C++ +// End: diff --git a/libstdc++-v3/backward/stream.h b/libstdc++-v3/backward/stream.h new file mode 100644 index 00000000000..f829b0dd577 --- /dev/null +++ b/libstdc++-v3/backward/stream.h @@ -0,0 +1,37 @@ +// Copyright (C) 2000 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_BACKWARD_STREAM_H +#define _CPP_BACKWARD_STREAM_H 1 + +#include + +#endif /* _CPP_BACKWARD_STREAM_H */ + +// Local Variables: +// mode:C++ +// End: diff --git a/libstdc++-v3/backward/strstream.h b/libstdc++-v3/backward/strstream.h new file mode 100644 index 00000000000..f693fcd54de --- /dev/null +++ b/libstdc++-v3/backward/strstream.h @@ -0,0 +1,44 @@ +// Copyright (C) 2000 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_BACKWARD_STRSTREAM_H +#define _CPP_BACKWARD_STRSTREAM_H 1 + +#include + +#ifdef __STL_USE_NAMESPACES +using __STD::strstreambuf; +using __STD::istrstream; +using __STD::ostrstream; +using __STD::strstream; +#endif /* __STL_USE_NAMESPACES */ + +#endif /* _CPP_BACKWARD_STRSTREAM_H */ + +// Local Variables: +// mode:C++ +// End: