]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 18 May 2002 14:42:49 +0000 (14:42 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 18 May 2002 14:42:49 +0000 (14:42 +0000)
2002-05-18  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/22_locale/ctype_scan_char.cc: Tweak.
* testsuite/22_locale/ctype_scan_wchar_t.cc: New.

* docs/html/install.html: Fix.

2002-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

* config/os/irix/irix5.2/bits/ctype_inline.h (scan_is, scan_not):
Fix typo, use this->is() rather than manually (and perhaps
incorrectly) inlining it.
* config/os/irix/irix6.5/bits/ctype_inline.h (scan_is, scan_not):
Likewise.
* testsuite/22_locale/ctype_scan_char.cc: New file.

From-SVN: r53584

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/irix/irix5.2/bits/ctype_inline.h
libstdc++-v3/config/os/irix/irix6.5/bits/ctype_inline.h
libstdc++-v3/docs/html/install.html

index f31037f54c88e217ed4710404e5b7332f4bd7ad1..511febee833a2a441300c7266fc5d1a2fade437f 100644 (file)
@@ -1,3 +1,19 @@
+2002-05-18  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/22_locale/ctype_scan_char.cc: Tweak.
+       * testsuite/22_locale/ctype_scan_wchar_t.cc: New.       
+
+       * docs/html/install.html: Fix.
+
+2002-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * config/os/irix/irix5.2/bits/ctype_inline.h (scan_is, scan_not):
+       Fix typo, use this->is() rather than manually (and perhaps
+       incorrectly) inlining it.
+       * config/os/irix/irix6.5/bits/ctype_inline.h (scan_is, scan_not):
+       Likewise.
+       * testsuite/22_locale/ctype_scan_char.cc: New file.
+
 2002-05-18  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/bits/fstream.tcc
index 400b3a7c391e68cf503e7b41e3eaa757546c5fc8..89cf11b259b0dbb4a4813b83e6e125beb147a048 100644 (file)
@@ -1,6 +1,6 @@
 // Locale support -*- C++ -*-
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002 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
   bool
   ctype<char>::
   is(mask __m, char __c) const
-  { return (_M_table)[__c] & __m; }
+  { return (_M_table)[static_cast<unsigned char>(__c)] & __m; }
 
   const char*
   ctype<char>::
   is(const char* __low, const char* __high, mask* __vec) const
   {
     while (__low < __high)
-      *__vec++ = (_M_table)[*__low++];
+      *__vec++ = (_M_table)[static_cast<unsigned char>(*__low++)];
     return __high;
   }
 
@@ -52,7 +52,7 @@
   ctype<char>::
   scan_is(mask __m, const char* __low, const char* __high) const
   {
-    while (__low < __high && !((_M_table)[*__low] & __m))
+    while (__low < __high && ! this->is(__m, *__low))
       ++__low;
     return __low;
   }
   ctype<char>::
   scan_not(mask __m, const char* __low, const char* __high) const
   {
-    while (__low < __high && ((_M_table + 1)[*__low] & __m) != 0)
+    while (__low < __high && this->is(__m, *__low))
       ++__low;
     return __low;
   }
-
-
-
-
-
index b7ab12dbf14607bdbe75a6ef5408e8043fd4b4bf..8c10c4d17ff08052204e51544d5b938655cbff24 100644 (file)
@@ -52,8 +52,7 @@
   ctype<char>::
   scan_is(mask __m, const char* __low, const char* __high) const
   {
-    while (__low < __high 
-          && !((_M_table)[static_cast<unsigned char>(*__low)] & __m))
+    while (__low < __high && ! this->is(__m, *__low))
       ++__low;
     return __low;
   }
@@ -62,8 +61,7 @@
   ctype<char>::
   scan_not(mask __m, const char* __low, const char* __high) const
   {
-    while (__low < __high 
-          && ((_M_table + 1)[static_cast<unsigned char>(*__low)] & __m) != 0)
+    while (__low < __high && this->is(__m, *__low))
       ++__low;
     return __low;
   }
index c2ec0305a9d9688fd54dbc838b95e4541ffc7a56..ff351049b98f37b77b22b046f28cecf4359cd1e8 100644 (file)
          <p> <code> rpm -e glibc-common --nodeps </code> </p>
          <p> <code> rpm -i --define "_install_langs all" 
          glibc-common-2.2.5-34.i386.rpm </code> </p>
-         <li> install just the necessary locales
+         </li> 
+         <li> install just the necessary locales
          <p> <code> localedef -i de_DE -f ISO-8859-1 de_DE </code> </p>
-         </p>
-      </dl>
+         </li> 
+        </p>
+       </dd>
+      </dt>
+    </dl>
    </p>
 
 <hr>