Index: libstdc++-v3/config/abi/compatibility.h =================================================================== --- libstdc++-v3/config/abi/compatibility.h (revision 235619) +++ libstdc++-v3/config/abi/compatibility.h (working copy) @@ -28,7 +28,7 @@ */ // Switch for symbol version macro. -#ifndef _GLIBCXX_APPLY_SYMVER +#ifndef _GLIBCXX_APPLY_SYMVER #error must define _GLIBCXX_APPLY_SYMVER before including __FILE__ #endif @@ -36,7 +36,7 @@ _ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv _ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv */ -namespace +namespace { _GLIBCXX_APPLY_SYMVER(_ZNSt21istreambuf_iteratorXXIcSt11char_traitsIcEEppEv, _ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv) @@ -76,7 +76,7 @@ _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv _ZNSt11char_traitsIcE2eqERKcS2_ _ZNSt11char_traitsIwE2eqERKwS2_ */ -namespace +namespace { _GLIBCXX_APPLY_SYMVER(_ZNSt11char_traitsIcE4eqXXERKcS2_, _ZNSt11char_traitsIcE2eqERKcS2_) Index: libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver =================================================================== --- libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver (revision 235619) +++ libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver (working copy) @@ -77,7 +77,7 @@ GLIBCXX_7.0 { # locale _ZNSt3__79has_facetINS_*; - # hash + # hash _ZNSt8__detail3__712__prime_listE; _ZNSt3tr18__detail3__712__prime_listE; @@ -110,7 +110,7 @@ GLIBCXX_7.0 { _ZN9__gnu_cxx3__76__poolILb[01]EE10_M_destroyEv; _ZN9__gnu_cxx3__76__poolILb1EE16_M_get_thread_idEv; - _ZN9__gnu_cxx3__717__pool_alloc_base9_M_refillE[jmy]; + _ZN9__gnu_cxx3__717__pool_alloc_base9_M_refillE[jmy]; _ZN9__gnu_cxx3__717__pool_alloc_base16_M_get_free_listE[jmy]; _ZN9__gnu_cxx3__717__pool_alloc_base12_M_get_mutexEv; Index: libstdc++-v3/config/abi/pre/none.ver =================================================================== --- libstdc++-v3/config/abi/pre/none.ver (revision 235619) +++ libstdc++-v3/config/abi/pre/none.ver (working copy) @@ -1,6 +1,6 @@ -# +# # This is a placeholder file. It does nothing and is not used. -# +# # If you are seeing this file as your linker script (named # libstdc++-symbols.ver), then either 1) the configuration process # determined that symbol versioning should not be done, or 2) you Index: libstdc++-v3/config/cpu/arm/cxxabi_tweaks.h =================================================================== --- libstdc++-v3/config/cpu/arm/cxxabi_tweaks.h (revision 235619) +++ libstdc++-v3/config/cpu/arm/cxxabi_tweaks.h (working copy) @@ -33,7 +33,7 @@ #ifdef __cplusplus namespace __cxxabiv1 { - extern "C" + extern "C" { #endif @@ -49,7 +49,7 @@ namespace __cxxabiv1 // We also want the element size in array cookies. #define _GLIBCXX_ELTSIZE_IN_COOKIE 1 - + // __cxa_vec_ctor should return a pointer to the array. typedef void * __cxa_vec_ctor_return_type; #define _GLIBCXX_CXA_VEC_CTOR_RETURN(x) return x @@ -79,4 +79,4 @@ namespace __cxxabiv1 } // namespace __cxxabiv1 #endif -#endif +#endif Index: libstdc++-v3/config/cpu/cris/atomic_word.h =================================================================== --- libstdc++-v3/config/cpu/cris/atomic_word.h (revision 235619) +++ libstdc++-v3/config/cpu/cris/atomic_word.h (working copy) @@ -28,4 +28,4 @@ // This entity must not cross a page boundary. typedef int _Atomic_word __attribute__ ((__aligned__ (4))); -#endif +#endif Index: libstdc++-v3/config/cpu/generic/atomic_word.h =================================================================== --- libstdc++-v3/config/cpu/generic/atomic_word.h (revision 235619) +++ libstdc++-v3/config/cpu/generic/atomic_word.h (working copy) @@ -37,4 +37,4 @@ typedef int _Atomic_word; // This is a memory order release fence. #define _GLIBCXX_WRITE_MEM_BARRIER __atomic_thread_fence (__ATOMIC_RELEASE) -#endif +#endif Index: libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h =================================================================== --- libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h (revision 235619) +++ libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h (working copy) @@ -30,7 +30,7 @@ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION - _Atomic_word + _Atomic_word __attribute__ ((__unused__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw () { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } Index: libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h =================================================================== --- libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h (revision 235619) +++ libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h (working copy) @@ -25,7 +25,7 @@ #include #include -namespace +namespace { __gnu_cxx::__mutex& get_atomic_mutex() Index: libstdc++-v3/config/cpu/generic/cxxabi_tweaks.h =================================================================== --- libstdc++-v3/config/cpu/generic/cxxabi_tweaks.h (revision 235619) +++ libstdc++-v3/config/cpu/generic/cxxabi_tweaks.h (working copy) @@ -33,7 +33,7 @@ #ifdef __cplusplus namespace __cxxabiv1 { - extern "C" + extern "C" { #endif @@ -56,4 +56,4 @@ namespace __cxxabiv1 } // namespace __cxxabiv1 #endif -#endif +#endif Index: libstdc++-v3/config/cpu/hppa/atomicity.h =================================================================== --- libstdc++-v3/config/cpu/hppa/atomicity.h (revision 235619) +++ libstdc++-v3/config/cpu/hppa/atomicity.h (working copy) @@ -34,7 +34,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { static volatile int _S_atomicity_lock; }; - + template volatile int _Atomicity_lock<_Inst>::_S_atomicity_lock __attribute__ ((aligned (16))) = 1; @@ -50,7 +50,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _Atomic_word result; int tmp; volatile int& lock = _Atomicity_lock<0>::_S_atomicity_lock; - + __asm__ __volatile__ ("ldcw 0(%1),%0\n\t" "cmpib,<>,n 0,%0,.+20\n\t" "ldw 0(%1),%0\n\t" @@ -60,7 +60,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : "=&r" (tmp) : "r" (&lock) : "memory"); - + result = *__mem; *__mem = result + __val; __asm__ __volatile__ ("stw %1,0(%0)" @@ -67,7 +67,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : : "r" (&lock), "r" (tmp) : "memory"); return result; } - + void __attribute__ ((__unused__)) __atomic_add(volatile _Atomic_word* __mem, int __val) throw () @@ -74,7 +74,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { int tmp; volatile int& lock = _Atomicity_lock<0>::_S_atomicity_lock; - + __asm__ __volatile__ ("ldcw 0(%1),%0\n\t" "cmpib,<>,n 0,%0,.+20\n\t" "ldw 0(%1),%0\n\t" @@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : "=&r" (tmp) : "r" (&lock) : "memory"); - + *__mem += __val; __asm__ __volatile__ ("stw %1,0(%0)" : : "r" (&lock), "r" (tmp) : "memory"); Index: libstdc++-v3/config/cpu/i386/atomicity.h =================================================================== --- libstdc++-v3/config/cpu/i386/atomicity.h (revision 235619) +++ libstdc++-v3/config/cpu/i386/atomicity.h (working copy) @@ -38,32 +38,32 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION volatile _Atomic_word _Atomicity_lock<__inst>::_S_atomicity_lock = 0; template volatile _Atomic_word _Atomicity_lock<0>::_S_atomicity_lock; - - _Atomic_word + + _Atomic_word __attribute__ ((__unused__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw () { register _Atomic_word __result, __tmp = 1; - + // Obtain the atomic exchange/add spin lock. - do + do { __asm__ __volatile__ ("xchg{l} {%0,%1|%1,%0}" : "=m" (_Atomicity_lock<0>::_S_atomicity_lock), "+r" (__tmp) : "m" (_Atomicity_lock<0>::_S_atomicity_lock)); - } + } while (__tmp); - + __result = *__mem; *__mem += __val; - + // Release spin lock. _Atomicity_lock<0>::_S_atomicity_lock = 0; - + return __result; } - + void __attribute__ ((__unused__)) __atomic_add(volatile _Atomic_word* __mem, int __val) throw () Index: libstdc++-v3/config/cpu/i486/atomicity.h =================================================================== --- libstdc++-v3/config/cpu/i486/atomicity.h (revision 235619) +++ libstdc++-v3/config/cpu/i486/atomicity.h (working copy) @@ -28,17 +28,17 @@ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION - _Atomic_word + _Atomic_word __attribute__ ((__unused__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw () { register _Atomic_word __result; __asm__ __volatile__ ("lock; xadd{l} {%0,%1|%1,%0}" - : "=r" (__result), "=m" (*__mem) + : "=r" (__result), "=m" (*__mem) : "0" (__val), "m" (*__mem)); return __result; } - + void __attribute__ ((__unused__)) __atomic_add(volatile _Atomic_word* __mem, int __val) throw () Index: libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h =================================================================== --- libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h (revision 235619) +++ libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h (working copy) @@ -170,7 +170,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } } while (__v2 > __maskval || __v2 < __tmp); - + __v.__i = _mm_set_epi64x(__v1, __v2); } Index: libstdc++-v3/config/cpu/m68k/atomicity.h =================================================================== --- libstdc++-v3/config/cpu/m68k/atomicity.h (revision 235619) +++ libstdc++-v3/config/cpu/m68k/atomicity.h (working copy) @@ -32,7 +32,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION || defined(__mc68040__) || defined(__mc68060__) ) \ && !defined(__mcpu32__) // These variants support compare-and-swap. - _Atomic_word + _Atomic_word __attribute__ ((__unused__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw () { @@ -58,16 +58,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION short __level, __tmpsr; __asm__ __volatile__ ("move%.w %%sr,%0\n\tor%.l %0,%1\n\tmove%.w %1,%%sr" : "=d"(__level), "=d"(__tmpsr) : "1"(0x700)); - + __result = *__mem; - *__mem = __result + __val; + *__mem = __result + __val; __asm__ __volatile__ ("move%.w %0,%%sr" : : "d"(__level)); - + return __result; } #else - + template struct _Atomicity_lock { @@ -76,15 +76,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template volatile unsigned char _Atomicity_lock<__inst>::_S_atomicity_lock = 0; - + template volatile unsigned char _Atomicity_lock<0>::_S_atomicity_lock; - - _Atomic_word + + _Atomic_word __attribute__ ((__unused__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw () { _Atomic_word __result; - + // bset with no immediate addressing (not SMP-safe) #if defined(__mcfisaa__) || defined(__mcfisaaplus__) __asm__ __volatile__("1: bset.b #7,%0@\n\tjbne 1b" @@ -91,7 +91,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : /* no outputs */ : "a"(&_Atomicity_lock<0>::_S_atomicity_lock) : "cc", "memory"); - + // CPU32 and CF ISAs B & C support test-and-set (SMP-safe). #elif defined(__mcpu32__) || defined(__mcfisab__) || defined (__mcfisac__) __asm__ __volatile__("1: tas %0\n\tjbne 1b" @@ -98,7 +98,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : "+m"(_Atomicity_lock<0>::_S_atomicity_lock) : /* none */ : "cc"); - + // Use bset with immediate addressing for 68000/68010 (not SMP-safe) // NOTE: TAS is available on the 68000, but unsupported by some Amiga // memory controllers. @@ -108,15 +108,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : /* none */ : "cc"); #endif - + __result = *__mem; *__mem = __result + __val; - + _Atomicity_lock<0>::_S_atomicity_lock = 0; - + return __result; } - + #endif /* TAS / BSET */ void Index: libstdc++-v3/config/cpu/sparc/atomic_word.h =================================================================== --- libstdc++-v3/config/cpu/sparc/atomic_word.h (revision 235619) +++ libstdc++-v3/config/cpu/sparc/atomic_word.h (working copy) @@ -45,4 +45,4 @@ #endif -#endif +#endif Index: libstdc++-v3/config/cpu/sparc/atomicity.h =================================================================== --- libstdc++-v3/config/cpu/sparc/atomicity.h (revision 235619) +++ libstdc++-v3/config/cpu/sparc/atomicity.h (working copy) @@ -46,7 +46,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : "r" (__mem), "r" (__val_extended), "m" (*__mem)); return __tmp2; } - + void __attribute__ ((__unused__)) __atomic_add(volatile _Atomic_word* __mem, int __val) throw () @@ -53,7 +53,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { _Atomic_word __tmp1, __tmp2; _Atomic_word __val_extended = __val; - + __asm__ __volatile__("1: ldx [%3], %0\n\t" " add %0, %4, %1\n\t" " casx [%3], %0, %1\n\t" @@ -63,7 +63,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : "=&r" (__tmp1), "=&r" (__tmp2), "=m" (*__mem) : "r" (__mem), "r" (__val_extended), "m" (*__mem)); } - + #else /* __arch32__ */ template @@ -74,15 +74,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template unsigned char _Atomicity_lock<__inst>::_S_atomicity_lock = 0; - + template unsigned char _Atomicity_lock<0>::_S_atomicity_lock; - + _Atomic_word __attribute__ ((__unused__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw () { _Atomic_word __result, __tmp; - + __asm__ __volatile__("1: ldstub [%1], %0\n\t" " cmp %0, 0\n\t" " bne 1b\n\t" @@ -98,13 +98,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : "memory"); return __result; } - + void __attribute__ ((__unused__)) __atomic_add(volatile _Atomic_word* __mem, int __val) throw () { _Atomic_word __tmp; - + __asm__ __volatile__("1: ldstub [%1], %0\n\t" " cmp %0, 0\n\t" " bne 1b\n\t" @@ -117,7 +117,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : /* no outputs */ : "r" (&_Atomicity_lock<0>::_S_atomicity_lock) : "memory"); - } + } #endif /* __arch32__ */ _GLIBCXX_END_NAMESPACE_VERSION Index: libstdc++-v3/config/io/basic_file_stdio.cc =================================================================== --- libstdc++-v3/config/io/basic_file_stdio.cc (revision 235619) +++ libstdc++-v3/config/io/basic_file_stdio.cc (working copy) @@ -41,7 +41,7 @@ // Pick up FIONREAD on Solaris 2 #ifdef _GLIBCXX_HAVE_SYS_IOCTL_H -#define BSD_COMP +#define BSD_COMP #include #endif @@ -65,7 +65,7 @@ #include // For ::max() and min() and ::max() -namespace +namespace { // Map ios_base::openmode flags to a string for use in fopen(). // Table of valid combinations as given in [lib.filebuf.members]/2. @@ -72,7 +72,7 @@ static const char* fopen_mode(std::ios_base::openmode mode) { - enum + enum { in = std::ios_base::in, out = std::ios_base::out, @@ -167,7 +167,7 @@ __nleft -= xwrite(__fd, __s2 + __off, __n2 - __off); break; } - + __s1 += __ret; __n1_left -= __ret; } @@ -188,15 +188,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __basic_file::~__basic_file() { this->close(); } - + __basic_file* - __basic_file::sys_open(__c_file* __file, ios_base::openmode) + __basic_file::sys_open(__c_file* __file, ios_base::openmode) { __basic_file* __ret = NULL; if (!this->is_open() && __file) { int __err; - errno = 0; + errno = 0; do __err = this->sync(); while (__err && errno == EINTR); @@ -209,7 +209,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __ret; } - + __basic_file* __basic_file::sys_open(int __fd, ios_base::openmode __mode) throw () { @@ -225,9 +225,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __ret; } - - __basic_file* - __basic_file::open(const char* __name, ios_base::openmode __mode, + + __basic_file* + __basic_file::open(const char* __name, ios_base::openmode __mode, int /*__prot*/) { __basic_file* __ret = NULL; @@ -246,22 +246,22 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __ret; } - - bool + + bool __basic_file::is_open() const throw () { return _M_cfile != 0; } - - int + + int __basic_file::fd() throw () { return fileno(_M_cfile); } - + __c_file* __basic_file::file() throw () { return _M_cfile; } - - __basic_file* + + __basic_file* __basic_file::close() - { + { __basic_file* __ret = static_cast<__basic_file*>(NULL); if (this->is_open()) { @@ -283,8 +283,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __ret; } - - streamsize + + streamsize __basic_file::xsgetn(char* __s, streamsize __n) { streamsize __ret; @@ -294,11 +294,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return __ret; } - streamsize + streamsize __basic_file::xsputn(const char* __s, streamsize __n) { return xwrite(this->fd(), __s, __n); } - streamsize + streamsize __basic_file::xsputn_2(const char* __s1, streamsize __n1, const char* __s2, streamsize __n2) { @@ -328,8 +328,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #endif } - int - __basic_file::sync() + int + __basic_file::sync() { return fflush(_M_cfile); } streamsize @@ -337,11 +337,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { #ifndef _GLIBCXX_NO_IOCTL #ifdef FIONREAD - // Pipes and sockets. + // Pipes and sockets. int __num = 0; int __r = ioctl(this->fd(), FIONREAD, &__num); if (!__r && __num >= 0) - return __num; + return __num; #endif #endif @@ -352,7 +352,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __pfd[0].events = POLLIN; if (poll(__pfd, 1, 0) <= 0) return 0; -#endif +#endif #if defined(_GLIBCXX_HAVE_S_ISREG) || defined(_GLIBCXX_HAVE_S_IFREG) // Regular files. Index: libstdc++-v3/config/io/basic_file_stdio.h =================================================================== --- libstdc++-v3/config/io/basic_file_stdio.h (revision 235619) +++ libstdc++-v3/config/io/basic_file_stdio.h (working copy) @@ -47,7 +47,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Generic declaration. template - class __basic_file; + class __basic_file; // Specialization. template<> @@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } #endif - __basic_file* + __basic_file* open(const char* __name, ios_base::openmode __mode, int __prot = 0664); __basic_file* @@ -90,13 +90,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __basic_file* sys_open(int __fd, ios_base::openmode __mode) throw (); - __basic_file* - close(); + __basic_file* + close(); - _GLIBCXX_PURE bool + _GLIBCXX_PURE bool is_open() const throw (); - _GLIBCXX_PURE int + _GLIBCXX_PURE int fd() throw (); _GLIBCXX_PURE __c_file* @@ -104,20 +104,20 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ~__basic_file(); - streamsize + streamsize xsputn(const char* __s, streamsize __n); - streamsize + streamsize xsputn_2(const char* __s1, streamsize __n1, const char* __s2, streamsize __n2); - streamsize + streamsize xsgetn(char* __s, streamsize __n); streamoff seekoff(streamoff __off, ios_base::seekdir __way) throw (); - int + int sync(); streamsize @@ -127,4 +127,4 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#endif +#endif Index: libstdc++-v3/config/locale/darwin/ctype_members.cc =================================================================== --- libstdc++-v3/config/locale/darwin/ctype_members.cc (revision 235619) +++ libstdc++-v3/config/locale/darwin/ctype_members.cc (working copy) @@ -40,12 +40,12 @@ namespace std _GLIBCXX_VISIBILITY(default) // various /config/os/* files. ctype_byname::ctype_byname(const char* __s, size_t __refs) - : ctype(0, false, __refs) - { + : ctype(0, false, __refs) + { if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_ctype); - this->_S_create_c_locale(this->_M_c_locale_ctype, __s); + this->_S_create_c_locale(this->_M_c_locale_ctype, __s); } } @@ -52,7 +52,7 @@ namespace std _GLIBCXX_VISIBILITY(default) ctype_byname::~ctype_byname() { } -#ifdef _GLIBCXX_USE_WCHAR_T +#ifdef _GLIBCXX_USE_WCHAR_T ctype::__wmask_type ctype::_M_convert_to_wmask(const mask __m) const throw() { @@ -60,7 +60,7 @@ namespace std _GLIBCXX_VISIBILITY(default) // never gets called. return __m; }; - + wchar_t ctype::do_toupper(wchar_t __c) const { return towupper(__c); } @@ -75,11 +75,11 @@ namespace std _GLIBCXX_VISIBILITY(default) } return __hi; } - + wchar_t ctype::do_tolower(wchar_t __c) const { return towlower(__c); } - + const wchar_t* ctype::do_tolower(wchar_t* __lo, const wchar_t* __hi) const { @@ -96,7 +96,7 @@ namespace std _GLIBCXX_VISIBILITY(default) do_widen(char __c) const { return _M_widen[static_cast(__c)]; } - const char* + const char* ctype:: do_widen(const char* __lo, const char* __hi, wchar_t* __dest) const { @@ -112,16 +112,16 @@ namespace std _GLIBCXX_VISIBILITY(default) char ctype:: do_narrow(wchar_t __wc, char __dfault) const - { + { if (__wc >= 0 && __wc < 128 && _M_narrow_ok) return _M_narrow[__wc]; const int __c = wctob(__wc); - return (__c == EOF ? __dfault : static_cast(__c)); + return (__c == EOF ? __dfault : static_cast(__c)); } const wchar_t* ctype:: - do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, + do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, char* __dest) const { if (_M_narrow_ok) Index: libstdc++-v3/config/locale/dragonfly/codecvt_members.cc =================================================================== --- libstdc++-v3/config/locale/dragonfly/codecvt_members.cc (revision 235619) +++ libstdc++-v3/config/locale/dragonfly/codecvt_members.cc (working copy) @@ -42,7 +42,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #ifdef _GLIBCXX_USE_WCHAR_T codecvt_base::result codecvt:: - do_out(state_type& __state, const intern_type* __from, + do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const @@ -108,12 +108,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION uselocale((locale_t)__old); - return __ret; + return __ret; } - + codecvt_base::result codecvt:: - do_in(state_type& __state, const extern_type* __from, + do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const @@ -155,12 +155,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION break; } __from_next = __from; - __state = __tmp_state; + __state = __tmp_state; __ret = error; } else if (__from_next && __from_next < __from_chunk_end) { - // It is unclear what to return in this case (see DR 382). + // It is unclear what to return in this case (see DR 382). __to_next += __conv; __ret = partial; } @@ -175,7 +175,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (__to_next < __to_end) { // XXX Probably wrong for stateful encodings - __tmp_state = __state; + __tmp_state = __state; ++__from_next; *__to_next++ = L'\0'; } @@ -186,10 +186,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION uselocale((locale_t)__old); - return __ret; + return __ret; } - int + int codecvt:: do_encoding() const throw() { @@ -201,9 +201,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __ret = 1; uselocale((locale_t)__old); return __ret; - } + } - int + int codecvt:: do_max_length() const throw() { @@ -213,8 +213,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION uselocale((locale_t)__old); return __ret; } - - int + + int codecvt:: do_length(state_type& __state, const extern_type* __from, const extern_type* __end, size_t __max) const @@ -227,10 +227,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // mbsnrtowcs is *very* fast but stops if encounters NUL characters: // in case we advance past it and then continue, in a loop. // NB: mbsnrtowcs is a GNU extension - + // A dummy internal buffer is needed in order for mbsnrtocws to consider // its fourth parameter (it wouldn't with NULL as first parameter). - wchar_t* __to = static_cast(__builtin_alloca(sizeof(wchar_t) + wchar_t* __to = static_cast(__builtin_alloca(sizeof(wchar_t) * __max)); while (__from < __end && __max) { @@ -264,7 +264,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } if (!__from) __from = __from_chunk_end; - + __ret += __from - __tmp_from; __max -= __conv; @@ -280,7 +280,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION uselocale((locale_t)__old); - return __ret; + return __ret; } #endif Index: libstdc++-v3/config/locale/dragonfly/collate_members.cc =================================================================== --- libstdc++-v3/config/locale/dragonfly/collate_members.cc (revision 235619) +++ libstdc++-v3/config/locale/dragonfly/collate_members.cc (working copy) @@ -39,30 +39,30 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // These are basically extensions to char_traits, and perhaps should // be put there instead of here. template<> - int - collate::_M_compare(const char* __one, + int + collate::_M_compare(const char* __one, const char* __two) const throw() - { + { int __cmp = strcoll_l(__one, __two, (locale_t)_M_c_locale_collate); return (__cmp >> (8 * sizeof (int) - 2)) | (__cmp != 0); } - + template<> size_t - collate::_M_transform(char* __to, const char* __from, + collate::_M_transform(char* __to, const char* __from, size_t __n) const throw() { return strxfrm_l(__to, __from, __n, (locale_t)_M_c_locale_collate); } #ifdef _GLIBCXX_USE_WCHAR_T template<> - int - collate::_M_compare(const wchar_t* __one, + int + collate::_M_compare(const wchar_t* __one, const wchar_t* __two) const throw() { int __cmp = wcscoll_l(__one, __two, (locale_t)_M_c_locale_collate); return (__cmp >> (8 * sizeof (int) - 2)) | (__cmp != 0); } - + template<> size_t collate::_M_transform(wchar_t* __to, const wchar_t* __from, Index: libstdc++-v3/config/locale/dragonfly/ctype_members.cc =================================================================== --- libstdc++-v3/config/locale/dragonfly/ctype_members.cc (revision 235619) +++ libstdc++-v3/config/locale/dragonfly/ctype_members.cc (working copy) @@ -44,12 +44,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: The other ctype specializations are in src/locale.cc and // various /config/os/* files. ctype_byname::ctype_byname(const char* __s, size_t __refs) - : ctype(0, false, __refs) - { + : ctype(0, false, __refs) + { if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_ctype); - this->_S_create_c_locale(this->_M_c_locale_ctype, __s); + this->_S_create_c_locale(this->_M_c_locale_ctype, __s); } } @@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype_byname::~ctype_byname() { } -#ifdef _GLIBCXX_USE_WCHAR_T +#ifdef _GLIBCXX_USE_WCHAR_T ctype::__wmask_type ctype::_M_convert_to_wmask(const mask __m) const throw() { @@ -104,7 +104,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __ret; } - + wchar_t ctype::do_toupper(wchar_t __c) const { return towupper_l(__c, (locale_t)_M_c_locale_ctype); } @@ -119,11 +119,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __hi; } - + wchar_t ctype::do_tolower(wchar_t __c) const { return towlower_l(__c, (locale_t)_M_c_locale_ctype); } - + const wchar_t* ctype::do_tolower(wchar_t* __lo, const wchar_t* __hi) const { @@ -140,7 +140,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION do_widen(char __c) const { return _M_widen[static_cast(__c)]; } - const char* + const char* ctype:: do_widen(const char* __lo, const char* __hi, wchar_t* __dest) const { @@ -162,12 +162,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __c_locale __old = (__c_locale)uselocale((locale_t)_M_c_locale_ctype); const int __c = wctob(__wc); uselocale((locale_t)__old); - return (__c == EOF ? __dfault : static_cast(__c)); + return (__c == EOF ? __dfault : static_cast(__c)); } const wchar_t* ctype:: - do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, + do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, char* __dest) const { __c_locale __old = (__c_locale)uselocale((locale_t)_M_c_locale_ctype); Index: libstdc++-v3/config/locale/dragonfly/monetary_members.cc =================================================================== --- libstdc++-v3/config/locale/dragonfly/monetary_members.cc (revision 235619) +++ libstdc++-v3/config/locale/dragonfly/monetary_members.cc (working copy) @@ -44,9 +44,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Construct and return valid pattern consisting of some combination of: // space none symbol sign value money_base::pattern - money_base::_S_construct_pattern(char __precedes, char __space, + money_base::_S_construct_pattern(char __precedes, char __space, char __posn) throw() - { + { pattern __ret; // This insanely complicated routine attempts to construct a valid @@ -54,7 +54,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // if (__precedes) symbol -> value // else value -> symbol - + // if (__space) space // else none @@ -139,7 +139,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (__precedes) { __ret.field[0] = sign; - __ret.field[1] = symbol; + __ret.field[1] = symbol; if (__space) { __ret.field[2] = space; @@ -147,7 +147,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - __ret.field[2] = value; + __ret.field[2] = value; __ret.field[3] = none; } } @@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void - moneypunct::_M_initialize_moneypunct(__c_locale __cloc, + moneypunct::_M_initialize_moneypunct(__c_locale __cloc, const char*) { if (!_M_data) @@ -270,7 +270,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __try { size_t __len; - + // Check for NULL, which implies no grouping. if (lc->mon_thousands_sep == NULL || lc->mon_thousands_sep[0] == '\0') @@ -365,7 +365,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void - moneypunct::_M_initialize_moneypunct(__c_locale __cloc, + moneypunct::_M_initialize_moneypunct(__c_locale __cloc, const char*) { if (!_M_data) @@ -550,7 +550,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #ifdef _GLIBCXX_USE_WCHAR_T template<> void - moneypunct::_M_initialize_moneypunct(__c_locale __cloc, + moneypunct::_M_initialize_moneypunct(__c_locale __cloc, const char*) { if (!_M_data) @@ -652,9 +652,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_positive_sign = L""; - _M_data->_M_positive_sign_size = + _M_data->_M_positive_sign_size = wcslen(_M_data->_M_positive_sign); - + __len = strlen(__cnegsign); if (!__nposn) _M_data->_M_negative_sign = L"()"; @@ -667,9 +667,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_negative_sign = L""; - _M_data->_M_negative_sign_size = + _M_data->_M_negative_sign_size = wcslen(_M_data->_M_negative_sign); - + // _Intl == true. __len = strlen(__ccurr); if (__len) @@ -689,11 +689,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data = 0; delete [] __group; delete [] __wcs_ps; - delete [] __wcs_ns; + delete [] __wcs_ns; uselocale((locale_t)__old); __throw_exception_again; - } - + } + char __pprecedes = lc->int_p_cs_precedes; char __pspace = lc->int_p_sep_by_space; char __pposn = lc->int_p_sign_posn; @@ -812,7 +812,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_positive_sign = L""; - _M_data->_M_positive_sign_size = + _M_data->_M_positive_sign_size = wcslen(_M_data->_M_positive_sign); __len = strlen(__cnegsign); @@ -827,7 +827,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_negative_sign = L""; - _M_data->_M_negative_sign_size = + _M_data->_M_negative_sign_size = wcslen(_M_data->_M_negative_sign); // _Intl == true. @@ -849,7 +849,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data = 0; delete [] __group; delete [] __wcs_ps; - delete [] __wcs_ns; + delete [] __wcs_ns; uselocale((locale_t)__old); __throw_exception_again; } Index: libstdc++-v3/config/locale/dragonfly/numeric_members.cc =================================================================== --- libstdc++-v3/config/locale/dragonfly/numeric_members.cc (revision 235619) +++ libstdc++-v3/config/locale/dragonfly/numeric_members.cc (working copy) @@ -37,7 +37,7 @@ namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale __cloc) { @@ -123,8 +123,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_falsename = "false"; _M_data->_M_falsename_size = 5; } - - template<> + + template<> numpunct::~numpunct() { if (_M_data->_M_grouping_size) @@ -131,9 +131,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION delete [] _M_data->_M_grouping; delete _M_data; } - + #ifdef _GLIBCXX_USE_WCHAR_T - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale __cloc) { @@ -222,7 +222,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_falsename_size = 5; } - template<> + template<> numpunct::~numpunct() { if (_M_data->_M_grouping_size) Index: libstdc++-v3/config/locale/dragonfly/time_members.cc =================================================================== --- libstdc++-v3/config/locale/dragonfly/time_members.cc (revision 235619) +++ libstdc++-v3/config/locale/dragonfly/time_members.cc (working copy) @@ -44,7 +44,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void __timepunct:: - _M_put(char* __s, size_t __maxlen, const char* __format, + _M_put(char* __s, size_t __maxlen, const char* __format, const tm* __tm) const throw() { const size_t __len = strftime_l(__s, __maxlen, __format, __tm, @@ -54,7 +54,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __s[0] = '\0'; } - template<> + template<> void __timepunct::_M_initialize_timepunct(__c_locale __cloc) { @@ -124,7 +124,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - _M_c_locale_timepunct = _S_clone_c_locale(__cloc); + _M_c_locale_timepunct = _S_clone_c_locale(__cloc); _M_data->_M_date_format = nl_langinfo_l(D_FMT, (locale_t)__cloc); _M_data->_M_date_era_format = nl_langinfo_l(ERA_D_FMT, @@ -193,7 +193,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void __timepunct:: - _M_put(wchar_t* __s, size_t __maxlen, const wchar_t* __format, + _M_put(wchar_t* __s, size_t __maxlen, const wchar_t* __format, const tm* __tm) const throw() { const size_t __len = wcsftime_l(__s, __maxlen, __format, __tm, @@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION langstring[fmtlen] = L'\0'; \ _M_data->M = langstring; - template<> + template<> void __timepunct::_M_initialize_timepunct(__c_locale __cloc) { @@ -285,7 +285,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION wchar_t holder[128]; size_t fmtlen; - _M_c_locale_timepunct = _S_clone_c_locale(__cloc); + _M_c_locale_timepunct = _S_clone_c_locale(__cloc); WIDE_LANGINFO(_M_date_format, D_FMT) WIDE_LANGINFO(_M_date_era_format, ERA_D_FMT) @@ -345,7 +345,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } } - template<> + template<> __timepunct::~__timepunct() { delete [] _M_data->_M_date_format; Index: libstdc++-v3/config/locale/dragonfly/time_members.h =================================================================== --- libstdc++-v3/config/locale/dragonfly/time_members.h (revision 235619) +++ libstdc++-v3/config/locale/dragonfly/time_members.h (working copy) @@ -40,21 +40,21 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION template - __timepunct<_CharT>::__timepunct(size_t __refs) - : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), + __timepunct<_CharT>::__timepunct(size_t __refs) + : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template - __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) - : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(0), + __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) + : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s, - size_t __refs) - : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), + size_t __refs) + : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(0) { if (__builtin_strcmp(__s, _S_get_c_name()) != 0) @@ -79,11 +79,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template __timepunct<_CharT>::~__timepunct() - { + { if (_M_name_timepunct != _S_get_c_name()) delete [] _M_name_timepunct; - delete _M_data; - _S_destroy_c_locale(_M_c_locale_timepunct); + delete _M_data; + _S_destroy_c_locale(_M_c_locale_timepunct); } // specialization Index: libstdc++-v3/config/locale/generic/c_locale.h =================================================================== --- libstdc++-v3/config/locale/generic/c_locale.h (revision 235619) +++ libstdc++-v3/config/locale/generic/c_locale.h (working copy) @@ -53,7 +53,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // fall back to the unsafe vsprintf which, in general, can be dangerous // and should be avoided. inline int - __convert_from_v(const __c_locale&, char* __out, + __convert_from_v(const __c_locale&, char* __out, const int __size __attribute__((__unused__)), const char* __fmt, ...) { Index: libstdc++-v3/config/locale/generic/codecvt_members.cc =================================================================== --- libstdc++-v3/config/locale/generic/codecvt_members.cc (revision 235619) +++ libstdc++-v3/config/locale/generic/codecvt_members.cc (working copy) @@ -41,7 +41,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #ifdef _GLIBCXX_USE_WCHAR_T codecvt_base::result codecvt:: - do_out(state_type& __state, const intern_type* __from, + do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const @@ -88,7 +88,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __ret = partial; break; } - + memcpy(__to, __buf, __conv); __state = __tmp_state; __to += __conv; @@ -101,12 +101,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __from_next = __from; __to_next = __to; - return __ret; + return __ret; } - + codecvt_base::result codecvt:: - do_in(state_type& __state, const extern_type* __from, + do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const @@ -153,10 +153,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __from_next = __from; __to_next = __to; - return __ret; + return __ret; } - int + int codecvt:: do_encoding() const throw() { @@ -166,9 +166,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (MB_CUR_MAX == 1) __ret = 1; return __ret; - } + } - int + int codecvt:: do_max_length() const throw() { @@ -176,8 +176,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION int __ret = MB_CUR_MAX; return __ret; } - - int + + int codecvt:: do_length(state_type& __state, const extern_type* __from, const extern_type* __end, size_t __max) const @@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __max--; } - return __ret; + return __ret; } #endif Index: libstdc++-v3/config/locale/generic/collate_members.cc =================================================================== --- libstdc++-v3/config/locale/generic/collate_members.cc (revision 235619) +++ libstdc++-v3/config/locale/generic/collate_members.cc (working copy) @@ -38,30 +38,30 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // These are basically extensions to char_traits, and perhaps should // be put there instead of here. template<> - int - collate::_M_compare(const char* __one, + int + collate::_M_compare(const char* __one, const char* __two) const throw() - { + { int __cmp = strcoll(__one, __two); return (__cmp >> (8 * sizeof (int) - 2)) | (__cmp != 0); } - + template<> size_t - collate::_M_transform(char* __to, const char* __from, + collate::_M_transform(char* __to, const char* __from, size_t __n) const throw() { return strxfrm(__to, __from, __n); } #ifdef _GLIBCXX_USE_WCHAR_T template<> - int - collate::_M_compare(const wchar_t* __one, + int + collate::_M_compare(const wchar_t* __one, const wchar_t* __two) const throw() { int __cmp = wcscoll(__one, __two); return (__cmp >> (8 * sizeof (int) - 2)) | (__cmp != 0); } - + template<> size_t collate::_M_transform(wchar_t* __to, const wchar_t* __from, Index: libstdc++-v3/config/locale/generic/ctype_members.cc =================================================================== --- libstdc++-v3/config/locale/generic/ctype_members.cc (revision 235619) +++ libstdc++-v3/config/locale/generic/ctype_members.cc (working copy) @@ -40,12 +40,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: The other ctype specializations are in src/locale.cc and // various /config/os/* files. ctype_byname::ctype_byname(const char* __s, size_t __refs) - : ctype(0, false, __refs) - { + : ctype(0, false, __refs) + { if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_ctype); - this->_S_create_c_locale(this->_M_c_locale_ctype, __s); + this->_S_create_c_locale(this->_M_c_locale_ctype, __s); } } @@ -52,7 +52,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype_byname::~ctype_byname() { } -#ifdef _GLIBCXX_USE_WCHAR_T +#ifdef _GLIBCXX_USE_WCHAR_T ctype::__wmask_type ctype::_M_convert_to_wmask(const mask __m) const throw() { @@ -102,7 +102,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __ret; }; - + wchar_t ctype::do_toupper(wchar_t __c) const { return towupper(__c); } @@ -117,11 +117,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __hi; } - + wchar_t ctype::do_tolower(wchar_t __c) const { return towlower(__c); } - + const wchar_t* ctype::do_tolower(wchar_t* __lo, const wchar_t* __hi) const { @@ -136,11 +136,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION bool ctype:: do_is(mask __m, char_type __c) const - { + { bool __ret = false; // Generically, 15 (instead of 11) since we don't know the numerical // encoding of the various categories in /usr/include/ctype.h. - const size_t __bitmasksize = 15; + const size_t __bitmasksize = 15; for (size_t __bitcur = 0; __bitcur <= __bitmasksize; ++__bitcur) if (__m & _M_bit[__bitcur] && iswctype(__c, _M_wmask[__bitcur])) @@ -148,10 +148,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __ret = true; break; } - return __ret; + return __ret; } - - const wchar_t* + + const wchar_t* ctype:: do_is(const wchar_t* __lo, const wchar_t* __hi, mask* __vec) const { @@ -159,7 +159,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { // Generically, 15 (instead of 11) since we don't know the numerical // encoding of the various categories in /usr/include/ctype.h. - const size_t __bitmasksize = 15; + const size_t __bitmasksize = 15; mask __m = 0; for (size_t __bitcur = 0; __bitcur <= __bitmasksize; ++__bitcur) if (iswctype(*__lo, _M_wmask[__bitcur])) @@ -168,8 +168,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __hi; } - - const wchar_t* + + const wchar_t* ctype:: do_scan_is(mask __m, const wchar_t* __lo, const wchar_t* __hi) const { @@ -191,8 +191,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: do_widen(char __c) const { return _M_widen[static_cast(__c)]; } - - const char* + + const char* ctype:: do_widen(const char* __lo, const char* __hi, wchar_t* __dest) const { @@ -208,16 +208,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION char ctype:: do_narrow(wchar_t __wc, char __dfault) const - { + { if (__wc >= 0 && __wc < 128 && _M_narrow_ok) return _M_narrow[__wc]; const int __c = wctob(__wc); - return (__c == EOF ? __dfault : static_cast(__c)); + return (__c == EOF ? __dfault : static_cast(__c)); } const wchar_t* ctype:: - do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, + do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, char* __dest) const { if (_M_narrow_ok) @@ -265,10 +265,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_widen[__i] = btowc(__i); for (size_t __i = 0; __i <= 15; ++__i) - { + { _M_bit[__i] = static_cast(1 << __i); _M_wmask[__i] = _M_convert_to_wmask(_M_bit[__i]); - } + } } #endif // _GLIBCXX_USE_WCHAR_T Index: libstdc++-v3/config/locale/generic/messages_members.h =================================================================== --- libstdc++-v3/config/locale/generic/messages_members.h (revision 235619) +++ libstdc++-v3/config/locale/generic/messages_members.h (working copy) @@ -44,13 +44,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { _M_c_locale_messages = _S_get_c_locale(); } template - messages<_CharT>::messages(__c_locale, const char*, size_t __refs) + messages<_CharT>::messages(__c_locale, const char*, size_t __refs) : facet(__refs) { _M_c_locale_messages = _S_get_c_locale(); } template - typename messages<_CharT>::catalog - messages<_CharT>::open(const basic_string& __s, const locale& __loc, + typename messages<_CharT>::catalog + messages<_CharT>::open(const basic_string& __s, const locale& __loc, const char*) const { return this->do_open(__s, __loc); } @@ -60,31 +60,31 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { _S_destroy_c_locale(_M_c_locale_messages); } template - typename messages<_CharT>::catalog + typename messages<_CharT>::catalog messages<_CharT>::do_open(const basic_string&, const locale&) const { return 0; } template - typename messages<_CharT>::string_type - messages<_CharT>::do_get(catalog, int, int, + typename messages<_CharT>::string_type + messages<_CharT>::do_get(catalog, int, int, const string_type& __dfault) const { return __dfault; } template - void - messages<_CharT>::do_close(catalog) const + void + messages<_CharT>::do_close(catalog) const { } // messages_byname template messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs) - : messages<_CharT>(__refs) - { + : messages<_CharT>(__refs) + { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_messages); - this->_S_create_c_locale(this->_M_c_locale_messages, __s); + this->_S_create_c_locale(this->_M_c_locale_messages, __s); } } Index: libstdc++-v3/config/locale/generic/numeric_members.cc =================================================================== --- libstdc++-v3/config/locale/generic/numeric_members.cc (revision 235619) +++ libstdc++-v3/config/locale/generic/numeric_members.cc (working copy) @@ -34,7 +34,7 @@ namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale) { @@ -48,10 +48,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_decimal_point = '.'; _M_data->_M_thousands_sep = ','; - + for (size_t __i = 0; __i < __num_base::_S_oend; ++__i) _M_data->_M_atoms_out[__i] = __num_base::_S_atoms_out[__i]; - + for (size_t __i = 0; __i < __num_base::_S_iend; ++__i) _M_data->_M_atoms_in[__i] = __num_base::_S_atoms_in[__i]; @@ -61,12 +61,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_falsename_size = 5; } - template<> + template<> numpunct::~numpunct() { delete _M_data; } - + #ifdef _GLIBCXX_USE_WCHAR_T - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale) { @@ -77,15 +77,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_grouping = ""; _M_data->_M_grouping_size = 0; _M_data->_M_use_grouping = false; - + _M_data->_M_decimal_point = L'.'; _M_data->_M_thousands_sep = L','; - + // Use ctype::widen code without the facet... for (size_t __i = 0; __i < __num_base::_S_oend; ++__i) _M_data->_M_atoms_out[__i] = static_cast(__num_base::_S_atoms_out[__i]); - + for (size_t __i = 0; __i < __num_base::_S_iend; ++__i) _M_data->_M_atoms_in[__i] = static_cast(__num_base::_S_atoms_in[__i]); @@ -96,7 +96,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_falsename_size = 5; } - template<> + template<> numpunct::~numpunct() { delete _M_data; } #endif Index: libstdc++-v3/config/locale/generic/time_members.h =================================================================== --- libstdc++-v3/config/locale/generic/time_members.h (revision 235619) +++ libstdc++-v3/config/locale/generic/time_members.h (working copy) @@ -39,24 +39,24 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION template - __timepunct<_CharT>::__timepunct(size_t __refs) + __timepunct<_CharT>::__timepunct(size_t __refs) : facet(__refs), _M_data(0) - { + { _M_name_timepunct = _S_get_c_name(); - _M_initialize_timepunct(); + _M_initialize_timepunct(); } template - __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) + __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) : facet(__refs), _M_data(__cache) - { + { _M_name_timepunct = _S_get_c_name(); - _M_initialize_timepunct(); + _M_initialize_timepunct(); } template - __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s, - size_t __refs) + __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s, + size_t __refs) : facet(__refs), _M_data(0) { if (__builtin_strcmp(__s, _S_get_c_name()) != 0) @@ -81,11 +81,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template __timepunct<_CharT>::~__timepunct() - { + { if (_M_name_timepunct != _S_get_c_name()) delete [] _M_name_timepunct; delete _M_data; - _S_destroy_c_locale(_M_c_locale_timepunct); + _S_destroy_c_locale(_M_c_locale_timepunct); } _GLIBCXX_END_NAMESPACE_VERSION Index: libstdc++-v3/config/locale/gnu/c++locale_internal.h =================================================================== --- libstdc++-v3/config/locale/gnu/c++locale_internal.h (revision 235619) +++ libstdc++-v3/config/locale/gnu/c++locale_internal.h (working copy) @@ -63,7 +63,7 @@ extern "C" __typeof(wcscoll_l) __wcscoll_l; extern "C" __typeof(wcsftime_l) __wcsftime_l; extern "C" __typeof(wcsxfrm_l) __wcsxfrm_l; extern "C" __typeof(wctype_l) __wctype_l; -#endif +#endif #endif // GLIBC 2.3 and later Index: libstdc++-v3/config/locale/gnu/c_locale.cc =================================================================== --- libstdc++-v3/config/locale/gnu/c_locale.cc (revision 235619) +++ libstdc++-v3/config/locale/gnu/c_locale.cc (working copy) @@ -43,7 +43,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void - __convert_to_v(const char* __s, float& __v, ios_base::iostate& __err, + __convert_to_v(const char* __s, float& __v, ios_base::iostate& __err, const __c_locale& __cloc) throw() { char* __sanity; @@ -70,7 +70,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void - __convert_to_v(const char* __s, double& __v, ios_base::iostate& __err, + __convert_to_v(const char* __s, double& __v, ios_base::iostate& __err, const __c_locale& __cloc) throw() { char* __sanity; @@ -129,7 +129,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } void - locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s, + locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s, __c_locale __old) { __cloc = __newlocale(1 << LC_ALL, __s, __old); @@ -145,7 +145,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION locale::facet::_S_destroy_c_locale(__c_locale& __cloc) { if (__cloc && _S_get_c_locale() != __cloc) - __freelocale(__cloc); + __freelocale(__cloc); } __c_locale @@ -261,18 +261,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION const char* const category_names[6 + _GLIBCXX_NUM_CATEGORIES] = { - "LC_CTYPE", + "LC_CTYPE", "LC_NUMERIC", - "LC_TIME", - "LC_COLLATE", + "LC_TIME", + "LC_COLLATE", "LC_MONETARY", - "LC_MESSAGES", - "LC_PAPER", - "LC_NAME", + "LC_MESSAGES", + "LC_PAPER", + "LC_NAME", "LC_ADDRESS", - "LC_TELEPHONE", - "LC_MEASUREMENT", - "LC_IDENTIFICATION" + "LC_TELEPHONE", + "LC_MEASUREMENT", + "LC_IDENTIFICATION" }; _GLIBCXX_END_NAMESPACE_VERSION Index: libstdc++-v3/config/locale/gnu/codecvt_members.cc =================================================================== --- libstdc++-v3/config/locale/gnu/codecvt_members.cc (revision 235619) +++ libstdc++-v3/config/locale/gnu/codecvt_members.cc (working copy) @@ -41,7 +41,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #ifdef _GLIBCXX_USE_WCHAR_T codecvt_base::result codecvt:: - do_out(state_type& __state, const intern_type* __from, + do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const @@ -111,12 +111,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __uselocale(__old); #endif - return __ret; + return __ret; } - + codecvt_base::result codecvt:: - do_in(state_type& __state, const extern_type* __from, + do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const @@ -160,12 +160,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION break; } __from_next = __from; - __state = __tmp_state; + __state = __tmp_state; __ret = error; } else if (__from_next && __from_next < __from_chunk_end) { - // It is unclear what to return in this case (see DR 382). + // It is unclear what to return in this case (see DR 382). __to_next += __conv; __ret = partial; } @@ -180,7 +180,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (__to_next < __to_end) { // XXX Probably wrong for stateful encodings - __tmp_state = __state; + __tmp_state = __state; ++__from_next; *__to_next++ = L'\0'; } @@ -193,10 +193,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __uselocale(__old); #endif - return __ret; + return __ret; } - int + int codecvt:: do_encoding() const throw() { @@ -212,9 +212,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __uselocale(__old); #endif return __ret; - } + } - int + int codecvt:: do_max_length() const throw() { @@ -228,8 +228,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #endif return __ret; } - - int + + int codecvt:: do_length(state_type& __state, const extern_type* __from, const extern_type* __end, size_t __max) const @@ -244,10 +244,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // mbsnrtowcs is *very* fast but stops if encounters NUL characters: // in case we advance past it and then continue, in a loop. // NB: mbsnrtowcs is a GNU extension - + // A dummy internal buffer is needed in order for mbsnrtocws to consider // its fourth parameter (it wouldn't with NULL as first parameter). - wchar_t* __to = static_cast(__builtin_alloca(sizeof(wchar_t) + wchar_t* __to = static_cast(__builtin_alloca(sizeof(wchar_t) * __max)); while (__from < __end && __max) { @@ -281,7 +281,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } if (!__from) __from = __from_chunk_end; - + __ret += __from - __tmp_from; __max -= __conv; @@ -299,7 +299,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __uselocale(__old); #endif - return __ret; + return __ret; } #endif Index: libstdc++-v3/config/locale/gnu/collate_members.cc =================================================================== --- libstdc++-v3/config/locale/gnu/collate_members.cc (revision 235619) +++ libstdc++-v3/config/locale/gnu/collate_members.cc (working copy) @@ -38,30 +38,30 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // These are basically extensions to char_traits, and perhaps should // be put there instead of here. template<> - int - collate::_M_compare(const char* __one, + int + collate::_M_compare(const char* __one, const char* __two) const throw() - { + { int __cmp = __strcoll_l(__one, __two, _M_c_locale_collate); return (__cmp >> (8 * sizeof (int) - 2)) | (__cmp != 0); } - + template<> size_t - collate::_M_transform(char* __to, const char* __from, + collate::_M_transform(char* __to, const char* __from, size_t __n) const throw() { return __strxfrm_l(__to, __from, __n, _M_c_locale_collate); } #ifdef _GLIBCXX_USE_WCHAR_T template<> - int - collate::_M_compare(const wchar_t* __one, + int + collate::_M_compare(const wchar_t* __one, const wchar_t* __two) const throw() { int __cmp = __wcscoll_l(__one, __two, _M_c_locale_collate); return (__cmp >> (8 * sizeof (int) - 2)) | (__cmp != 0); } - + template<> size_t collate::_M_transform(wchar_t* __to, const wchar_t* __from, Index: libstdc++-v3/config/locale/gnu/ctype_members.cc =================================================================== --- libstdc++-v3/config/locale/gnu/ctype_members.cc (revision 235619) +++ libstdc++-v3/config/locale/gnu/ctype_members.cc (working copy) @@ -39,12 +39,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: The other ctype specializations are in src/locale.cc and // various /config/os/* files. ctype_byname::ctype_byname(const char* __s, size_t __refs) - : ctype(0, false, __refs) - { + : ctype(0, false, __refs) + { if (std::strcmp(__s, "C") != 0 && std::strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_ctype); - this->_S_create_c_locale(this->_M_c_locale_ctype, __s); + this->_S_create_c_locale(this->_M_c_locale_ctype, __s); this->_M_toupper = this->_M_c_locale_ctype->__ctype_toupper; this->_M_tolower = this->_M_c_locale_ctype->__ctype_tolower; this->_M_table = this->_M_c_locale_ctype->__ctype_b; @@ -54,7 +54,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype_byname::~ctype_byname() { } -#ifdef _GLIBCXX_USE_WCHAR_T +#ifdef _GLIBCXX_USE_WCHAR_T ctype::__wmask_type ctype::_M_convert_to_wmask(const mask __m) const throw() { @@ -102,7 +102,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __ret; } - + wchar_t ctype::do_toupper(wchar_t __c) const { return __towupper_l(__c, _M_c_locale_ctype); } @@ -117,11 +117,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __hi; } - + wchar_t ctype::do_tolower(wchar_t __c) const { return __towlower_l(__c, _M_c_locale_ctype); } - + const wchar_t* ctype::do_tolower(wchar_t* __lo, const wchar_t* __hi) const { @@ -136,7 +136,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION bool ctype:: do_is(mask __m, wchar_t __c) const - { + { // The case of __m == ctype_base::space is particularly important, // due to its use in many istream functions. Therefore we deal with // it first, exploiting the knowledge that on GNU systems _M_bit[5] @@ -161,10 +161,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION break; } } - return __ret; + return __ret; } - const wchar_t* + const wchar_t* ctype:: do_is(const wchar_t* __lo, const wchar_t* __hi, mask* __vec) const { @@ -171,7 +171,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION for (; __lo < __hi; ++__vec, ++__lo) { // Highest bitmask in ctype_base == 11 - const size_t __bitmasksize = 11; + const size_t __bitmasksize = 11; mask __m = 0; for (size_t __bitcur = 0; __bitcur <= __bitmasksize; ++__bitcur) if (__iswctype_l(*__lo, _M_wmask[__bitcur], _M_c_locale_ctype)) @@ -180,8 +180,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } return __hi; } - - const wchar_t* + + const wchar_t* ctype:: do_scan_is(mask __m, const wchar_t* __lo, const wchar_t* __hi) const { @@ -204,7 +204,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION do_widen(char __c) const { return _M_widen[static_cast(__c)]; } - const char* + const char* ctype:: do_widen(const char* __lo, const char* __hi, wchar_t* __dest) const { @@ -230,12 +230,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) __uselocale(__old); #endif - return (__c == EOF ? __dfault : static_cast(__c)); + return (__c == EOF ? __dfault : static_cast(__c)); } const wchar_t* ctype:: - do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, + do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault, char* __dest) const { #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) @@ -292,7 +292,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_widen[__j] = btowc(__j); for (size_t __k = 0; __k <= 11; ++__k) - { + { _M_bit[__k] = static_cast(_ISbit(__k)); _M_wmask[__k] = _M_convert_to_wmask(_M_bit[__k]); } Index: libstdc++-v3/config/locale/gnu/monetary_members.cc =================================================================== --- libstdc++-v3/config/locale/gnu/monetary_members.cc (revision 235619) +++ libstdc++-v3/config/locale/gnu/monetary_members.cc (working copy) @@ -42,9 +42,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Construct and return valid pattern consisting of some combination of: // space none symbol sign value money_base::pattern - money_base::_S_construct_pattern(char __precedes, char __space, + money_base::_S_construct_pattern(char __precedes, char __space, char __posn) throw() - { + { pattern __ret; // This insanely complicated routine attempts to construct a valid @@ -52,7 +52,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // if (__precedes) symbol -> value // else value -> symbol - + // if (__space) space // else none @@ -137,7 +137,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (__precedes) { __ret.field[0] = sign; - __ret.field[1] = symbol; + __ret.field[1] = symbol; if (__space) { __ret.field[2] = space; @@ -145,7 +145,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - __ret.field[2] = value; + __ret.field[2] = value; __ret.field[3] = none; } } @@ -207,9 +207,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } #endif - template<> + template<> void - moneypunct::_M_initialize_moneypunct(__c_locale __cloc, + moneypunct::_M_initialize_moneypunct(__c_locale __cloc, const char*) { if (!_M_data) @@ -239,9 +239,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION else { // Named locale. - _M_data->_M_decimal_point = *(__nl_langinfo_l(__MON_DECIMAL_POINT, + _M_data->_M_decimal_point = *(__nl_langinfo_l(__MON_DECIMAL_POINT, __cloc)); - _M_data->_M_thousands_sep = *(__nl_langinfo_l(__MON_THOUSANDS_SEP, + _M_data->_M_thousands_sep = *(__nl_langinfo_l(__MON_THOUSANDS_SEP, __cloc)); // Check for NULL, which implies no fractional digits. @@ -252,7 +252,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_decimal_point = '.'; } else - _M_data->_M_frac_digits = *(__nl_langinfo_l(__INT_FRAC_DIGITS, + _M_data->_M_frac_digits = *(__nl_langinfo_l(__INT_FRAC_DIGITS, __cloc)); const char* __cgroup = __nl_langinfo_l(__MON_GROUPING, __cloc); @@ -264,11 +264,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION char* __group = 0; char* __ps = 0; char* __ns = 0; - const char __nposn = *(__nl_langinfo_l(__INT_N_SIGN_POSN, __cloc)); + const char __nposn = *(__nl_langinfo_l(__INT_N_SIGN_POSN, __cloc)); __try { size_t __len; - + // Check for NULL, which implies no grouping. if (_M_data->_M_thousands_sep == '\0') { @@ -358,9 +358,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } } - template<> + template<> void - moneypunct::_M_initialize_moneypunct(__c_locale __cloc, + moneypunct::_M_initialize_moneypunct(__c_locale __cloc, const char*) { if (!_M_data) @@ -390,9 +390,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION else { // Named locale. - _M_data->_M_decimal_point = *(__nl_langinfo_l(__MON_DECIMAL_POINT, + _M_data->_M_decimal_point = *(__nl_langinfo_l(__MON_DECIMAL_POINT, __cloc)); - _M_data->_M_thousands_sep = *(__nl_langinfo_l(__MON_THOUSANDS_SEP, + _M_data->_M_thousands_sep = *(__nl_langinfo_l(__MON_THOUSANDS_SEP, __cloc)); // Check for NULL, which implies no fractional digits. @@ -509,7 +509,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } } - template<> + template<> moneypunct::~moneypunct() { if (_M_data->_M_grouping_size) @@ -524,7 +524,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION delete _M_data; } - template<> + template<> moneypunct::~moneypunct() { if (_M_data->_M_grouping_size) @@ -540,9 +540,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } #ifdef _GLIBCXX_USE_WCHAR_T - template<> + template<> void - moneypunct::_M_initialize_moneypunct(__c_locale __cloc, + moneypunct::_M_initialize_moneypunct(__c_locale __cloc, #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) const char*) #else @@ -604,7 +604,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_decimal_point = L'.'; } else - _M_data->_M_frac_digits = *(__nl_langinfo_l(__INT_FRAC_DIGITS, + _M_data->_M_frac_digits = *(__nl_langinfo_l(__INT_FRAC_DIGITS, __cloc)); const char* __cgroup = __nl_langinfo_l(__MON_GROUPING, __cloc); @@ -657,9 +657,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_positive_sign = L""; - _M_data->_M_positive_sign_size = + _M_data->_M_positive_sign_size = wcslen(_M_data->_M_positive_sign); - + __len = strlen(__cnegsign); if (!__nposn) _M_data->_M_negative_sign = L"()"; @@ -672,9 +672,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_negative_sign = L""; - _M_data->_M_negative_sign_size = + _M_data->_M_negative_sign_size = wcslen(_M_data->_M_negative_sign); - + // _Intl == true. __len = strlen(__ccurr); if (__len) @@ -694,7 +694,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data = 0; delete [] __group; delete [] __wcs_ps; - delete [] __wcs_ns; + delete [] __wcs_ns; #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) __uselocale(__old); #else @@ -702,8 +702,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION delete [] __sav; #endif __throw_exception_again; - } - + } + char __pprecedes = *(__nl_langinfo_l(__INT_P_CS_PRECEDES, __cloc)); char __pspace = *(__nl_langinfo_l(__INT_P_SEP_BY_SPACE, __cloc)); char __pposn = *(__nl_langinfo_l(__INT_P_SIGN_POSN, __cloc)); @@ -723,7 +723,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } } - template<> + template<> void moneypunct::_M_initialize_moneypunct(__c_locale __cloc, #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) @@ -840,7 +840,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_positive_sign = L""; - _M_data->_M_positive_sign_size = + _M_data->_M_positive_sign_size = wcslen(_M_data->_M_positive_sign); __len = strlen(__cnegsign); @@ -855,7 +855,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else _M_data->_M_negative_sign = L""; - _M_data->_M_negative_sign_size = + _M_data->_M_negative_sign_size = wcslen(_M_data->_M_negative_sign); // _Intl == true. @@ -877,7 +877,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data = 0; delete [] __group; delete [] __wcs_ps; - delete [] __wcs_ns; + delete [] __wcs_ns; #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) __uselocale(__old); #else @@ -906,7 +906,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } } - template<> + template<> moneypunct::~moneypunct() { if (_M_data->_M_grouping_size) @@ -921,7 +921,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION delete _M_data; } - template<> + template<> moneypunct::~moneypunct() { if (_M_data->_M_grouping_size) Index: libstdc++-v3/config/locale/gnu/numeric_members.cc =================================================================== --- libstdc++-v3/config/locale/gnu/numeric_members.cc (revision 235619) +++ libstdc++-v3/config/locale/gnu/numeric_members.cc (working copy) @@ -35,7 +35,7 @@ namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale __cloc) { @@ -61,9 +61,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION else { // Named locale. - _M_data->_M_decimal_point = *(__nl_langinfo_l(DECIMAL_POINT, + _M_data->_M_decimal_point = *(__nl_langinfo_l(DECIMAL_POINT, __cloc)); - _M_data->_M_thousands_sep = *(__nl_langinfo_l(THOUSANDS_SEP, + _M_data->_M_thousands_sep = *(__nl_langinfo_l(THOUSANDS_SEP, __cloc)); // Check for NULL, which implies no grouping. @@ -111,8 +111,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_falsename = "false"; _M_data->_M_falsename_size = 5; } - - template<> + + template<> numpunct::~numpunct() { if (_M_data->_M_grouping_size) @@ -119,9 +119,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION delete [] _M_data->_M_grouping; delete _M_data; } - + #ifdef _GLIBCXX_USE_WCHAR_T - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale __cloc) { @@ -204,7 +204,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_data->_M_falsename_size = 5; } - template<> + template<> numpunct::~numpunct() { if (_M_data->_M_grouping_size) Index: libstdc++-v3/config/locale/gnu/time_members.cc =================================================================== --- libstdc++-v3/config/locale/gnu/time_members.cc (revision 235619) +++ libstdc++-v3/config/locale/gnu/time_members.cc (working copy) @@ -39,7 +39,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void __timepunct:: - _M_put(char* __s, size_t __maxlen, const char* __format, + _M_put(char* __s, size_t __maxlen, const char* __format, const tm* __tm) const throw() { #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) @@ -47,7 +47,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_c_locale_timepunct); #else char* __old = setlocale(LC_ALL, 0); - const size_t __llen = strlen(__old) + 1; + const size_t __llen = strlen(__old) + 1; char* __sav = new char[__llen]; memcpy(__sav, __old, __llen); setlocale(LC_ALL, _M_name_timepunct); @@ -60,7 +60,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __s[0] = '\0'; } - template<> + template<> void __timepunct::_M_initialize_timepunct(__c_locale __cloc) { @@ -130,7 +130,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - _M_c_locale_timepunct = _S_clone_c_locale(__cloc); + _M_c_locale_timepunct = _S_clone_c_locale(__cloc); _M_data->_M_date_format = __nl_langinfo_l(D_FMT, __cloc); _M_data->_M_date_era_format = __nl_langinfo_l(ERA_D_FMT, __cloc); @@ -195,7 +195,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<> void __timepunct:: - _M_put(wchar_t* __s, size_t __maxlen, const wchar_t* __format, + _M_put(wchar_t* __s, size_t __maxlen, const wchar_t* __format, const tm* __tm) const throw() { #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) @@ -216,7 +216,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __s[0] = L'\0'; } - template<> + template<> void __timepunct::_M_initialize_timepunct(__c_locale __cloc) { @@ -286,7 +286,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - _M_c_locale_timepunct = _S_clone_c_locale(__cloc); + _M_c_locale_timepunct = _S_clone_c_locale(__cloc); union { char *__s; wchar_t *__w; } __u; Index: libstdc++-v3/config/locale/gnu/time_members.h =================================================================== --- libstdc++-v3/config/locale/gnu/time_members.h (revision 235619) +++ libstdc++-v3/config/locale/gnu/time_members.h (working copy) @@ -39,21 +39,21 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION template - __timepunct<_CharT>::__timepunct(size_t __refs) - : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), + __timepunct<_CharT>::__timepunct(size_t __refs) + : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template - __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) - : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(0), + __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) + : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s, - size_t __refs) - : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), + size_t __refs) + : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(0) { if (__builtin_strcmp(__s, _S_get_c_name()) != 0) @@ -78,11 +78,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template __timepunct<_CharT>::~__timepunct() - { + { if (_M_name_timepunct != _S_get_c_name()) delete [] _M_name_timepunct; - delete _M_data; - _S_destroy_c_locale(_M_c_locale_timepunct); + delete _M_data; + _S_destroy_c_locale(_M_c_locale_timepunct); } _GLIBCXX_END_NAMESPACE_VERSION Index: libstdc++-v3/config/locale/ieee_1003.1-2001/c_locale.cc =================================================================== --- libstdc++-v3/config/locale/ieee_1003.1-2001/c_locale.cc (revision 235619) +++ libstdc++-v3/config/locale/ieee_1003.1-2001/c_locale.cc (working copy) @@ -30,7 +30,7 @@ #include -namespace std _GLIBCXX_VISIBILITY(default) +namespace std _GLIBCXX_VISIBILITY(default) { void locale::facet::_S_create_c_locale(__c_locale&, const char*, __c_locale*) @@ -44,7 +44,7 @@ locale::facet::_S_clone_c_locale(__c_locale&) throw() { return __c_locale(); } - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale) { @@ -55,9 +55,9 @@ _M_truename = "true"; _M_falsename = "false"; } - + #ifdef _GLIBCXX_USE_WCHAR_T - template<> + template<> void numpunct::_M_initialize_numpunct(__c_locale) { @@ -70,7 +70,7 @@ } #endif - template<> + template<> void moneypunct::_M_initialize_moneypunct(__c_locale) { @@ -87,7 +87,7 @@ } #ifdef _GLIBCXX_USE_WCHAR_T - template<> + template<> void moneypunct::_M_initialize_moneypunct(__c_locale) { Index: libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.cc =================================================================== --- libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.cc (revision 235619) +++ libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.cc (working copy) @@ -35,11 +35,11 @@ namespace std _GLIBCXX_VISIBILITY(default) // Specializations template<> string - messages::do_get(catalog __c, int __setid, int __msgid, + messages::do_get(catalog __c, int __setid, int __msgid, const string& __dfault) const { nl_catd __nlc = reinterpret_cast(__c); - return string(catgets(__nlc, __setid, __msgid, __dfault.c_str())); + return string(catgets(__nlc, __setid, __msgid, __dfault.c_str())); } #ifdef _GLIBCXX_USE_WCHAR_T @@ -48,7 +48,7 @@ namespace std _GLIBCXX_VISIBILITY(default) messages::do_get(catalog, int, int, const wstring& __dfault) const { nl_catd __nlc = reinterpret_cast(__c); - char* __msg = catgets(__nlc, __setid, __msgid, + char* __msg = catgets(__nlc, __setid, __msgid, _M_convert_to_char(__dfault)); return _M_convert_from_char(__msg); } Index: libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h =================================================================== --- libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h (revision 235619) +++ libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h (working copy) @@ -39,8 +39,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Non-virtual member functions. template - typename messages<_CharT>::catalog - messages<_CharT>::open(const basic_string& __s, const locale& __loc, + typename messages<_CharT>::catalog + messages<_CharT>::open(const basic_string& __s, const locale& __loc, const char*) const { return this->do_open(__s, __loc); } @@ -50,25 +50,25 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { } template - typename messages<_CharT>::catalog - messages<_CharT>::do_open(const basic_string& __s, + typename messages<_CharT>::catalog + messages<_CharT>::do_open(const basic_string& __s, const locale&) const { return reinterpret_cast(catopen(__s.c_str(), NL_CAT_LOCALE)); } template - typename messages<_CharT>::string_type - messages<_CharT>::do_get(catalog __c, int __setid, int __msgid, + typename messages<_CharT>::string_type + messages<_CharT>::do_get(catalog __c, int __setid, int __msgid, const string_type& __dfault) const { nl_catd __nlc = reinterpret_cast(__c); - char* __msg = catgets(__nlc, __setid, __msgid, + char* __msg = catgets(__nlc, __setid, __msgid, _M_convert_to_char(__dfault)); return _M_convert_from_char(__msg); } template - void - messages<_CharT>::do_close(catalog __c) const + void + messages<_CharT>::do_close(catalog __c) const { catclose(reinterpret_cast(__c)); } _GLIBCXX_END_NAMESPACE_VERSION Index: libstdc++-v3/config/os/aix/ctype_base.h =================================================================== --- libstdc++-v3/config/os/aix/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/aix/ctype_base.h (working copy) @@ -25,9 +25,9 @@ // // ISO C++ 14882: 22.1 Locales // - + // Information as gleaned from /usr/include/ctype.h - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION Index: libstdc++-v3/config/os/aix/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/aix/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/aix/ctype_inline.h (working copy) @@ -41,7 +41,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION bool ctype:: is(mask __m, char __c) const - { + { if(_M_table) return _M_table[static_cast(__c)] & __m; else Index: libstdc++-v3/config/os/bsd/darwin/ctype_base.h =================================================================== --- libstdc++-v3/config/os/bsd/darwin/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/bsd/darwin/ctype_base.h (working copy) @@ -25,11 +25,11 @@ // // 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 - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION Index: libstdc++-v3/config/os/bsd/darwin/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/bsd/darwin/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/bsd/darwin/ctype_configure_char.cc (working copy) @@ -37,17 +37,17 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION // Information as gleaned from /usr/include/ctype.h - + const ctype_base::mask* ctype::classic_table() throw() { return 0; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_table(__table ? __table : classic_table()) - { + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : classic_table()) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -54,11 +54,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_narrow_ok = 0; } - ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_table(__table ? __table : classic_table()) - { + ctype::ctype(const mask* __table, bool __del, size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : classic_table()) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return ::tolower((int) __c); } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/bsd/darwin/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/bsd/darwin/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/bsd/darwin/ctype_inline.h (working copy) @@ -30,10 +30,10 @@ // // ISO C++ 14882: 22.1 Locales // - + // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) // functions go in ctype.cc - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -41,7 +41,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION bool ctype:: is(mask __m, char __c) const - { + { if (_M_table) return _M_table[static_cast(__c)] & __m; else @@ -111,7 +111,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return __low; } -#ifdef _GLIBCXX_USE_WCHAR_T +#ifdef _GLIBCXX_USE_WCHAR_T inline bool ctype:: do_is(mask __m, wchar_t __c) const @@ -119,7 +119,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return __istype (__c, __m); } - inline const wchar_t* + inline const wchar_t* ctype:: do_is(const wchar_t* __lo, const wchar_t* __hi, mask* __vec) const { @@ -129,8 +129,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION | blank); return __hi; } - - inline const wchar_t* + + inline const wchar_t* ctype:: do_scan_is(mask __m, const wchar_t* __lo, const wchar_t* __hi) const { Index: libstdc++-v3/config/os/bsd/netbsd/ctype_base.h =================================================================== --- libstdc++-v3/config/os/bsd/netbsd/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/bsd/netbsd/ctype_base.h (working copy) @@ -25,12 +25,12 @@ // // ISO C++ 14882: 22.1 Locales // - + // Information as gleaned from /usr/include/ctype.h on NetBSD. // Full details can be found from the CVS files at: // anoncvs@anoncvs.netbsd.org:/cvsroot/basesrc/include/ctype.h // See www.netbsd.org for details of access. - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION Index: libstdc++-v3/config/os/bsd/netbsd/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/bsd/netbsd/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/bsd/netbsd/ctype_configure_char.cc (working copy) @@ -44,12 +44,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::classic_table() throw() { return _C_ctype_ + 1; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : classic_table()) - { + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -56,11 +56,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_narrow_ok = 0; } - ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), + ctype::ctype(const mask* __table, bool __del, size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : classic_table()) - { + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -86,7 +86,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return ::tolower((int) __c); } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h (working copy) @@ -30,10 +30,10 @@ // // ISO C++ 14882: 22.1 Locales // - + // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) // functions go in ctype.cc - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION Index: libstdc++-v3/config/os/djgpp/ctype_base.h =================================================================== --- libstdc++-v3/config/os/djgpp/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/djgpp/ctype_base.h (working copy) @@ -25,7 +25,7 @@ // // ISO C++ 14882: 22.1 Locales // - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -34,7 +34,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION struct ctype_base { typedef unsigned short mask; - + // Non-standard typedefs. typedef unsigned char * __to_type; Index: libstdc++-v3/config/os/djgpp/error_constants.h =================================================================== --- libstdc++-v3/config/os/djgpp/error_constants.h (revision 235619) +++ libstdc++-v3/config/os/djgpp/error_constants.h (working copy) @@ -93,10 +93,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION no_lock_available = ENOLCK, #ifdef _GLIBCXX_HAVE_ENODATA - no_message_available = ENODATA, + no_message_available = ENODATA, #endif -// no_message = ENOMSG, +// no_message = ENOMSG, // no_protocol_option = ENOPROTOOPT, no_space_on_device = ENOSPC, Index: libstdc++-v3/config/os/generic/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/generic/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/generic/ctype_configure_char.cc (working copy) @@ -42,12 +42,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::classic_table() throw() { return 0; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_table(__table ? __table : classic_table()) - { + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : classic_table()) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -54,11 +54,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_narrow_ok = 0; } - ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), + ctype::ctype(const mask* __table, bool __del, size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : classic_table()) - { + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return ::tolower((int) __c); } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/generic/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/generic/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/generic/ctype_inline.h (working copy) @@ -30,10 +30,10 @@ // // ISO C++ 14882: 22.1 Locales // - + // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) // functions go in ctype.cc - + // The following definitions are portable, but insanely slow. If one // cares at all about performance, then specialized ctype // functionality should be added for the native os in question: see @@ -48,13 +48,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION bool ctype:: is(mask __m, char __c) const - { + { if (_M_table) return _M_table[static_cast(__c)] & __m; else { bool __ret = false; - const size_t __bitmasksize = 15; + const size_t __bitmasksize = 15; size_t __bitcur = 0; // Lowest bitmask in ctype_base == 0 for (; __bitcur <= __bitmasksize; ++__bitcur) { @@ -112,7 +112,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return __ret; } } - + const char* ctype:: is(const char* __low, const char* __high, mask* __vec) const @@ -123,12 +123,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION else { // Highest bitmask in ctype_base == 11. - const size_t __bitmasksize = 15; + const size_t __bitmasksize = 15; for (;__low < __high; ++__vec, ++__low) { mask __m = 0; // Lowest bitmask in ctype_base == 0 - size_t __i = 0; + size_t __i = 0; for (;__i <= __bitmasksize; ++__i) { const mask __bit = static_cast(1 << __i); Index: libstdc++-v3/config/os/generic/error_constants.h =================================================================== --- libstdc++-v3/config/os/generic/error_constants.h (revision 235619) +++ libstdc++-v3/config/os/generic/error_constants.h (working copy) @@ -93,10 +93,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION no_lock_available = ENOLCK, #ifdef _GLIBCXX_HAVE_ENODATA - no_message_available = ENODATA, + no_message_available = ENODATA, #endif - no_message = ENOMSG, + no_message = ENOMSG, no_protocol_option = ENOPROTOOPT, no_space_on_device = ENOSPC, Index: libstdc++-v3/config/os/hpux/ctype_base.h =================================================================== --- libstdc++-v3/config/os/hpux/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/hpux/ctype_base.h (working copy) @@ -25,9 +25,9 @@ // // ISO C++ 14882: 22.1 Locales // - + // Default information, may not be appropriate for specific host. - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -40,7 +40,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. - typedef unsigned int mask; + typedef unsigned int mask; static const mask upper = _ISUPPER; static const mask lower = _ISLOWER; static const mask alpha = _ISALPHA; Index: libstdc++-v3/config/os/hpux/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/hpux/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/hpux/ctype_configure_char.cc (working copy) @@ -42,12 +42,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::classic_table() throw() { return __SB_masks; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_table(__table ? __table : (const mask *) __SB_masks) - { + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : (const mask *) __SB_masks) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -54,11 +54,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_narrow_ok = 0; } - ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_table(__table ? __table : (const mask *) __SB_masks) - { + ctype::ctype(const mask* __table, bool __del, size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : (const mask *) __SB_masks) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return ::tolower((int) __c); } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/hpux/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/hpux/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/hpux/ctype_inline.h (working copy) @@ -21,7 +21,7 @@ // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // . - + /** @file bits/ctype_inline.h * This is an internal header file, included by other library headers. * Do not attempt to use it directly. @headername{locale} @@ -33,7 +33,7 @@ // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) // functions go in ctype.cc - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: scan_is(mask __m, const char* __low, const char* __high) const { - while (__low < __high + while (__low < __high && !(_M_table[static_cast(*__low)] & __m)) ++__low; return __low; @@ -66,7 +66,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: scan_not(mask __m, const char* __low, const char* __high) const { - while (__low < __high + while (__low < __high && (_M_table[static_cast(*__low)] & __m) != 0) ++__low; return __low; Index: libstdc++-v3/config/os/hpux/os_defines.h =================================================================== --- libstdc++-v3/config/os/hpux/os_defines.h (revision 235619) +++ libstdc++-v3/config/os/hpux/os_defines.h (working copy) @@ -43,7 +43,7 @@ everyone else, they put them into a non-standard header . Ugh. - defines a variety of things, some of which we + defines a variety of things, some of which we probably do not want. So we don't want to include it here. Luckily we can just declare strtoll and strtoull with the @@ -60,7 +60,7 @@ #ifdef __cplusplus namespace std { - extern "C" + extern "C" { #ifndef __LP64__ __extension__ long long strtoll (const char *, char **, int) @@ -80,7 +80,7 @@ namespace std #define _GLIBCXX_USE_LONG_LONG 1 // HPUX on IA64 requires vtable to be 64 bit aligned even at 32 bit -// mode. We need to pad the vtable structure to achieve this. +// mode. We need to pad the vtable structure to achieve this. #if !defined(_LP64) && defined (__ia64__) #define _GLIBCXX_VTABLE_PADDING 8 typedef long int __padding_type; @@ -105,7 +105,7 @@ typedef long int __padding_type; // The strtold function is obsolete and not C99 conformant on PA HP-UX. // It returns plus or minus _LDBL_MAX instead of plus or minus HUGE_VALL // if the correct value would cause overflow. It doesn't handle "inf", -// "infinity" and "nan". It is not thread safe. +// "infinity" and "nan". It is not thread safe. #if defined (__hppa__) #define _GLIBCXX_HAVE_BROKEN_STRTOLD 1 #endif Index: libstdc++-v3/config/os/mingw32/ctype_base.h =================================================================== --- libstdc++-v3/config/os/mingw32/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/mingw32/ctype_base.h (working copy) @@ -46,7 +46,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. - typedef unsigned short mask; + typedef unsigned short mask; static const mask upper = 1 << 0; static const mask lower = 1 << 1; static const mask alpha = 1 << 2; Index: libstdc++-v3/config/os/mingw32-w64/ctype_base.h =================================================================== --- libstdc++-v3/config/os/mingw32-w64/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/mingw32-w64/ctype_base.h (working copy) @@ -46,7 +46,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. - typedef unsigned short mask; + typedef unsigned short mask; static const mask upper = 1 << 0; static const mask lower = 1 << 1; static const mask alpha = 1 << 2; Index: libstdc++-v3/config/os/newlib/ctype_base.h =================================================================== --- libstdc++-v3/config/os/newlib/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/newlib/ctype_base.h (working copy) @@ -25,7 +25,7 @@ // // ISO C++ 14882: 22.1 Locales // - + // Information as gleaned from /usr/include/ctype.h namespace std _GLIBCXX_VISIBILITY(default) Index: libstdc++-v3/config/os/qnx/qnx6.1/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/qnx/qnx6.1/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/qnx/qnx6.1/ctype_configure_char.cc (working copy) @@ -37,16 +37,16 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION // Information as gleaned from /usr/include/ctype.h - + const ctype_base::mask* ctype::classic_table() throw() { return 0; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : _Ctype) - { + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -53,10 +53,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_narrow_ok = 0; } - ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), + ctype::ctype(const mask* __table, bool __del, size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : _Ctype) - { + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -82,7 +82,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return ::tolower((int) __c); } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/qnx/qnx6.1/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/qnx/qnx6.1/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/qnx/qnx6.1/ctype_inline.h (working copy) @@ -30,10 +30,10 @@ // // ISO C++ 14882: 22.1 Locales // - + // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) // functions go in ctype.cc - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION Index: libstdc++-v3/config/os/solaris/solaris2.10/ctype_base.h =================================================================== --- libstdc++-v3/config/os/solaris/solaris2.10/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/solaris/solaris2.10/ctype_base.h (working copy) @@ -25,7 +25,7 @@ // // ISO C++ 14882: 22.1 Locales // - + // Information as gleaned from /usr/include/ctype.h. Looks like this // only works with solaris2.7 and solaris2.8. Thanks for not changing // things, sun engineers! @@ -42,7 +42,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. - typedef unsigned int mask; + typedef unsigned int mask; static const mask upper = _ISUPPER; static const mask lower = _ISLOWER; static const mask alpha = _ISALPHA; Index: libstdc++-v3/config/os/solaris/solaris2.10/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/solaris/solaris2.10/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/solaris/solaris2.10/ctype_configure_char.cc (working copy) @@ -37,17 +37,17 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION // Information as gleaned from /usr/include/ctype.h - - const ctype_base::mask* + + const ctype_base::mask* ctype::classic_table() throw() { return __ctype_mask; } - ctype::ctype(__c_locale, const mask* __table, bool __del, + ctype::ctype(__c_locale, const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), + : facet(__refs), _M_del(__table != 0 && __del), _M_toupper(__trans_upper), _M_tolower(__trans_lower), - _M_table(__table ? __table : classic_table()) - { + _M_table(__table ? __table : classic_table()) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -55,10 +55,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), + : facet(__refs), _M_del(__table != 0 && __del), _M_toupper(__trans_upper), _M_tolower(__trans_lower), - _M_table(__table ? __table : classic_table()) - { + _M_table(__table ? __table : classic_table()) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return _M_tolower[static_cast(__c)]; } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/solaris/solaris2.10/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/solaris/solaris2.10/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/solaris/solaris2.10/ctype_inline.h (working copy) @@ -21,7 +21,7 @@ // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // . - + /** @file bits/ctype_inline.h * This is an internal header file, included by other library headers. * Do not attempt to use it directly. @headername{locale} @@ -33,7 +33,7 @@ // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) // functions go in ctype.cc - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: scan_is(mask __m, const char* __low, const char* __high) const { - while (__low < __high + while (__low < __high && !(_M_table[static_cast(*__low)] & __m)) ++__low; return __low; @@ -66,7 +66,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: scan_not(mask __m, const char* __low, const char* __high) const { - while (__low < __high + while (__low < __high && (_M_table[static_cast(*__low)] & __m) != 0) ++__low; return __low; Index: libstdc++-v3/config/os/tpf/ctype_base.h =================================================================== --- libstdc++-v3/config/os/tpf/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/tpf/ctype_base.h (working copy) @@ -25,9 +25,9 @@ // // ISO C++ 14882: 22.1 Locales // - + // Information as gleaned from /usr/include/ctype.h - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -40,7 +40,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. - typedef unsigned short mask; + typedef unsigned short mask; static const mask upper = _ISupper; static const mask lower = _ISlower; static const mask alpha = _ISalpha; Index: libstdc++-v3/config/os/tpf/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/tpf/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/tpf/ctype_configure_char.cc (working copy) @@ -53,8 +53,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return __ret; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) : facet(__refs), _M_del(__table != 0 && __del) { char* __old = setlocale(LC_CTYPE, NULL); @@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return _M_tolower[static_cast(__c)]; } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/tpf/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/tpf/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/tpf/ctype_inline.h (working copy) @@ -30,10 +30,10 @@ // // ISO C++ 14882: 22.1 Locales // - + // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) // functions go in ctype.cc - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: scan_is(mask __m, const char* __low, const char* __high) const { - while (__low < __high + while (__low < __high && !(_M_table[static_cast(*__low)] & __m)) ++__low; return __low; @@ -66,7 +66,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: scan_not(mask __m, const char* __low, const char* __high) const { - while (__low < __high + while (__low < __high && (_M_table[static_cast(*__low)] & __m) != 0) ++__low; return __low; Index: libstdc++-v3/config/os/uclibc/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/uclibc/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/uclibc/ctype_configure_char.cc (working copy) @@ -42,9 +42,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::classic_table() throw() { return __C_ctype_b; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) - : facet(__refs), _M_c_locale_ctype(_S_get_c_locale()), + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) + : facet(__refs), _M_c_locale_ctype(_S_get_c_locale()), _M_del(__table != 0 && __del), _M_widen_ok(0), _M_narrow_ok(0) { _M_toupper = __C_ctype_toupper; @@ -55,7 +55,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_c_locale_ctype(_S_get_c_locale()), + : facet(__refs), _M_c_locale_ctype(_S_get_c_locale()), _M_del(__table != 0 && __del), _M_widen_ok(0), _M_narrow_ok(0) { _M_toupper = __C_ctype_toupper; @@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return _M_tolower[static_cast(__c)]; } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/vxworks/ctype_base.h =================================================================== --- libstdc++-v3/config/os/vxworks/ctype_base.h (revision 235619) +++ libstdc++-v3/config/os/vxworks/ctype_base.h (working copy) @@ -25,9 +25,9 @@ // // ISO C++ 14882: 22.1 Locales // - + // Information extracted from target/h/ctype.h. - + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -40,7 +40,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // NB: Offsets into ctype::_M_table force a particular size // on the mask type. Because of this, we don't use an enum. - typedef unsigned char mask; + typedef unsigned char mask; static const mask upper = _C_UPPER; static const mask lower = _C_LOWER; static const mask alpha = _C_UPPER | _C_LOWER; Index: libstdc++-v3/config/os/vxworks/ctype_configure_char.cc =================================================================== --- libstdc++-v3/config/os/vxworks/ctype_configure_char.cc (revision 235619) +++ libstdc++-v3/config/os/vxworks/ctype_configure_char.cc (working copy) @@ -42,12 +42,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::classic_table() throw() { return __ctype; } - ctype::ctype(__c_locale, const mask* __table, bool __del, - size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), - _M_table(__table ? __table : classic_table()) - { + ctype::ctype(__c_locale, const mask* __table, bool __del, + size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), + _M_table(__table ? __table : classic_table()) + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -54,11 +54,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_narrow_ok = 0; } - ctype::ctype(const mask* __table, bool __del, size_t __refs) - : facet(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), _M_tolower(NULL), + ctype::ctype(const mask* __table, bool __del, size_t __refs) + : facet(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), _M_tolower(NULL), _M_table(__table ? __table : classic_table()) - { + { memset(_M_widen, 0, sizeof(_M_widen)); _M_widen_ok = 0; memset(_M_narrow, 0, sizeof(_M_narrow)); @@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype::do_tolower(char __c) const { return __tolower(__c); } - const char* + const char* ctype::do_tolower(char* __low, const char* __high) const { while (__low < __high) Index: libstdc++-v3/config/os/vxworks/ctype_inline.h =================================================================== --- libstdc++-v3/config/os/vxworks/ctype_inline.h (revision 235619) +++ libstdc++-v3/config/os/vxworks/ctype_inline.h (working copy) @@ -30,7 +30,7 @@ // // ISO C++ 14882: 22.1 Locales // - + // Information as gleaned from target/h/ctype.h // ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) @@ -58,7 +58,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ctype:: scan_is(mask __m, const char* __low, const char* __high) const { - while (__low < __high + while (__low < __high && !(__ctype[static_cast(*__low)] & __m)) ++__low; return __low;