Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66058 - in sandbox/chrono/boost/system: . detail/inlined
From: vicente.botet_at_[hidden]
Date: 2010-10-17 18:26:51


Author: viboes
Date: 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
New Revision: 66058
URL: http://svn.boost.org/trac/boost/changeset/66058

Log:
Chrono: Cleanup
Text files modified:
   sandbox/chrono/boost/system/api_config.hpp | 10 +++++-----
   sandbox/chrono/boost/system/config.hpp | 6 +++---
   sandbox/chrono/boost/system/cygwin_error.hpp | 2 +-
   sandbox/chrono/boost/system/detail/inlined/error_code.hpp | 40 ++++++++++++++++++++--------------------
   sandbox/chrono/boost/system/error_code.hpp | 36 ++++++++++++++++++------------------
   sandbox/chrono/boost/system/linux_error.hpp | 4 ++--
   sandbox/chrono/boost/system/system_error.hpp | 2 +-
   7 files changed, 50 insertions(+), 50 deletions(-)

Modified: sandbox/chrono/boost/system/api_config.hpp
==============================================================================
--- sandbox/chrono/boost/system/api_config.hpp (original)
+++ sandbox/chrono/boost/system/api_config.hpp 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
@@ -21,7 +21,7 @@
 
 //--------------------------------------------------------------------------------------//
 
-#ifndef BOOST_SYSTEM_API_CONFIG_HPP
+#ifndef BOOST_SYSTEM_API_CONFIG_HPP
 #define BOOST_SYSTEM_API_CONFIG_HPP
 
 # if defined(BOOST_SYSTEM_POSIX_API) || defined(BOOST_SYSTEM_WINDOWS_API)
@@ -36,13 +36,13 @@
 # if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32))
 # define BOOST_SYSTEM_WINDOWS_API
 # else
-# define BOOST_SYSTEM_POSIX_API
+# define BOOST_SYSTEM_POSIX_API
 # endif
 
 # if defined(_WIN32) || defined(__CYGWIN__) // Windows default, including MinGW and Cygwin
 # define BOOST_WINDOWS_API
 # else
-# define BOOST_POSIX_API
+# define BOOST_POSIX_API
 # endif
-
-#endif // BOOST_SYSTEM_API_CONFIG_HPP
+
+#endif // BOOST_SYSTEM_API_CONFIG_HPP

Modified: sandbox/chrono/boost/system/config.hpp
==============================================================================
--- sandbox/chrono/boost/system/config.hpp (original)
+++ sandbox/chrono/boost/system/config.hpp 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
@@ -7,7 +7,7 @@
 
 // See http://www.boost.org/libs/system for documentation.
 
-#ifndef BOOST_SYSTEM_CONFIG_HPP
+#ifndef BOOST_SYSTEM_CONFIG_HPP
 #define BOOST_SYSTEM_CONFIG_HPP
 
 #include <boost/config.hpp>
@@ -28,14 +28,14 @@
 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
 # if defined(BOOST_SYSTEM_SOURCE)
 # define BOOST_SYSTEM_DECL BOOST_SYMBOL_EXPORT
-# else
+# else
 # define BOOST_SYSTEM_DECL BOOST_SYMBOL_IMPORT
 # endif
 #else
 # define BOOST_SYSTEM_DECL
 #endif
 
-// enable automatic library variant selection ----------------------------------------//
+// enable automatic library variant selection ----------------------------------------//
 
 #if !defined(BOOST_SYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SYSTEM_NO_LIB)
 //

Modified: sandbox/chrono/boost/system/cygwin_error.hpp
==============================================================================
--- sandbox/chrono/boost/system/cygwin_error.hpp (original)
+++ sandbox/chrono/boost/system/cygwin_error.hpp 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
@@ -27,7 +27,7 @@
 
     // User code should use the portable "posix" enums for POSIX errors; this
     // allows such code to be portable to non-POSIX systems. For the non-POSIX
- // errno values that POSIX-based systems typically provide in addition to
+ // errno values that POSIX-based systems typically provide in addition to
     // POSIX values, use the system specific enums below.
 
    namespace cygwin_error

