Put some of builtin_test in an anonymous namespace

Reduces the binary size a bit
This commit is contained in:
ridiculousfish 2018-08-04 15:46:04 -07:00
parent d2bee105c9
commit 5eada4b623

View file

@ -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