diff --git a/INSTALL b/INSTALL deleted file mode 100644 index 606de46..0000000 --- a/INSTALL +++ /dev/null @@ -1,19 +0,0 @@ -Installation of a review candidate -================================== - -1) Download the .zip distribution file. Move it to, say, /temp, and unzip it there. - That will result in a directory in /temp named endian-rc#, where # is the number of the - review candidate. - -2) If you haven't already done so, install a current version of Boost. - Since Boost.Endian is a header only library, there is no need to run a build. - -3) Copy the endian files to your Boost installation (replace MY-BOOST with its path): - - Windows: xcopy /s /i \temp\endian-rc#\* MY-BOOST - POSIX: cp -r /temp/endian-rc#/* MY-BOOST - -4) Run the tests (as a confidence builder that the install went OK): - - cd MY-BOOST/endian/libs/endian/test - bjam diff --git a/include/boost/endian/support/timer.hpp b/include/boost/endian/support/timer.hpp deleted file mode 100644 index 2694a91..0000000 --- a/include/boost/endian/support/timer.hpp +++ /dev/null @@ -1,118 +0,0 @@ -// boost timer.hpp ---------------------------------------------------------// - -// Copyright Beman Dawes 1994-2007 - -// Distributed under the Boost Software License, Version 1.0. -// See http://www.boost.org/LICENSE_1_0.txt - -// See http://www.boost.org/libs/system for documentation. - -#ifndef BOOST_ENDIAN_TIMER_HPP -#define BOOST_ENDIAN_TIMER_HPP - -#include - -#include -#include -#include -#include -#include -#include - -#include // must be the last #include - -namespace boost -{ - namespace endian - { - typedef boost::int_least64_t microsecond_t; - - struct times_t - { - microsecond_t wall; - microsecond_t user; - microsecond_t system; - - void clear() { wall = user = system = 0LL; } - }; - - // low-level functions -------------------------------------------------// - - BOOST_ENDIAN_DECL - void times(times_t& result); // throws on error - - BOOST_ENDIAN_DECL - system::error_code& times(times_t& result, system::error_code& ec); // never throws - - // timer ---------------------------------------------------------------// - - // unless otherwise specified, all functions throw on error - - class BOOST_ENDIAN_DECL timer - { - public: - - timer() : m_flags(m_stopped) { start(); } - timer(const std::nothrow_t&) : m_flags(static_cast(m_stopped - | m_nothrow)) { start(); } - ~timer() {} // never throws - - void start(); - const times_t& stop(); - bool stopped() const { return m_flags& m_stopped; } - void elapsed(times_t& result); // does not stop() - - private: - times_t m_times; - enum m_flags_t { m_stopped=1, m_nothrow=2 }; - m_flags_t m_flags; - }; - - // run_timer -----------------------------------------------------------// - - // unless otherwise specified, all functions throw on error - - class BOOST_ENDIAN_DECL run_timer : public timer - { - public: - - // each constructor has two overloads to avoid an explicit default to - // std::cout, which in turn would require including with its - // high associated cost even when the standard streams are not used. - - explicit run_timer(int places = 2); - - run_timer(int places, std::ostream& os) - : m_places(places), m_os(os), m_format(0) {} - - explicit run_timer(const std::string& format, int places = 2); - - run_timer(const std::string& format, int places, std::ostream& os) - : m_places(places), m_os(os), m_format(new char[format.size()+1]) - { std::strcpy(m_format, format.c_str()); } - - ~run_timer() // never throws - { - system::error_code ec; - if(!stopped()) - report(ec); - delete [] m_format; - } - - void report(); - system::error_code - report(system::error_code& ec); // never throws - - private: - int m_places; - std::ostream& m_os; - char* m_format; // doesn't use std::string as VC++ too painful - // across DLL boundaries due to warning C4251 - }; - - } // namespace endian -} // namespace boost - -#include // pops abi_prefix.hpp pragmas - -#endif // BOOST_ENDIAN_TIMER_HPP diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 961da78..682775c 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -1,19 +1,26 @@ # Boost Endian Library test Jamfile -# Copyright Beman Dawes 2006 +# Copyright Beman Dawes 2006, 2013 # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt # See library home page at http://www.boost.org/libs/endian - import testing ; +project + : requirements + msvc:on + ; test-suite "endian" : - [ run endian_test.cpp ] - [ run endian_operations_test.cpp - : : : gcc:-Wno-sign-compare ] + [ run endian_test.cpp + : # command line + : # input files + : # requirements + ] + [ run endian_operations_test.cpp ] [ run endian_in_union_test.cpp ] [ run conversion_test.cpp ] - ; + [ run conversion2_test.cpp ] + ; diff --git a/test/test.bat b/test/test.bat deleted file mode 100644 index bd06cb4..0000000 --- a/test/test.bat +++ /dev/null @@ -1,42 +0,0 @@ -@echo off -echo Special version of boost_test for sandbox version of endian library. -xcopy /D %BOOST_TRUNK%\boost-build.jam ..\..\..\.. -xcopy /D %BOOST_TRUNK%\boostcpp.jam ..\..\..\.. -xcopy /D %BOOST_TRUNK%\Jamroot ..\..\..\.. -set BOOST_BUILD_PATH=%BOOST_TRUNK%\tools\build\v2 - -if not $%1==$--help goto nohelp -echo Invoke: boost_test [-ts toolset] [bjam-options] -echo Default -ts is gcc-4.3,msvc-8.0,msvc-9.0express,msvc-10.0express -goto done -:nohelp - -if $%1==$-ts goto toolset - -echo Begin test processing... -bjam include=%BOOST_TRUNK% --v2 --dump-tests --toolset=gcc-4.3,msvc-8.0,msvc-9.0express,msvc-10.0express %* >bjam.log 2>&1 -goto jam_log - -:toolset -echo Begin test processing... -bjam include=%BOOST_TRUNK% --v2 --dump-tests --toolset=%2 %3 %4 %5 %6 %7 %8 %9 >bjam.log 2>&1 - -:jam_log -echo Begin log processing... -process_jam_log --v2 %TEMP%\babsr.bat -%UTIL%\change %TEMP%\babsr.bat " Directory of " "set BOOST_TEST_ABS_ROOT=" >nul -%UTIL%\change %TEMP%\babsr.bat "C:" "c:" >nul -%UTIL%\change %TEMP%\babsr.bat "D:" "d:" >nul -%UTIL%\change %TEMP%\babsr.bat "E:" "e:" >nul -%UTIL%\change %TEMP%\babsr.bat "F:" "f:" >nul -call %TEMP%\babsr.bat -compiler_status --v2 %BOOST_TEST_ABS_ROOT% test_status.html test_links.html -start test_status.html - -:done