mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Put some of builtin_test in an anonymous namespace
Reduces the binary size a bit
This commit is contained in:
parent
d2bee105c9
commit
5eada4b623
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,7 @@
|
|||
using std::unique_ptr;
|
||||
using std::move;
|
||||
|
||||
int builtin_test(parser_t &parser, io_streams_t &streams, wchar_t **argv);
|
||||
|
||||
namespace {
|
||||
namespace test_expressions {
|
||||
|
||||
enum token_t {
|
||||
|
@ -794,6 +793,7 @@ static bool unary_primary_evaluate(test_expressions::token_t token, const wcstri
|
|||
}
|
||||
}
|
||||
}; // namespace test_expressions
|
||||
}; // anonymous namespace
|
||||
|
||||
/// Evaluate a conditional expression given the arguments. If fromtest is set, the caller is the
|
||||
/// test or [ builtin; with the pointer giving the name of the command. for POSIX conformance this
|
||||
|
|
Loading…
Reference in a new issue