annotate DEPENDENCIES/generic/include/boost/cstdlib.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // boost/cstdlib.hpp header ------------------------------------------------//
Chris@16 2
Chris@16 3 // Copyright Beman Dawes 2001. Distributed under the Boost
Chris@16 4 // Software License, Version 1.0. (See accompanying file
Chris@16 5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6
Chris@16 7 // See http://www.boost.org/libs/utility/cstdlib.html for documentation.
Chris@16 8
Chris@16 9 // Revision History
Chris@16 10 // 26 Feb 01 Initial version (Beman Dawes)
Chris@16 11
Chris@16 12 #ifndef BOOST_CSTDLIB_HPP
Chris@16 13 #define BOOST_CSTDLIB_HPP
Chris@16 14
Chris@16 15 #include <cstdlib>
Chris@16 16
Chris@16 17 namespace boost
Chris@16 18 {
Chris@16 19 // The intent is to propose the following for addition to namespace std
Chris@16 20 // in the C++ Standard Library, and to then deprecate EXIT_SUCCESS and
Chris@16 21 // EXIT_FAILURE. As an implementation detail, this header defines the
Chris@16 22 // new constants in terms of EXIT_SUCCESS and EXIT_FAILURE. In a new
Chris@16 23 // standard, the constants would be implementation-defined, although it
Chris@16 24 // might be worthwhile to "suggest" (which a standard is allowed to do)
Chris@16 25 // values of 0 and 1 respectively.
Chris@16 26
Chris@16 27 // Rationale for having multiple failure values: some environments may
Chris@16 28 // wish to distinguish between different classes of errors.
Chris@16 29 // Rationale for choice of values: programs often use values < 100 for
Chris@16 30 // their own error reporting. Values > 255 are sometimes reserved for
Chris@16 31 // system detected errors. 200/201 were suggested to minimize conflict.
Chris@16 32
Chris@16 33 const int exit_success = EXIT_SUCCESS; // implementation-defined value
Chris@16 34 const int exit_failure = EXIT_FAILURE; // implementation-defined value
Chris@16 35 const int exit_exception_failure = 200; // otherwise uncaught exception
Chris@16 36 const int exit_test_failure = 201; // report_error or
Chris@16 37 // report_critical_error called.
Chris@16 38 }
Chris@16 39
Chris@16 40 #endif
Chris@16 41