mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
Merge topic 'update-kwsys'
c22f3cf7Merge branch 'upstream-KWSys' into update-kwsysbf28a387KWSys 2016-10-07 (dfe9b386)
This commit is contained in:
@@ -2716,17 +2716,15 @@ unsigned long SystemTools::FileLength(const std::string& filename)
|
||||
return length;
|
||||
}
|
||||
|
||||
int SystemTools::Strucmp(const char *s1, const char *s2)
|
||||
int SystemTools::Strucmp(const char* l, const char* r)
|
||||
{
|
||||
// lifted from Graphvis http://www.graphviz.org
|
||||
while ((*s1 != '\0')
|
||||
&& (tolower(*s1) == tolower(*s2)))
|
||||
{
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
|
||||
return tolower(*s1) - tolower(*s2);
|
||||
int lc;
|
||||
int rc;
|
||||
do {
|
||||
lc = tolower(*l++);
|
||||
rc = tolower(*r++);
|
||||
} while(lc == rc && lc);
|
||||
return lc - rc;
|
||||
}
|
||||
|
||||
// return file's modified time
|
||||
|
||||
Reference in New Issue
Block a user