mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Early-continue.Reducing indentation.
llvm-svn: 157451
This commit is contained in:
parent
9bf37abe42
commit
df1d6dcf47
@ -85,17 +85,16 @@ static void recursive_mkdir(const char *filename) {
|
|||||||
int i, e;
|
int i, e;
|
||||||
|
|
||||||
for (i = 1, e = strlen(filename); i != e; ++i) {
|
for (i = 1, e = strlen(filename); i != e; ++i) {
|
||||||
if (filename[i] == '/') {
|
if (filename[i] != '/') continue;
|
||||||
pathname = malloc(i + 1);
|
pathname = malloc(i + 1);
|
||||||
strncpy(pathname, filename, i);
|
strncpy(pathname, filename, i);
|
||||||
pathname[i] = '\0';
|
pathname[i] = '\0';
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
_mkdir(pathname);
|
_mkdir(pathname);
|
||||||
#else
|
#else
|
||||||
mkdir(pathname, 0750); /* some of these will fail, ignore it. */
|
mkdir(pathname, 0750); /* some of these will fail, ignore it. */
|
||||||
#endif
|
#endif
|
||||||
free(pathname);
|
free(pathname);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user