From 5eada4b623059948a24fb687e18f8a0948679e2c Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 4 Aug 2018 15:46:04 -0700 Subject: [PATCH] Put some of builtin_test in an anonymous namespace Reduces the binary size a bit --- src/builtin_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtin_test.cpp b/src/builtin_test.cpp index 00b066f97..6f2603018 100644 --- a/src/builtin_test.cpp +++ b/src/builtin_test.cpp @@ -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