summaryrefslogtreecommitdiff
path: root/Source/cmOutputConverter.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2018-03-06 18:13:33 +0100
committerRolf Eike Beer <eike@sf-mail.de>2018-03-06 18:13:33 +0100
commitff5823f5125309fcf6f5a1e016ca267091d81e16 (patch)
tree8dafae8c349abaccb27c4f46ccabe2e57df0c2bb /Source/cmOutputConverter.cxx
parent674c5b306671129bc4a854137c304f19e2c3bf65 (diff)
downloadcmake-ff5823f5125309fcf6f5a1e016ca267091d81e16.tar.gz
cmOutputConverter: mark helper functions static
This allows the linker to entirely drop any symbols of the functions.
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r--Source/cmOutputConverter.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index 6519dd9a72..fd42c5341c 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)
{