Commit 44fc5729 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cmoutpconv-static'

ff5823f5

 cmOutputConverter: mark helper functions static
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1827
parents 897bd570 ff5823f5
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment