diff options
author | KWSys Robot <kwrobot@kitware.com> | 2013-01-31 13:21:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-01 14:27:46 (GMT) |
commit | 23ae48412093e4acbd5270536aace226d5869679 (patch) | |
tree | 9824f19802c2b88a6b1124ac0c20ba0eb4516fa1 /testCommandLineArguments.cxx | |
parent | 4ba0ac7be4bbe38a7cb3334504e69db039288ad8 (diff) | |
download | CMake-23ae48412093e4acbd5270536aace226d5869679.zip CMake-23ae48412093e4acbd5270536aace226d5869679.tar.gz CMake-23ae48412093e4acbd5270536aace226d5869679.tar.bz2 |
KWSys 2013-01-31 (5b0d1bd9)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ 5b0d1bd9 | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' 6fa1c99f..5b0d1bd9
Alan Hourihane (2):
e81e2b72 DynamicLoader: Implement on Atari FreeMINT
5c4dcb2b ProcessUNIX: No select on Atari FreeMINT
Sean McBride (2):
bff2ea07 Glob: Fix clang -Wdocumentation warning
5b0d1bd9 Fix clang -Weverything warnings
Change-Id: I8b342bea8bc9c7b92a856ddc948e1b56f5e74b98
Diffstat (limited to 'testCommandLineArguments.cxx')
-rw-r--r-- | testCommandLineArguments.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testCommandLineArguments.cxx b/testCommandLineArguments.cxx index e75a87e..72e6544 100644 --- a/testCommandLineArguments.cxx +++ b/testCommandLineArguments.cxx @@ -24,9 +24,9 @@ #include <stddef.h> /* size_t */ #include <string.h> /* strcmp */ -void* random_ptr = reinterpret_cast<void*>(0x123); +static void* random_ptr = reinterpret_cast<void*>(0x123); -int argument(const char* arg, const char* value, void* call_data) +static int argument(const char* arg, const char* value, void* call_data) { kwsys_ios::cout << "Got argument: \"" << arg << "\" value: \"" << (value?value:"(null)") << "\"" << kwsys_ios::endl; if ( call_data != random_ptr ) @@ -37,7 +37,7 @@ int argument(const char* arg, const char* value, void* call_data) return 1; } -int unknown_argument(const char* argument, void* call_data) +static int unknown_argument(const char* argument, void* call_data) { kwsys_ios::cout << "Got unknown argument: \"" << argument << "\"" << kwsys_ios::endl; if ( call_data != random_ptr ) @@ -48,12 +48,12 @@ int unknown_argument(const char* argument, void* call_data) return 1; } -bool CompareTwoItemsOnList(bool i1, bool i2) { return i1 == i2; } -bool CompareTwoItemsOnList(int i1, int i2) { return i1 == i2; } -bool CompareTwoItemsOnList(double i1, double i2) { return i1 == i2; } -bool CompareTwoItemsOnList(const char* i1, +static bool CompareTwoItemsOnList(bool i1, bool i2) { return i1 == i2; } +static bool CompareTwoItemsOnList(int i1, int i2) { return i1 == i2; } +static bool CompareTwoItemsOnList(double i1, double i2) { return i1 == i2; } +static bool CompareTwoItemsOnList(const char* i1, const char* i2) { return strcmp(i1, i2) == 0; } -bool CompareTwoItemsOnList(const kwsys_stl::string& i1, +static bool CompareTwoItemsOnList(const kwsys_stl::string& i1, const kwsys_stl::string& i2) { return i1 == i2; } int testCommandLineArguments(int argc, char* argv[]) |