diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-24 12:01:19 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-07-01 18:13:55 +0300 |
commit | 977d07a3ae47ef204665d1eda2d642e5064724f3 (patch) | |
tree | 525a3d6421f61ce789b690191d3c30fc09be3517 /build2/target-state.hxx | |
parent | 7161b24963dd9da4d218f92c736b77c35c328a2d (diff) |
Split build system into library and driver
Diffstat (limited to 'build2/target-state.hxx')
-rw-r--r-- | build2/target-state.hxx | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/build2/target-state.hxx b/build2/target-state.hxx deleted file mode 100644 index ff44edc..0000000 --- a/build2/target-state.hxx +++ /dev/null @@ -1,44 +0,0 @@ -// file : build2/target-state.hxx -*- C++ -*- -// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd -// license : MIT; see accompanying LICENSE file - -#ifndef BUILD2_TARGET_STATE_HXX -#define BUILD2_TARGET_STATE_HXX - -#include <build2/types.hxx> -#include <build2/utility.hxx> - -namespace build2 -{ - // The order of the enumerators is arranged so that their integral values - // indicate whether one "overrides" the other in the "merge" operator| - // (see below). - // - // Note that postponed is "greater" than unchanged since it may result in - // the changed state. - // - enum class target_state: uint8_t - { - unknown, - unchanged, - postponed, - busy, - changed, - failed, - group // Target's state is the group's state. - }; - - inline target_state& - operator |= (target_state& l, target_state r) - { - if (static_cast<uint8_t> (r) > static_cast<uint8_t> (l)) - l = r; - - return l; - } - - ostream& - operator<< (ostream&, target_state); // target.cxx -} - -#endif // BUILD2_TARGET_STATE_HXX |