stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r366954 - in /incubator/stdcxx/trunk/include: bitset bitset.cc
Date Sun, 08 Jan 2006 00:27:53 GMT
Author: sebor
Date: Sat Jan  7 16:27:49 2006
New Revision: 366954

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

	* bitset (reset, set): Used the _RWSTD_MEMSET() macro instead
	of calling memset directly.
	* bitset.cc (__rw_bitset): Same.

Modified:
    incubator/stdcxx/trunk/include/bitset
    incubator/stdcxx/trunk/include/bitset.cc

Modified: incubator/stdcxx/trunk/include/bitset
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/bitset?rev=366954&r1=366953&r2=366954&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/bitset (original)
+++ incubator/stdcxx/trunk/include/bitset Sat Jan  7 16:27:49 2006
@@ -354,7 +354,7 @@
     // 23.3.5.2, p17
     bitset& reset () _THROWS (()) {
         return 1 == _C_nelems ? (void)(_C_bits [0] = 0)
-            : (void)memset (_C_bits, 0, sizeof (_C_bits)), *this;
+            : (void)_RWSTD_MEMSET (_C_bits, 0, sizeof (_C_bits)), *this;
     }
 
     // 23.3.5.2, p19
@@ -514,7 +514,7 @@
     if (_C_nelems == 1)
         _C_bits [0] = _RWSTD_SIZE_MAX;
     else
-        memset (_C_bits, -1, sizeof _C_bits);
+        _RWSTD_MEMSET (_C_bits, -1, sizeof _C_bits);
 
     _C_bits [_C_nelems - !!_C_nelems] >>=
         (_C_elembits - _Size % _C_elembits) % _C_elembits;

Modified: incubator/stdcxx/trunk/include/bitset.cc
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/bitset.cc?rev=366954&r1=366953&r2=366954&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/bitset.cc (original)
+++ incubator/stdcxx/trunk/include/bitset.cc Sat Jan  7 16:27:49 2006
@@ -2,7 +2,7 @@
  *
  * bitset - definitions of out-of-line bitset members
  *
- * $Id: //stdlib/dev/include/bitset.cc#44 $
+ * $Id$
  *
  ***************************************************************************
  *
@@ -54,7 +54,7 @@
     const _RWSTD_SIZE_T __nbytes =
         (__maxbits + sizeof *__bits * _RWSTD_CHAR_BIT - 1) / _RWSTD_CHAR_BIT;
 
-    _RWSTD_C::memset (__bits, 0, __nbytes);
+    _RWSTD_MEMSET (__bits, 0, __nbytes);
 
     // set all bits but also check any extra characters as required
     for (_RWSTD_SIZE_T __i = 0; __i != __nchars; ++__i) {



Mime
View raw message