stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r368535 - in /incubator/stdcxx/trunk/src: codecvt.cpp wcodecvt.cpp
Date Fri, 13 Jan 2006 00:47:28 GMT
Author: sebor
Date: Thu Jan 12 16:47:25 2006
New Revision: 368535

URL: http://svn.apache.org/viewcvs?rev=368535&view=rev
Log:
2006-01-12  Martin Sebor  <sebor@roguewave.com>

	* codecvt.cpp: Removed assumptions about _RWSTD_MBSTATE_T being
	a simple type (not really necessary after r368468 but it doesn't
	hurt to be extra safe).
	* wcodecvt.cpp: Same.

Modified:
    incubator/stdcxx/trunk/src/codecvt.cpp
    incubator/stdcxx/trunk/src/wcodecvt.cpp

Modified: incubator/stdcxx/trunk/src/codecvt.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/src/codecvt.cpp?rev=368535&r1=368534&r2=368535&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/codecvt.cpp (original)
+++ incubator/stdcxx/trunk/src/codecvt.cpp Thu Jan 12 16:47:25 2006
@@ -69,8 +69,11 @@
 
 #else   // if defined (_RWSTD_NO_MBSINIT)
 
+    // _RWSTD_MBSTATE_T macro might expand to char* (on AIX)
+    typedef _RWSTD_MBSTATE_T StateT;
+
     // commented out to work around an HP aCC 1.21 bug
-    /* static */ const _RWSTD_MBSTATE_T state = _RWSTD_MBSTATE_T ();
+    /* static */ const StateT state = StateT ();
     return !ps || 0 == memcmp (ps, &state, sizeof state);
 
 #endif   // _RWSTD_NO_MBSINIT

Modified: incubator/stdcxx/trunk/src/wcodecvt.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/src/wcodecvt.cpp?rev=368535&r1=368534&r2=368535&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/wcodecvt.cpp (original)
+++ incubator/stdcxx/trunk/src/wcodecvt.cpp Thu Jan 12 16:47:25 2006
@@ -198,8 +198,11 @@
 
 #else   // if defined (_RWSTD_NO_MBSINIT)
 
+    // _RWSTD_MBSTATE_T macro might expand to char* (on AIX)
+    typedef _RWSTD_MBSTATE_T StateT;
+
     // commented out to work around an HP aCC 1.21 bug
-    /* static */ const _RWSTD_MBSTATE_T state = _RWSTD_MBSTATE_T ();
+    /* static */ const StateT state = StateT ();
     return !psrc || 0 == memcmp (psrc, &state, sizeof state);
 
 #endif   // _RWSTD_NO_MBSINIT



Mime
View raw message