summaryrefslogtreecommitdiffstats
path: root/Source/cmOutputConverter.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-04 20:56:32 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-06 18:02:10 (GMT)
commitfd93b3605bc931b5ce2386816973e106fa1ec646 (patch)
tree5efce97eb9a13e93ee2bd2ba86fd2ce5ba55ca69 /Source/cmOutputConverter.h
parent1365e18b9b5ddfb5bc13da5bcdefeb566be12f08 (diff)
downloadCMake-fd93b3605bc931b5ce2386816973e106fa1ec646.zip
CMake-fd93b3605bc931b5ce2386816973e106fa1ec646.tar.gz
CMake-fd93b3605bc931b5ce2386816973e106fa1ec646.tar.bz2
cmOutputConverter: Add a flag for IsUnix
Remove the need for method parameters to represent the distinction.
Diffstat (limited to 'Source/cmOutputConverter.h')
-rw-r--r--Source/cmOutputConverter.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h
index 787075e..71cacab 100644
--- a/Source/cmOutputConverter.h
+++ b/Source/cmOutputConverter.h
@@ -66,7 +66,9 @@ public:
Shell_Flag_AllowMakeVariables = (1 << 6),
/** The target shell quoting uses extra single Quotes for Watcom tools. */
- Shell_Flag_WatcomQuote = (1 << 7)
+ Shell_Flag_WatcomQuote = (1 << 7),
+
+ Shell_Flag_IsUnix = (1 << 8)
};
std::string EscapeForShell(const std::string& str, bool makeVars = false,
@@ -116,11 +118,11 @@ private:
static int Shell__CharIsWhitespace(char c);
static int Shell__CharNeedsQuotesOnUnix(char c);
static int Shell__CharNeedsQuotesOnWindows(char c);
- static int Shell__CharNeedsQuotes(char c, int isUnix, int flags);
+ static int Shell__CharNeedsQuotes(char c, int flags);
static int Shell__CharIsMakeVariableName(char c);
static const char* Shell__SkipMakeVariables(const char* c);
- static int Shell__ArgumentNeedsQuotes(const char* in, int isUnix, int flags);
- static std::string Shell__GetArgument(const char* in, int isUnix, int flags);
+ static int Shell__ArgumentNeedsQuotes(const char* in, int flags);
+ static std::string Shell__GetArgument(const char* in, int flags);
private:
cmState::Snapshot StateSnapshot;