2003-06-27 Krister Walfridsson <cato@df.lth.se>
authorKrister Walfridsson <cato@df.lth.se>
Fri, 27 Jun 2003 16:59:04 +0000 (18:59 +0200)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 27 Jun 2003 16:59:04 +0000 (16:59 +0000)
* config/os/bsd/netbsd/ctype_noninline.h
(_C_ctype_): Declare.
(ctype<char>::classic_table): Return _C_ctype_ + 1.
(ctype<char>::ctype): Use classic_table.

From-SVN: r68584

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h

index 0d30ceb2f66223718bb3d81239c966f3e695a931..a3a842b05442ae18a58a5adae8c0a696bb9aeb4b 100644 (file)
@@ -1,3 +1,10 @@
+2003-06-27  Krister Walfridsson  <cato@df.lth.se>
+
+       * config/os/bsd/netbsd/ctype_noninline.h
+       (_C_ctype_): Declare.
+       (ctype<char>::classic_table): Return _C_ctype_ + 1.
+       (ctype<char>::ctype): Use classic_table.
+
 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
            Nathan C. Myers  <ncm-nospam@cantrip.org>
 
index 80138cb3ec8c49c3f854e37dfe19034f3411c003..578e0a42e314361d6d1d8a2a9bdcc2022bc39d22 100644 (file)
@@ -1,6 +1,6 @@
 // Locale support -*- C++ -*-
 
-// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2001, 2002, 2003 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
 //
   
 // Information as gleaned from /usr/include/ctype.h
-  
+
+  extern "C" const u_int8_t _C_ctype_[];
+
   const ctype_base::mask*
   ctype<char>::classic_table() throw()
-  { return 0; }
+  { return _C_ctype_ + 1; }
 
   ctype<char>::ctype(__c_locale, const mask* __table, bool __del, 
                     size_t __refs) 
   : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), 
-  _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : _ctype_ + 1)
+  _M_toupper(NULL), _M_tolower(NULL), 
+  _M_table(__table ? __table : classic_table())
   { }
 
   ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) 
   : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), 
-  _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : _ctype_ + 1)
+  _M_toupper(NULL), _M_tolower(NULL), 
+  _M_table(__table ? __table : classic_table())
   { }
 
   char