diff options
author | Brad King <brad.king@kitware.com> | 2018-03-09 12:39:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-03-09 12:40:28 (GMT) |
commit | 44fc5729637330e463666f97ba952dcb6f2e9506 (patch) | |
tree | 8a1a3b93b11554ed498730479680ba8fc3691a1c /Source | |
parent | 897bd57025d4bb18bbeaec454f0ea1c26e4a901e (diff) | |
parent | ff5823f5125309fcf6f5a1e016ca267091d81e16 (diff) | |
download | CMake-44fc5729637330e463666f97ba952dcb6f2e9506.zip CMake-44fc5729637330e463666f97ba952dcb6f2e9506.tar.gz CMake-44fc5729637330e463666f97ba952dcb6f2e9506.tar.bz2 |
Merge topic 'cmoutpconv-static'
ff5823f512 cmOutputConverter: mark helper functions static
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1827
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmOutputConverter.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index 6519dd9..fd42c53 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -342,13 +342,12 @@ use the caret character itself (^), use two in a row (^^). */ /* Some helpers to identify character classes */ -namespace { -inline int Shell__CharIsWhitespace(char c) +static int Shell__CharIsWhitespace(char c) { return ((c == ' ') || (c == '\t')); } -inline int Shell__CharNeedsQuotesOnUnix(char c) +static int Shell__CharNeedsQuotesOnUnix(char c) { return ((c == '\'') || (c == '`') || (c == ';') || (c == '#') || (c == '&') || (c == '$') || (c == '(') || (c == ')') || (c == '~') || @@ -356,17 +355,16 @@ inline int Shell__CharNeedsQuotesOnUnix(char c) (c == '\\')); } -inline int Shell__CharNeedsQuotesOnWindows(char c) +static int Shell__CharNeedsQuotesOnWindows(char c) { return ((c == '\'') || (c == '#') || (c == '&') || (c == '<') || (c == '>') || (c == '|') || (c == '^')); } -inline int Shell__CharIsMakeVariableName(char c) +static int Shell__CharIsMakeVariableName(char c) { return c && (c == '_' || isalpha((static_cast<int>(c)))); } -} int cmOutputConverter::Shell__CharNeedsQuotes(char c, int flags) { |