Author: antonp
Date: Wed May 3 01:29:49 2006
New Revision: 399199
URL: http://svn.apache.org/viewcvs?rev=399199&view=rev
Log:
2006-05-03 Anton Pevtsov <[EMAIL PROTECTED]>
* rw_char.h (rw_get_call_counters): New functions to retrieve
the pointer to n_calls array if it is defined for traits type.
Modified:
incubator/stdcxx/trunk/tests/include/rw_char.h
Modified: incubator/stdcxx/trunk/tests/include/rw_char.h
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/include/rw_char.h?rev=399199&r1=399198&r2=399199&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/include/rw_char.h (original)
+++ incubator/stdcxx/trunk/tests/include/rw_char.h Wed May 3 01:29:49 2006
@@ -427,6 +427,19 @@
_RWSTD_SIZE_T rw_match (const char*, const UserChar*,
_RWSTD_SIZE_T = _RWSTD_SIZE_MAX);
+// accessors to n_calls array, if it presents
+template <class charT> _TEST_EXPORT
+_RWSTD_SIZE_T* rw_get_call_counters (std::char_traits<charT>*, charT*)
+{
+ return 0;
+}
+
+template <class charT> _TEST_EXPORT
+_RWSTD_SIZE_T* rw_get_call_counters (UserTraits<charT>*, charT*)
+{
+ return UserTraits<charT>::n_calls_;
+}
+
static const struct UserCharFmatInit {
UserCharFmatInit ();
} _rw_user_char_fmat_init;