diff options
author | Evan Martin <martine@danga.com> | 2012-12-29 20:02:16 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-12-29 20:33:15 (GMT) |
commit | 3249938cdf574058a066436aea06b0541ded6958 (patch) | |
tree | 1dd2f33756337463972fdd21f20ef613ebbb2914 /src/disk_interface.cc | |
parent | 7d41c2f521e27a3c2891e6f1c8da42f0f6f3c266 (diff) | |
download | Ninja-3249938cdf574058a066436aea06b0541ded6958.zip Ninja-3249938cdf574058a066436aea06b0541ded6958.tar.gz Ninja-3249938cdf574058a066436aea06b0541ded6958.tar.bz2 |
wrap some overlong lines
Diffstat (limited to 'src/disk_interface.cc')
-rw-r--r-- | src/disk_interface.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc index 515ff59..7c557cd 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -80,7 +80,8 @@ TimeStamp RealDiskInterface::Stat(const string& path) { // MSDN: "Naming Files, Paths, and Namespaces" // http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx if (!path.empty() && path[0] != '\\' && path.size() > MAX_PATH) { - Error("Stat(%s): Filename longer than %i characters", path.c_str(), MAX_PATH); + Error("Stat(%s): Filename longer than %i characters", + path.c_str(), MAX_PATH); return -1; } WIN32_FILE_ATTRIBUTE_DATA attrs; @@ -116,18 +117,21 @@ TimeStamp RealDiskInterface::Stat(const string& path) { bool RealDiskInterface::WriteFile(const string& path, const string& contents) { FILE * fp = fopen(path.c_str(), "w"); if (fp == NULL) { - Error("WriteFile(%s): Unable to create file. %s", path.c_str(), strerror(errno)); + Error("WriteFile(%s): Unable to create file. %s", + path.c_str(), strerror(errno)); return false; } if (fwrite(contents.data(), 1, contents.length(), fp) < contents.length()) { - Error("WriteFile(%s): Unable to write to the file. %s", path.c_str(), strerror(errno)); + Error("WriteFile(%s): Unable to write to the file. %s", + path.c_str(), strerror(errno)); fclose(fp); return false; } if (fclose(fp) == EOF) { - Error("WriteFile(%s): Unable to close the file. %s", path.c_str(), strerror(errno)); + Error("WriteFile(%s): Unable to close the file. %s", + path.c_str(), strerror(errno)); return false; } |