Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
c22f3cf7
Commit
c22f3cf7
authored
Oct 08, 2016
by
Brad King
💬
Browse files
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2016-10-07 (dfe9b386)
parents
b99bbfe8
bf28a387
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/kwsys/SystemTools.cxx
View file @
c22f3cf7
...
...
@@ -2716,17 +2716,15 @@ unsigned long SystemTools::FileLength(const std::string& filename)
return
length
;
}
int
SystemTools
::
Strucmp
(
const
char
*
s1
,
const
char
*
s2
)
{
// lifted from Graphvis http://www.graphviz.org
while
((
*
s1
!=
'\0'
)
&&
(
tolower
(
*
s1
)
==
tolower
(
*
s2
)))
{
s1
++
;
s2
++
;
}
return
tolower
(
*
s1
)
-
tolower
(
*
s2
);
int
SystemTools
::
Strucmp
(
const
char
*
l
,
const
char
*
r
)
{
int
lc
;
int
rc
;
do
{
lc
=
tolower
(
*
l
++
);
rc
=
tolower
(
*
r
++
);
}
while
(
lc
==
rc
&&
lc
);
return
lc
-
rc
;
}
// return file's modified time
...
...
Brad King
💬
@brad.king
Mentioned in commit
e8cdbec4
·
Oct 10, 2016
Mentioned in commit
e8cdbec4
Mentioned in commit e8cdbec45e757352580476a329f4998074d1b10a
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment