]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ctype_noninline.h (classic_table): Return __ctype + 1.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 19 May 2002 15:16:30 +0000 (15:16 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 19 May 2002 15:16:30 +0000 (15:16 +0000)
* config/os/irix/irix5.2/bits/ctype_noninline.h (classic_table):
Return __ctype + 1.
(ctype:_M_table): Initialize to classic_table(), not __ctype.

From-SVN: r53628

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/irix/irix5.2/bits/ctype_noninline.h

index ec8fdc37086015cc9dea836c70f829c02819ad92..f01da931d5b7ca9cb216a00ff21dc8a060e62e61 100644 (file)
@@ -1,5 +1,9 @@
 2002-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * config/os/irix/irix5.2/bits/ctype_noninline.h (classic_table):
+       Return __ctype + 1.
+       (ctype:_M_table): Initialize to classic_table(), not __ctype.
+
        * config/os/irix/irix5.2/bits/os_defines.h
        (__glibcpp_long_double_bits, __glibcpp_long_bits): Define.
 
index f9df21fb0d0109d1cda1bd66213bff9a72c740d6..3cb29b601aefb2b58aa7de3607b7a17355b51f1e 100644 (file)
 
   const ctype_base::mask*
   ctype<char>::classic_table() throw()
-  { return 0; }
+  { return __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 ? __ctype : __table)
+  _M_table(!__table ? classic_table() : __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 ? __ctype : __table)
+  _M_table(!__table ? classic_table() : __table)
   { }
 
   char