mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-31 23:28:45 +00:00
3eae0a9b6a
This mostly re-sorts headers that got desorted after the IWYU
application in 14d2a6d8ff
.
29 lines
875 B
C++
29 lines
875 B
C++
// Utilities for io redirection.
|
|
#include "config.h" // IWYU pragma: keep
|
|
|
|
#include "operation_context.h"
|
|
|
|
#include <utility>
|
|
|
|
#include "env.h"
|
|
|
|
bool no_cancel() { return false; }
|
|
|
|
operation_context_t::operation_context_t(std::shared_ptr<parser_t> parser,
|
|
const environment_t &vars, cancel_checker_t cancel_checker,
|
|
size_t expansion_limit)
|
|
: parser(std::move(parser)),
|
|
vars(vars),
|
|
expansion_limit(expansion_limit),
|
|
cancel_checker(std::move(cancel_checker)) {}
|
|
|
|
operation_context_t operation_context_t::empty() {
|
|
static const null_environment_t nullenv{};
|
|
return operation_context_t{nullenv};
|
|
}
|
|
|
|
operation_context_t operation_context_t::globals() {
|
|
return operation_context_t{env_stack_t::globals()};
|
|
}
|
|
|
|
operation_context_t::~operation_context_t() = default;
|