From d5587eca17799a4737e2134b1fc4f153cfbed341 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Sat, 7 Oct 2000 18:49:33 +0000 Subject: [PATCH] acinclude.m4: Remove CPU_FLAGS 2000-10-07 Benjamin Kosnik * acinclude.m4: Remove CPU_FLAGS * libio/Makefile.am: Here too. * Makefile.am: Here too. * src/Makefile.am (CONFIG_INCLUDES): Remove. (INCLUDES): Remove CONFIG_INCLUDES. (cpu_headers): Remove. (myinstallheaders): Remove cpu_headers. (generated_headers): Rename to build_headers. (build_headers): Add atomicity.h, ctype_base.h, ctype_specializations.h. * config/os: New directory. * config/aix: Move to... * config/bsd: Move to... * config/generic: Move to... * config/gnu-linux: Move to... * config/irix: Move to... * config/newlib: Move to... * config/solaris: Move to... * config/os/*: Here. From-SVN: r36777 --- libstdc++-v3/config/aix/bits/ctype_base.h | 62 ------------- .../config/aix/bits/ctype_specializations.h | 76 ---------------- libstdc++-v3/config/aix/ctype.cc | 71 --------------- libstdc++-v3/config/bsd/bits/ctype_base.h | 78 ---------------- .../config/bsd/bits/ctype_specializations.h | 78 ---------------- libstdc++-v3/config/bsd/ctype.cc | 71 --------------- libstdc++-v3/config/generic/bits/ctype_base.h | 59 ------------- .../generic/bits/ctype_specializations.h | 72 --------------- libstdc++-v3/config/generic/ctype.cc | 71 --------------- .../config/gnu-linux/bits/ctype_base.h | 78 ---------------- .../gnu-linux/bits/ctype_specializations.h | 72 --------------- libstdc++-v3/config/gnu-linux/ctype.cc | 88 ------------------- libstdc++-v3/config/irix/bits/ctype_base.h | 60 ------------- .../config/irix/bits/ctype_specializations.h | 73 --------------- libstdc++-v3/config/irix/ctype.cc | 45 ---------- libstdc++-v3/config/newlib/bits/ctype_base.h | 61 ------------- .../newlib/bits/ctype_specializations.h | 73 --------------- libstdc++-v3/config/newlib/ctype.cc | 78 ---------------- .../solaris/solaris2.5/bits/ctype_base.h | 56 ------------ .../solaris2.5/bits/ctype_specializations.h | 73 --------------- .../config/solaris/solaris2.5/ctype.cc | 72 --------------- .../solaris/solaris2.6/bits/ctype_base.h | 58 ------------ .../solaris2.6/bits/ctype_specializations.h | 73 --------------- .../config/solaris/solaris2.6/ctype.cc | 71 --------------- .../solaris/solaris2.7/bits/ctype_base.h | 58 ------------ .../solaris2.7/bits/ctype_specializations.h | 73 --------------- .../config/solaris/solaris2.7/ctype.cc | 73 --------------- 27 files changed, 1873 deletions(-) delete mode 100644 libstdc++-v3/config/aix/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/aix/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/aix/ctype.cc delete mode 100644 libstdc++-v3/config/bsd/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/bsd/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/bsd/ctype.cc delete mode 100644 libstdc++-v3/config/generic/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/generic/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/generic/ctype.cc delete mode 100644 libstdc++-v3/config/gnu-linux/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/gnu-linux/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/gnu-linux/ctype.cc delete mode 100644 libstdc++-v3/config/irix/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/irix/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/irix/ctype.cc delete mode 100644 libstdc++-v3/config/newlib/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/newlib/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/newlib/ctype.cc delete mode 100644 libstdc++-v3/config/solaris/solaris2.5/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/solaris/solaris2.5/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/solaris/solaris2.5/ctype.cc delete mode 100644 libstdc++-v3/config/solaris/solaris2.6/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/solaris/solaris2.6/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/solaris/solaris2.6/ctype.cc delete mode 100644 libstdc++-v3/config/solaris/solaris2.7/bits/ctype_base.h delete mode 100644 libstdc++-v3/config/solaris/solaris2.7/bits/ctype_specializations.h delete mode 100644 libstdc++-v3/config/solaris/solaris2.7/ctype.cc diff --git a/libstdc++-v3/config/aix/bits/ctype_base.h b/libstdc++-v3/config/aix/bits/ctype_base.h deleted file mode 100644 index bae6bb4a458..00000000000 --- a/libstdc++-v3/config/aix/bits/ctype_base.h +++ /dev/null @@ -1,62 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 2000, 1999 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - struct ctype_base - { - typedef unsigned char mask; - // Non-standard typedefs. - typedef const int* __to_type; - - enum - { - space = _ISSPACE, - print = _ISPRINT, - cntrl = _ISCNTRL, - upper = _ISUPPER, - lower = _ISLOWER, - alpha = _ISALPHA, - digit = _ISDIGIT, - punct = _ISPUNCT, - xdigit = _ISXDIGIT, - alnum = _ISALNUM, - graph = _ISGRAPH - }; - }; - - - - - - diff --git a/libstdc++-v3/config/aix/bits/ctype_specializations.h b/libstdc++-v3/config/aix/bits/ctype_specializations.h deleted file mode 100644 index 2083a174a4b..00000000000 --- a/libstdc++-v3/config/aix/bits/ctype_specializations.h +++ /dev/null @@ -1,76 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return _IS(__c, __m); } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = __OBJ_DATA(__lc_ctype)->mask[*__low++]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !this->is(__m, *__low)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && this->is(__m, *__low) != 0) - ++__low; - return __low; - } - - - - - - - - - diff --git a/libstdc++-v3/config/aix/ctype.cc b/libstdc++-v3/config/aix/ctype.cc deleted file mode 100644 index 67972999ee1..00000000000 --- a/libstdc++-v3/config/aix/ctype.cc +++ /dev/null @@ -1,71 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) throw() - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_ctable(NULL), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { return _toupper(__c); } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = this->do_toupper(*__low); - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { return _tolower(__a); } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = this->do_tolower(*__low); - ++__low; - } - return __high; - } diff --git a/libstdc++-v3/config/bsd/bits/ctype_base.h b/libstdc++-v3/config/bsd/bits/ctype_base.h deleted file mode 100644 index 145321f5fee..00000000000 --- a/libstdc++-v3/config/bsd/bits/ctype_base.h +++ /dev/null @@ -1,78 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h on FreeBSD 3.4, -// 4.0 and all versions of the CVS managed file at: -// :pserver:anoncvs@anoncvs.freebsd.org:/home/ncvs/src/include/ctype.h -// which should cover most classic BSD configurations - - struct ctype_base - { - typedef unsigned long mask; - // Non-standard typedefs. - typedef const int* __to_type; - - enum - { -#ifdef _CTYPE_S - // FreeBSD 4.0 uses this style of define. - space = _CTYPE_S, - print = _CTYPE_R, - cntrl = _CTYPE_C, - upper = _CTYPE_U, - lower = _CTYPE_L, - alpha = _CTYPE_A, - digit = _CTYPE_D, - punct = _CTYPE_P, - xdigit = _CTYPE_X, - alnum = _CTYPE_A | _CTYPE_D, - graph = _CTYPE_G -#else - // Other BSD's, including Free BSD 3.4, uses this style of define. - space = _S, - print = _R, - cntrl = _C, - upper = _U, - lower = _L, - alpha = _A, - digit = _D, - punct = _P, - xdigit = _X, - alnum = _A | _D, - graph = _G -#endif - }; - }; - - - diff --git a/libstdc++-v3/config/bsd/bits/ctype_specializations.h b/libstdc++-v3/config/bsd/bits/ctype_specializations.h deleted file mode 100644 index c2a49c4025d..00000000000 --- a/libstdc++-v3/config/bsd/bits/ctype_specializations.h +++ /dev/null @@ -1,78 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { - if (__m & digit || __m & xdigit) - return __isctype(__c, __m); - else - return __istype(__c, __m); - } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - // XXX - while (__low < __high) - *__vec++ = _M_table[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !this->is(__m, *__low)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && this->is(__m, *__low) != 0) - ++__low; - return __low; - } - - - - - diff --git a/libstdc++-v3/config/bsd/ctype.cc b/libstdc++-v3/config/bsd/ctype.cc deleted file mode 100644 index f4198657635..00000000000 --- a/libstdc++-v3/config/bsd/ctype.cc +++ /dev/null @@ -1,71 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) throw() - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_ctable(NULL), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { return ::toupper((int) __c); } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = ::toupper((int) *__low); - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { return ::tolower((int) __c); } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = ::tolower((int) *__low); - ++__low; - } - return __high; - } diff --git a/libstdc++-v3/config/generic/bits/ctype_base.h b/libstdc++-v3/config/generic/bits/ctype_base.h deleted file mode 100644 index 8b5e0a07252..00000000000 --- a/libstdc++-v3/config/generic/bits/ctype_base.h +++ /dev/null @@ -1,59 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Default information, may not be appropriate for specific host. - - struct ctype_base - { - typedef unsigned int mask; - // Non-standard typedefs. - typedef const int* __to_type; - - enum - { - space = (1 << 5), // Whitespace - print = (1 << 6), // Printing - cntrl = (1 << 9), // Control character - upper = (1 << 0), // UPPERCASE - lower = (1 << 1), // lowercase - alpha = (1 << 5), // Alphabetic - digit = (1 << 2), // Numeric - punct = (1 << 10),// Punctuation - xdigit = (1 << 4),// Hexadecimal numeric - alnum = (1 << 11),// Alphanumeric - graph = (1 << 7) // Graphical - }; - }; - - - diff --git a/libstdc++-v3/config/generic/bits/ctype_specializations.h b/libstdc++-v3/config/generic/bits/ctype_specializations.h deleted file mode 100644 index 952b0da8c98..00000000000 --- a/libstdc++-v3/config/generic/bits/ctype_specializations.h +++ /dev/null @@ -1,72 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return _M_table[(unsigned char)(__c)] & __m; } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = _M_table[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !this->is(__m, *__low)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && this->is(__m, *__low) != 0) - ++__low; - return __low; - } - - - - - diff --git a/libstdc++-v3/config/generic/ctype.cc b/libstdc++-v3/config/generic/ctype.cc deleted file mode 100644 index e4de5c2eae9..00000000000 --- a/libstdc++-v3/config/generic/ctype.cc +++ /dev/null @@ -1,71 +0,0 @@ -// Locale support -*- C++ -*- - -// 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 -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) throw() - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_ctable(NULL), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { return ::toupper((int) __c); } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = ::toupper((int) *__low); - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { return ::tolower((int) __c); } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = ::tolower((int) *__low); - ++__low; - } - return __high; - } diff --git a/libstdc++-v3/config/gnu-linux/bits/ctype_base.h b/libstdc++-v3/config/gnu-linux/bits/ctype_base.h deleted file mode 100644 index dfd29fbc4da..00000000000 --- a/libstdc++-v3/config/gnu-linux/bits/ctype_base.h +++ /dev/null @@ -1,78 +0,0 @@ -// Locale support -*- C++ -*- - -// 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 -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - -#if _GLIBCPP_USE_SHADOW_HEADERS - using _C_legacy::_ISspace; - using _C_legacy::_ISprint; - using _C_legacy::_IScntrl; - using _C_legacy::_ISupper; - using _C_legacy::_ISlower; - using _C_legacy::_ISalpha; - using _C_legacy::_ISdigit; - using _C_legacy::_ISpunct; - using _C_legacy::_ISxdigit; - using _C_legacy::_ISalnum; - using _C_legacy::_ISgraph; -#endif - - struct ctype_base - { - // Non-standard typedefs. - // XXX - typedef unsigned short mask; - typedef unsigned short __table_type; - typedef const int* __to_type; - - // XXX - // enum mask - enum - { - space = _ISspace, - print = _ISprint, - cntrl = _IScntrl, - upper = _ISupper, - lower = _ISlower, - alpha = _ISalpha, - digit = _ISdigit, - punct = _ISpunct, - xdigit = _ISxdigit, - alnum = _ISalnum, - graph = _ISgraph - }; - }; - - - - diff --git a/libstdc++-v3/config/gnu-linux/bits/ctype_specializations.h b/libstdc++-v3/config/gnu-linux/bits/ctype_specializations.h deleted file mode 100644 index fdba4e7535e..00000000000 --- a/libstdc++-v3/config/gnu-linux/bits/ctype_specializations.h +++ /dev/null @@ -1,72 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return _M_table[(unsigned char)(__c)] & __m; } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = _M_table[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !(_M_table[(unsigned char)(*__low)] & __m)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high - && (_M_table[(unsigned char)(*__low)] & __m) != 0) - ++__low; - return __low; - } - - - - diff --git a/libstdc++-v3/config/gnu-linux/ctype.cc b/libstdc++-v3/config/gnu-linux/ctype.cc deleted file mode 100644 index 63032425c70..00000000000 --- a/libstdc++-v3/config/gnu-linux/ctype.cc +++ /dev/null @@ -1,88 +0,0 @@ -// Locale support -*- C++ -*- - -// 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 -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - -#if _GLIBCPP_USE_SHADOW_HEADERS - using _C_legacy::__ctype_toupper; - using _C_legacy::__ctype_tolower; - using _C_legacy::__ctype_b; -#endif - - ctype::ctype(const mask* __table, bool __del, size_t __refs) - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(__ctype_toupper), _M_tolower(__ctype_tolower), - _M_ctable(__ctype_b), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { return _M_toupper[static_cast(__c)]; } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = _M_toupper[static_cast(*__low)]; - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { return _M_tolower[static_cast(__c)]; } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = _M_tolower[static_cast(*__low)]; - ++__low; - } - return __high; - } - - - - - - - - - - - - diff --git a/libstdc++-v3/config/irix/bits/ctype_base.h b/libstdc++-v3/config/irix/bits/ctype_base.h deleted file mode 100644 index 32394eb7a4a..00000000000 --- a/libstdc++-v3/config/irix/bits/ctype_base.h +++ /dev/null @@ -1,60 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h on irix 6.5 - - struct ctype_base - { - typedef unsigned char mask; - // Non-standard typedefs. - typedef int* __to_type; - - enum - { - space = _ISspace, - print = _ISprint, - cntrl = _IScntrl, - upper = _ISupper, - lower = _ISlower, - alpha = _ISalpha, - digit = _ISdigit, - punct = _ISpunct, - xdigit = _ISxdigit, - alnum = _ISalnum, - graph = _ISgraph - }; - }; - - - - diff --git a/libstdc++-v3/config/irix/bits/ctype_specializations.h b/libstdc++-v3/config/irix/bits/ctype_specializations.h deleted file mode 100644 index 88a93b4c7ba..00000000000 --- a/libstdc++-v3/config/irix/bits/ctype_specializations.h +++ /dev/null @@ -1,73 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 2000 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return (_M_table + 1)[(unsigned char)(__c)] & __m; } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = (_M_table + 1)[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !((_M_table + 1)[(unsigned char)(*__low)] & __m)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high - && ((_M_table + 1)[(unsigned char)(*__low)] & __m) != 0) - ++__low; - return __low; - } - - - - - diff --git a/libstdc++-v3/config/irix/ctype.cc b/libstdc++-v3/config/irix/ctype.cc deleted file mode 100644 index 553e776e1dd..00000000000 --- a/libstdc++-v3/config/irix/ctype.cc +++ /dev/null @@ -1,45 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype_base::__to_type const& ctype::_S_toupper = _toupper; - ctype_base::__to_type const& ctype::_S_tolower = _tolower; - const ctype_base::mask* const& ctype::_S_table = __ctype; - -#ifdef _GLIBCPP_USE_WCHAR_T - ctype_base::__to_type const& ctype::_S_toupper = _toupper; - ctype_base::__to_type const& ctype::_S_tolower = _tolower; - const ctype_base::mask* const& ctype::_S_table = __ctype; -#endif - diff --git a/libstdc++-v3/config/newlib/bits/ctype_base.h b/libstdc++-v3/config/newlib/bits/ctype_base.h deleted file mode 100644 index 447073e2a04..00000000000 --- a/libstdc++-v3/config/newlib/bits/ctype_base.h +++ /dev/null @@ -1,61 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h, for solaris2.5.1 - -// Support for Solaris 2.5.1 - - struct ctype_base - { - typedef char mask; - // Non-standard typedefs. - typedef const int* __to_type; - - enum - { - space = 010, // Whitespace - print = 020 | 01 | 02 | 04 | 0200, // Printing - cntrl = 040, // Control character - upper = 01, // UPPERCASE - lower = 02, // lowercase - alpha = 01 | 02, // Alphabetic - digit = 04, // Numeric - punct = 020, // Punctuation - xdigit = 0200, // Hexadecimal numeric - alnum = 01 | 02 | 04, // Alphanumeric - graph = 020 | 01 | 02 | 04 // Graphical - }; - }; - - - diff --git a/libstdc++-v3/config/newlib/bits/ctype_specializations.h b/libstdc++-v3/config/newlib/bits/ctype_specializations.h deleted file mode 100644 index ff8bb67c1ed..00000000000 --- a/libstdc++-v3/config/newlib/bits/ctype_specializations.h +++ /dev/null @@ -1,73 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return (_M_table + 1)[(unsigned char)(__c)] & __m; } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = (_M_table + 1)[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !((_M_table + 1)[(unsigned char)(*__low)] & __m)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high - && ((_M_table + 1)[(unsigned char)(*__low)] & __m) != 0) - ++__low; - return __low; - } - - - - - diff --git a/libstdc++-v3/config/newlib/ctype.cc b/libstdc++-v3/config/newlib/ctype.cc deleted file mode 100644 index 1984d654393..00000000000 --- a/libstdc++-v3/config/newlib/ctype.cc +++ /dev/null @@ -1,78 +0,0 @@ -// Locale support -*- C++ -*- - -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) throw() - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_ctable(_ctype_), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { - int __x = __c; - return (this->is(ctype_base::upper, __c) ? (__x - 'A' + 'a') : __x); - } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = this->do_toupper(*__low); - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { - int __x = __c; - return (this->is(ctype_base::lower, __c) ? (__x - 'A' + 'a') : __x); - } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = this->do_tolower(*__low); - ++__low; - } - return __high; - } - diff --git a/libstdc++-v3/config/solaris/solaris2.5/bits/ctype_base.h b/libstdc++-v3/config/solaris/solaris2.5/bits/ctype_base.h deleted file mode 100644 index 1f4e1d65d3d..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.5/bits/ctype_base.h +++ /dev/null @@ -1,56 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h, for solaris2.5.1 - - struct ctype_base - { - typedef unsigned char mask; - // Non-standard typedefs. - typedef const int* __to_type; - - enum - { - space = 010, // Whitespace - print = 020 | 01 | 02 | 04 | 0200, // Printing - cntrl = 040, // Control character - upper = 01, // UPPERCASE - lower = 02, // lowercase - alpha = 01 | 02, // Alphabetic - digit = 04, // Numeric - punct = 020, // Punctuation - xdigit = 0200, // Hexadecimal numeric - alnum = 01 | 02 | 04, // Alphanumeric - graph = 020 | 01 | 02 | 04 // Graphical - }; - }; diff --git a/libstdc++-v3/config/solaris/solaris2.5/bits/ctype_specializations.h b/libstdc++-v3/config/solaris/solaris2.5/bits/ctype_specializations.h deleted file mode 100644 index 88a93b4c7ba..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.5/bits/ctype_specializations.h +++ /dev/null @@ -1,73 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 2000 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return (_M_table + 1)[(unsigned char)(__c)] & __m; } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = (_M_table + 1)[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !((_M_table + 1)[(unsigned char)(*__low)] & __m)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high - && ((_M_table + 1)[(unsigned char)(*__low)] & __m) != 0) - ++__low; - return __low; - } - - - - - diff --git a/libstdc++-v3/config/solaris/solaris2.5/ctype.cc b/libstdc++-v3/config/solaris/solaris2.5/ctype.cc deleted file mode 100644 index c02a31ead51..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.5/ctype.cc +++ /dev/null @@ -1,72 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 2000 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) throw() - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_ctable(__ctype), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { return ((_M_table + 258)[static_cast(__c)]); } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = this->do_toupper(*__low); - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { return ((_M_table + 258)[static_cast(__c)]); } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = this->do_tolower(*__low); - ++__low; - } - return __high; - } - diff --git a/libstdc++-v3/config/solaris/solaris2.6/bits/ctype_base.h b/libstdc++-v3/config/solaris/solaris2.6/bits/ctype_base.h deleted file mode 100644 index 4e2618f89e7..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.6/bits/ctype_base.h +++ /dev/null @@ -1,58 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h. Looks like this -// only works with solaris2.6 and solaris2.7, but not solaris2.5.1. - - struct ctype_base - { - typedef unsigned int mask; - // Non-standard typedefs. - typedef long* __to_type; - - enum - { - space = _ISSPACE, - print = _ISPRINT, - cntrl = _ISCNTRL, - upper = _ISUPPER, - lower = _ISLOWER, - alpha = _ISALPHA, - digit = _ISDIGIT, - punct = _ISPUNCT, - xdigit = _ISXDIGIT, - alnum = _ISALNUM, - graph = _ISGRAPH - }; - }; - diff --git a/libstdc++-v3/config/solaris/solaris2.6/bits/ctype_specializations.h b/libstdc++-v3/config/solaris/solaris2.6/bits/ctype_specializations.h deleted file mode 100644 index 819fc19caed..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.6/bits/ctype_specializations.h +++ /dev/null @@ -1,73 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 2000 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return _M_table[(unsigned char)(__c)] & __m; } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = _M_table[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !(_M_table[(unsigned char)(*__low)] & __m)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high - && (_M_table[(unsigned char)(*__low)] & __m) != 0) - ++__low; - return __low; - } - - - - - diff --git a/libstdc++-v3/config/solaris/solaris2.6/ctype.cc b/libstdc++-v3/config/solaris/solaris2.6/ctype.cc deleted file mode 100644 index f760ac934ae..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.6/ctype.cc +++ /dev/null @@ -1,71 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999, 2000 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) throw() - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(__trans_upper), _M_tolower(__trans_lower), - _M_ctable(__ctype_mask), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { return _M_toupper[(int) __c]; } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = _M_toupper[(int) *__low]; - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { return _M_tolower[(int) __c]; } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = _M_tolower[(int) *__low]; - ++__low; - } - return __high; - } diff --git a/libstdc++-v3/config/solaris/solaris2.7/bits/ctype_base.h b/libstdc++-v3/config/solaris/solaris2.7/bits/ctype_base.h deleted file mode 100644 index 782a09b2fed..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.7/bits/ctype_base.h +++ /dev/null @@ -1,58 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h. Looks like this -// only works with solaris2.6 and solaris2.7, but not solaris2.5.1. - - struct ctype_base - { - typedef unsigned int mask; - // Non-standard typedefs. - typedef int* __to_type; - - enum - { - space = _ISSPACE, - print = _ISPRINT, - cntrl = _ISCNTRL, - upper = _ISUPPER, - lower = _ISLOWER, - alpha = _ISALPHA, - digit = _ISDIGIT, - punct = _ISPUNCT, - xdigit = _ISXDIGIT, - alnum = _ISALNUM, - graph = _ISGRAPH - }; - }; - diff --git a/libstdc++-v3/config/solaris/solaris2.7/bits/ctype_specializations.h b/libstdc++-v3/config/solaris/solaris2.7/bits/ctype_specializations.h deleted file mode 100644 index 819fc19caed..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.7/bits/ctype_specializations.h +++ /dev/null @@ -1,73 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 2000 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) -// functions go in ctype.cc - - bool - ctype:: - is(mask __m, char __c) const throw() - { return _M_table[(unsigned char)(__c)] & __m; } - - const char* - ctype:: - is(const char* __low, const char* __high, mask* __vec) const throw() - { - while (__low < __high) - *__vec++ = _M_table[(unsigned char)(*__low++)]; - return __high; - } - - const char* - ctype:: - scan_is(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high && !(_M_table[(unsigned char)(*__low)] & __m)) - ++__low; - return __low; - } - - const char* - ctype:: - scan_not(mask __m, const char* __low, const char* __high) const throw() - { - while (__low < __high - && (_M_table[(unsigned char)(*__low)] & __m) != 0) - ++__low; - return __low; - } - - - - - diff --git a/libstdc++-v3/config/solaris/solaris2.7/ctype.cc b/libstdc++-v3/config/solaris/solaris2.7/ctype.cc deleted file mode 100644 index 348495ecefb..00000000000 --- a/libstdc++-v3/config/solaris/solaris2.7/ctype.cc +++ /dev/null @@ -1,73 +0,0 @@ -// Locale support -*- C++ -*- - -// Copyright (C) 1997-1999, 2000 Cygnus Solutions -// -// 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. - -// -// ISO C++ 14882: 22.1 Locales -// - -// Information as gleaned from /usr/include/ctype.h - - ctype::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) throw() - : _Ctype_nois(__refs), _M_del(__table != 0 && __del), - _M_toupper(__trans_upper), _M_tolower(__trans_lower), - _M_ctable(__ctype_mask), _M_table(__table == 0 ? _M_ctable: __table) - { } - - char - ctype::do_toupper(char __c) const - { return _M_toupper[(int) __c]; } - - const char* - ctype::do_toupper(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = _M_toupper[(int) *__low]; - ++__low; - } - return __high; - } - - char - ctype::do_tolower(char __c) const - { return _M_tolower[(int) __c]; } - - const char* - ctype::do_tolower(char* __low, const char* __high) const - { - while (__low < __high) - { - *__low = _M_tolower[(int) *__low]; - ++__low; - } - return __high; - } - - -- 2.30.2