stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r384635 - in /incubator/stdcxx/trunk/tests: include/rw_char.h src/char.cpp
Date Thu, 09 Mar 2006 22:44:38 GMT
Author: sebor
Date: Thu Mar  9 14:44:37 2006
New Revision: 384635

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

	* rw_char.h (UserTraits<UserChar>): Moved _TEST_EXPORT where MSVC
	wants to see it.
	* char.cpp (assign): Added a missing definition.

Modified:
    incubator/stdcxx/trunk/tests/include/rw_char.h
    incubator/stdcxx/trunk/tests/src/char.cpp

Modified: incubator/stdcxx/trunk/tests/include/rw_char.h
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/include/rw_char.h?rev=384635&r1=384634&r2=384635&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/include/rw_char.h (original)
+++ incubator/stdcxx/trunk/tests/include/rw_char.h Thu Mar  9 14:44:37 2006
@@ -190,9 +190,8 @@
 UserTraits<charT>::eof_ = std::char_traits<charT>::eof ();
 
 
-_TEST_EXPORT
 _RWSTD_SPECIALIZED_CLASS
-struct UserTraits<UserChar>   // user-defined character traits
+struct _TEST_EXPORT UserTraits<UserChar>   // user-defined character traits
 {
     typedef UserChar char_type;
     typedef UserInt  int_type;

Modified: incubator/stdcxx/trunk/tests/src/char.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/src/char.cpp?rev=384635&r1=384634&r2=384635&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/char.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/char.cpp Thu Mar  9 14:44:37 2006
@@ -98,6 +98,18 @@
 }
 
 
+UserTraits<UserChar>::char_type*
+UserTraits<UserChar>::
+assign (char_type *s, size_t n, char_type c)
+{
+    RW_ASSERT (0 == n || s);
+
+    for (; n--; assign (s [n], c));
+
+    return s;
+}
+
+
 _TEST_EXPORT
 char*
 rw_widen (char *dst, const char *src, size_t len)



Mime
View raw message