Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74230 - in sandbox/endian/libs/endian: doc test
From: bdawes_at_[hidden]
Date: 2011-09-04 14:12:45


Author: bemandawes
Date: 2011-09-04 14:12:44 EDT (Sun, 04 Sep 2011)
New Revision: 74230
URL: http://svn.boost.org/trac/boost/changeset/74230

Log:
Final cleanups; tests now pass on Windows/g++
Text files modified:
   sandbox/endian/libs/endian/doc/conversion.html | 4 ++--
   sandbox/endian/libs/endian/doc/index.html | 8 ++++----
   sandbox/endian/libs/endian/doc/integers.html | 4 ++--
   sandbox/endian/libs/endian/test/Jamfile.v2 | 2 --
   sandbox/endian/libs/endian/test/endian_test.cpp | 6 +++---
   5 files changed, 11 insertions(+), 13 deletions(-)

Modified: sandbox/endian/libs/endian/doc/conversion.html
==============================================================================
--- sandbox/endian/libs/endian/doc/conversion.html (original)
+++ sandbox/endian/libs/endian/doc/conversion.html 2011-09-04 14:12:44 EDT (Sun, 04 Sep 2011)
@@ -23,10 +23,10 @@
 
 <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#D7EEFF" width="100%">
   <tr>
- <td>Boost Home&nbsp;&nbsp;&nbsp;&nbsp;
+ <td><b>Boost Home&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="index.html">Endian Home</a>&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="conversion.html">Conversion Functions</a>&nbsp;&nbsp;&nbsp;&nbsp;
- Integer Types&nbsp;&nbsp;&nbsp;&nbsp; Tutorial</td>
+ Integer Types&nbsp;&nbsp;&nbsp;&nbsp; Tutorial</b></td>
   </tr>
 </table>
 <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" align="right">

Modified: sandbox/endian/libs/endian/doc/index.html
==============================================================================
--- sandbox/endian/libs/endian/doc/index.html (original)
+++ sandbox/endian/libs/endian/doc/index.html 2011-09-04 14:12:44 EDT (Sun, 04 Sep 2011)
@@ -23,10 +23,10 @@
 
 <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#D7EEFF" width="100%">
   <tr>
- <td>Boost Home&nbsp;&nbsp;&nbsp;&nbsp;
+ <td><b>Boost Home&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="index.html">Endian Home</a>&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="conversion.html">Conversion Functions</a>&nbsp;&nbsp;&nbsp;&nbsp;
- Integer Types&nbsp;&nbsp;&nbsp;&nbsp; Tutorial</td>
+ Integer Types&nbsp;&nbsp;&nbsp;&nbsp; Tutorial</b></td>
   </tr>
 </table>
 <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" align="right">
@@ -122,7 +122,7 @@
 
 <blockquote>
 
-<p><b>Endian conversions for native integers -</b> The application uses the
+<p><b>Endian conversions for native integers -</b> The application uses the
 built-in integer types, and calls the provided conversion functions to convert
 byte ordering as needed. Both mutating and non-mutating conversions are supplied, and
 each comes in unconditional and conditional variants. This approach is simple
@@ -130,7 +130,7 @@
 hard-to-manage and error-prone in code with many logical paths involving endianness transitions,
 and can foster very hard to debug logic errors. </p>
 
-<p><b>Endian integer types -</b> The application uses the provided endian types
+<p><b>Endian integer types -</b> The application uses the provided endian types
 which mimic the
 built-in integer types. For example, <code>big32_t</code> or <code>little64_t</code>.
 This approach is also simple, but can be less efficient. Types with lengths of

Modified: sandbox/endian/libs/endian/doc/integers.html
==============================================================================
--- sandbox/endian/libs/endian/doc/integers.html (original)
+++ sandbox/endian/libs/endian/doc/integers.html 2011-09-04 14:12:44 EDT (Sun, 04 Sep 2011)
@@ -25,10 +25,10 @@
 
 <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#D7EEFF" width="100%">
   <tr>
- <td>Boost Home&nbsp;&nbsp;&nbsp;&nbsp;
+ <td><b>Boost Home&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="index.html">Endian Home</a>&nbsp;&nbsp;&nbsp;&nbsp;
     <a href="conversion.html">Conversion Functions</a>&nbsp;&nbsp;&nbsp;&nbsp;
- Integer Types&nbsp;&nbsp;&nbsp;&nbsp; Tutorial</td>
+ Integer Types&nbsp;&nbsp;&nbsp;&nbsp; Tutorial</b></td>
   </tr>
 </table>
 

Modified: sandbox/endian/libs/endian/test/Jamfile.v2
==============================================================================
--- sandbox/endian/libs/endian/test/Jamfile.v2 (original)
+++ sandbox/endian/libs/endian/test/Jamfile.v2 2011-09-04 14:12:44 EDT (Sun, 04 Sep 2011)
@@ -11,11 +11,9 @@
    
    test-suite "endian"
        :
- [ run ../../io/test/bin_manip_test.cpp ]
          [ run endian_test.cpp ]
          [ run endian_operations_test.cpp
             : : : <toolset>gcc:<cxxflags>-Wno-sign-compare ]
          [ run endian_in_union_test.cpp ]
- [ run scoped_enum_emulation_test.cpp ]
          [ run conversion_test.cpp ]
       ;

Modified: sandbox/endian/libs/endian/test/endian_test.cpp
==============================================================================
--- sandbox/endian/libs/endian/test/endian_test.cpp (original)
+++ sandbox/endian/libs/endian/test/endian_test.cpp 2011-09-04 14:12:44 EDT (Sun, 04 Sep 2011)
@@ -698,13 +698,13 @@
 
   } // check_representation_and_range
 
- long iterations = 10000000;
+ long iterations = 10000;
   
   template< class Endian >
   Endian timing_test( const char * s)
   {
     cout << s << " timing test, " << iterations << " iterations: ";
- progress_timer t;
+// progress_timer t;
 
     Endian v = 1;
     for ( long i = 0; i < iterations; ++i )
@@ -726,7 +726,7 @@
 {
   cout << "Usage: "
        << argv[0] << " [#],\n where # specifies iteration count\n"
- " default iteration count is 1000000" << endl;
+ " default iteration count is " << iterations << endl;
 
   if ( argc > 1 )
     iterations = atol( argv[1] );


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk