]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/10167 (ieee_1003.1-[3.2/3.3 regression] 2001 locale specialisations...
authorPaolo Carlini <pcarlini@unitus.it>
Wed, 26 Mar 2003 12:25:46 +0000 (13:25 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 26 Mar 2003 12:25:46 +0000 (12:25 +0000)
2003-03-26  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/10167
* config/locale/ieee_1003.1-2001/codecvt_specializations.h
(do_out, do_unshift, do_in): qualify 'ok', 'error', 'partial',
'noconv' with codecvt_base::.

From-SVN: r64892

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/ieee_1003.1-2001/codecvt_specializations.h

index fca2be5f010b4e19def5c0623b35f582586eefad..e4f2688c258e34485e24a7d016afe3c63dd3a6c1 100644 (file)
@@ -1,3 +1,10 @@
+2003-03-26  Paolo Carlini  <pcarlini@unitus.it>
+
+       PR libstdc++/10167
+       * config/locale/ieee_1003.1-2001/codecvt_specializations.h
+       (do_out, do_unshift, do_in): qualify 'ok', 'error', 'partial',
+       'noconv' with codecvt_base::.
+
 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
 
        * config/os/hpux/bits/ctype_noninline.h (ctype<char>::classic_table):
index a7d56ae33af0d5a2eef85e10689307fe3ee950f5..0cbfb2a3d6d7813f9dd1765119aeb97ced146166 100644 (file)
           extern_type* __to, extern_type* __to_end,
           extern_type*& __to_next) const
     {
-      result __ret = error;
+      result __ret = codecvt_base::error;
       if (__state._M_good())
        {
          typedef state_type::__desc_type       __desc_type;
            {
              __from_next = reinterpret_cast<const intern_type*>(__cfrom);
              __to_next = reinterpret_cast<extern_type*>(__cto);
-             __ret = ok;
+             __ret = codecvt_base::ok;
            }
          else 
            {
                {
                  __from_next = reinterpret_cast<const intern_type*>(__cfrom);
                  __to_next = reinterpret_cast<extern_type*>(__cto);
-                 __ret = partial;
+                 __ret = codecvt_base::partial;
                }
              else
-               __ret = error;
+               __ret = codecvt_base::error;
            }
        }
       return __ret; 
     do_unshift(state_type& __state, extern_type* __to, 
               extern_type* __to_end, extern_type*& __to_next) const
     {
-      result __ret = error;
+      result __ret = codecvt_base::error;
       if (__state._M_good())
        {
          typedef state_type::__desc_type       __desc_type;
            {
              __to_next = reinterpret_cast<extern_type*>(__cto);
              if (__tlen == __tmultiple * (__to_end - __to))
-               __ret = noconv;
+               __ret = codecvt_base::noconv;
              else if (__tlen == 0)
-               __ret = ok;
+               __ret = codecvt_base::ok;
              else
-               __ret = partial;
+               __ret = codecvt_base::partial;
            }
          else 
-           __ret = error;
+           __ret = codecvt_base::error;
        }
       return __ret; 
     }
          intern_type* __to, intern_type* __to_end, 
          intern_type*& __to_next) const
     { 
-      result __ret = error;
+      result __ret = codecvt_base::error;
       if (__state._M_good())
        {
          typedef state_type::__desc_type       __desc_type;
            {
              __from_next = reinterpret_cast<const extern_type*>(__cfrom);
              __to_next = reinterpret_cast<intern_type*>(__cto);
-             __ret = ok;
+             __ret = codecvt_base::ok;
            }
          else 
            {
                {
                  __from_next = reinterpret_cast<const extern_type*>(__cfrom);
                  __to_next = reinterpret_cast<intern_type*>(__cto);
-                 __ret = partial;
+                 __ret = codecvt_base::partial;
                }
              else
-               __ret = error;
+               __ret = codecvt_base::error;
            }
        }
       return __ret;