Author: sebor
Date: Sat Jan 14 15:04:34 2006
New Revision: 369111
URL: http://svn.apache.org/viewcvs?rev=369111&view=rev
Log:
2006-01-14 Martin Sebor <[EMAIL PROTECTED]>
* codecvt.cpp (StateT): Moved convenience typedef from __rw_mbsinit
to file scope and used it to declare the function's formal argument.
Modified:
incubator/stdcxx/trunk/src/codecvt.cpp
Modified: incubator/stdcxx/trunk/src/codecvt.cpp
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/src/codecvt.cpp?rev=369111&r1=369110&r2=369111&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/codecvt.cpp (original)
+++ incubator/stdcxx/trunk/src/codecvt.cpp Sat Jan 14 15:04:34 2006
@@ -59,18 +59,20 @@
#include "use_facet.h"
+// _RWSTD_MBSTATE_T macro might expand to char* (on AIX)
+typedef _RWSTD_MBSTATE_T StateT;
+
+
_RWSTD_NAMESPACE (__rw) {
-static inline int __rw_mbsinit (const _RWSTD_MBSTATE_T *ps)
+static inline int
+__rw_mbsinit (const StateT *ps)
{
#ifndef _RWSTD_NO_MBSINIT
return ::mbsinit (ps);
#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 StateT state = StateT ();