Modified: sandbox/chrono/boost/system/detail/inlined/error_code.hpp
==============================================================================
--- sandbox/chrono/boost/system/detail/inlined/error_code.hpp (original)
+++ sandbox/chrono/boost/system/detail/inlined/error_code.hpp 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
@@ -153,7 +153,7 @@
   # endif // else POSIX version of strerror_r
   # endif // else use strerror_r
   }
- // system_error_category implementation --------------------------------//
+ // system_error_category implementation --------------------------------//
 
   const char * system_error_category::name() const
   {
@@ -227,9 +227,9 @@
   # if ENOTEMPTY != EEXIST // AIX treats ENOTEMPTY and EEXIST as the same value
     case ENOTEMPTY: return make_error_condition( errc::directory_not_empty );
   # endif // ENOTEMPTY != EEXIST
- # if ENOTRECOVERABLE != ECONNRESET // the same on some Broadcom chips
- case ENOTRECOVERABLE: return make_error_condition( errc::state_not_recoverable );
- # endif // ENOTRECOVERABLE != ECONNRESET
+ # if ENOTRECOVERABLE != ECONNRESET // the same on some Broadcom chips
+ case ENOTRECOVERABLE: return make_error_condition( errc::state_not_recoverable );
+ # endif // ENOTRECOVERABLE != ECONNRESET
     case ENOTSOCK: return make_error_condition( errc::not_a_socket );
     case ENOTSUP: return make_error_condition( errc::not_supported );
     case ENOTTY: return make_error_condition( errc::inappropriate_io_control_operation );
@@ -238,9 +238,9 @@
     case EOPNOTSUPP: return make_error_condition( errc::operation_not_supported );
   # endif // EOPNOTSUPP != ENOTSUP
     case EOVERFLOW: return make_error_condition( errc::value_too_large );
- # if EOWNERDEAD != ECONNABORTED // the same on some Broadcom chips
- case EOWNERDEAD: return make_error_condition( errc::owner_dead );
- # endif // EOWNERDEAD != ECONNABORTED
+ # if EOWNERDEAD != ECONNABORTED // the same on some Broadcom chips
+ case EOWNERDEAD: return make_error_condition( errc::owner_dead );
+ # endif // EOWNERDEAD != ECONNABORTED
     case EPERM: return make_error_condition( errc::operation_not_permitted );
     case EPIPE: return make_error_condition( errc::broken_pipe );
     case EPROTO: return make_error_condition( errc::protocol_error );
@@ -349,41 +349,41 @@
 
   std::string system_error_category::message( int ev ) const
   {
-# ifndef BOOST_NO_ANSI_APIS
+# ifndef BOOST_NO_ANSI_APIS
         boost::detail::win32::LPVOID_ lpMsgBuf = 0;
- boost::detail::win32::DWORD_ retval = boost::detail::win32::FormatMessageA(
- boost::detail::win32::FORMAT_MESSAGE_ALLOCATE_BUFFER_ |
- boost::detail::win32::FORMAT_MESSAGE_FROM_SYSTEM_ |
+ boost::detail::win32::DWORD_ retval = boost::detail::win32::FormatMessageA(
+ boost::detail::win32::FORMAT_MESSAGE_ALLOCATE_BUFFER_ |
+ boost::detail::win32::FORMAT_MESSAGE_FROM_SYSTEM_ |
                         boost::detail::win32::FORMAT_MESSAGE_IGNORE_INSERTS_,
         NULL,
         ev,
         boost::detail::win32::MAKELANGID_(boost::detail::win32::LANG_NEUTRAL_, boost::detail::win32::SUBLANG_DEFAULT_), // Default language
         (boost::detail::win32::LPSTR_) &lpMsgBuf,
         0,
- NULL
+ NULL
     );
     detail::local_free_on_destruction lfod(lpMsgBuf);
     if (retval == 0)
         return std::string("Unknown error");
-
+
     std::string str( static_cast<boost::detail::win32::LPCSTR_>(lpMsgBuf) );
 # else // WinCE workaround
     boost::detail::win32::LPVOID_ lpMsgBuf = 0;
- boost::detail::win32::DWORD retval = boost::detail::win32::FormatMessageW(
- boost::detail::win32::FORMAT_MESSAGE_ALLOCATE_BUFFER_ |
- boost::detail::win32::FORMAT_MESSAGE_FROM_SYSTEM_ |
+ boost::detail::win32::DWORD retval = boost::detail::win32::FormatMessageW(
+ boost::detail::win32::FORMAT_MESSAGE_ALLOCATE_BUFFER_ |
+ boost::detail::win32::FORMAT_MESSAGE_FROM_SYSTEM_ |
                     boost::detail::win32::FORMAT_MESSAGE_IGNORE_INSERTS_,
         NULL,
         ev,
         boost::detail::win32::MAKELANGID_(boost::detail::win32::LANG_NEUTRAL_, boost::detail::win32::SUBLANG_DEFAULT_), // Default language
         (boost::detail::win32::LPWSTR_) &lpMsgBuf,
         0,
- NULL
+ NULL
     );
     detail::local_free_on_destruction lfod(lpMsgBuf);
     if (retval == 0)
         return std::string("Unknown error");
-
+
     int num_chars = (wcslen( static_cast<LPCWSTR>(lpMsgBuf) ) + 1) * 2;
     boost::detail::win32::LPSTR_ narrow_buffer = (boost::detail::win32::LPSTR_)_alloca( num_chars );
     if (boost::detail::win32::WideCharToMultiByte(CP_ACP, 0, static_cast<boost::detail::win32::LPCWSTR_>(lpMsgBuf), -1, narrow_buffer, num_chars, NULL, NULL) == 0)
@@ -394,13 +394,13 @@
     while ( str.size()
       && (str[str.size()-1] == '\n' || str[str.size()-1] == '\r') )
         str.erase( str.size()-1 );
- if ( str.size() && str[str.size()-1] == '.' )
+ if ( str.size() && str[str.size()-1] == '.' )
       { str.erase( str.size()-1 ); }
     return str;
   }
 # endif
 
-}
+}
 
 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     BOOST_SYSTEM_DECL error_code throws; // "throw on error" special error_code;

Modified: sandbox/chrono/boost/system/error_code.hpp
==============================================================================
--- sandbox/chrono/boost/system/error_code.hpp (original)
+++ sandbox/chrono/boost/system/error_code.hpp 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
@@ -23,7 +23,7 @@
 #include <functional>
 
 // TODO: undef these macros if not already defined
-#include <boost/cerrno.hpp>
+#include <boost/cerrno.hpp>
 
 #if !defined(BOOST_SYSTEM_POSIX_API) && !defined(BOOST_SYSTEM_WINDOWS_API)
 # error BOOST_SYSTEM_POSIX_API or BOOST_SYSTEM_WINDOWS_API must be defined
@@ -187,7 +187,7 @@
       virtual const char * name() const = 0;
       virtual std::string message( int ev ) const = 0;
       virtual error_condition default_error_condition( int ev ) const;
- virtual bool equivalent( int code,
+ virtual bool equivalent( int code,
                                            const error_condition & condition ) const;
       virtual bool equivalent( const error_code & code,
                                            int condition ) const;
@@ -238,15 +238,15 @@
       // modifiers:
 
       void assign( int val, const error_category & cat )
- {
+ {
         m_val = val;
         m_cat = &cat;
       }
-
+
       template<typename ErrorConditionEnum>
         typename boost::enable_if<is_error_condition_enum<ErrorConditionEnum>, error_condition>::type &
           operator=( ErrorConditionEnum val )
- {
+ {
         *this = make_error_condition(val);
         return *this;
       }
@@ -266,7 +266,7 @@
       static void unspecified_bool_true() {}
 
       operator unspecified_bool_type() const // true if error
- {
+ {
         return m_val == 0 ? 0 : unspecified_bool_true;
       }
 
@@ -282,7 +282,7 @@
                                      const error_condition & rhs )
       {
         return lhs.m_cat == rhs.m_cat && lhs.m_val == rhs.m_val;
- }
+ }
 
       inline friend bool operator<( const error_condition & lhs,
                                     const error_condition & rhs )
@@ -324,15 +324,15 @@
 
       // modifiers:
       void assign( int val, const error_category & cat )
- {
+ {
         m_val = val;
         m_cat = &cat;
       }
-
+
       template<typename ErrorCodeEnum>
         typename boost::enable_if<is_error_code_enum<ErrorCodeEnum>, error_code>::type &
           operator=( ErrorCodeEnum val )
- {
+ {
         *this = make_error_code(val);
         return *this;
       }
@@ -353,7 +353,7 @@
       static void unspecified_bool_true() {}
 
       operator unspecified_bool_type() const // true if error
- {
+ {
         return m_val == 0 ? 0 : unspecified_bool_true;
       }
 
@@ -379,7 +379,7 @@
         return lhs.m_cat < rhs.m_cat
           || (lhs.m_cat == rhs.m_cat && lhs.m_val < rhs.m_val);
       }
-
+
       private:
       int m_val;
       const error_category * m_cat;
@@ -431,26 +431,26 @@
       return code.category().equivalent( code.value(), condition )
         || condition.category().equivalent( code, condition.value() );
     }
-
+
     inline bool operator!=( const error_code & lhs,
                             const error_condition & rhs )
     {
       return !(lhs == rhs);
     }
-
+
     inline bool operator==( const error_condition & condition,
                             const error_code & code )
     {
       return condition.category().equivalent( code, condition.value() )
         || code.category().equivalent( code.value(), condition );
     }
-
+
     inline bool operator!=( const error_condition & lhs,
                             const error_code & rhs )
     {
       return !(lhs == rhs);
     }
-
+
     // TODO: both of these may move elsewhere, but the LWG hasn't spoken yet.
 
     template <class charT, class traits>
@@ -483,7 +483,7 @@
     // error_category default implementation -------------------------------//
 
     inline error_condition error_category::default_error_condition( int ev ) const
- {
+ {
       return error_condition( ev, *this );
     }
 
@@ -514,7 +514,7 @@
 #ifndef BOOST_SYSTEM_INLINED
 #include <boost/config/abi_suffix.hpp> // pops abi_prefix.hpp pragmas
 #else
-#include <boost/system/detail/inlined/error_code.hpp>
+#include <boost/system/detail/inlined/error_code.hpp>
 #endif
 
 

Modified: sandbox/chrono/boost/system/linux_error.hpp
==============================================================================
--- sandbox/chrono/boost/system/linux_error.hpp (original)
+++ sandbox/chrono/boost/system/linux_error.hpp 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
@@ -27,7 +27,7 @@
 
     // User code should use the portable "posix" enums for POSIX errors; this
     // allows such code to be portable to non-POSIX systems. For the non-POSIX
- // errno values that POSIX-based systems typically provide in addition to
+ // errno values that POSIX-based systems typically provide in addition to
     // POSIX values, use the system specific enums below.
 
     namespace linux_error
@@ -103,7 +103,7 @@
     }
 
   } // namespace system
-} // namespace boost
+} // namespace boost
 
 #endif // Linux
 

Modified: sandbox/chrono/boost/system/system_error.hpp
==============================================================================
--- sandbox/chrono/boost/system/system_error.hpp (original)
+++ sandbox/chrono/boost/system/system_error.hpp 2010-10-17 18:26:48 EDT (Sun, 17 Oct 2010)
@@ -21,7 +21,7 @@
 
     class BOOST_SYMBOL_VISIBLE system_error : public std::runtime_error
     // BOOST_SYMBOL_VISIBLE is needed by GCC to ensure system_error thrown from a shared
- // library can be caught. See svn.boost.org/trac/boost/ticket/3697
+ // library can be caught. See svn.boost.org/trac/boost/ticket/3697
     {
     public:
       system_error( error_code ec )


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