summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-08-12 18:59:35 (GMT)
committerEvan Martin <martine@danga.com>2012-08-12 18:59:35 (GMT)
commit07bd1e2f088c55dfb01609e73febc08cedf854ad (patch)
tree12b0167f04ffa69522e971834310458c8bb1d8ab /src
parentee625b0b8a16a3182bf1e0531c81f846ef9f4df9 (diff)
downloadNinja-07bd1e2f088c55dfb01609e73febc08cedf854ad.zip
Ninja-07bd1e2f088c55dfb01609e73febc08cedf854ad.tar.gz
Ninja-07bd1e2f088c55dfb01609e73febc08cedf854ad.tar.bz2
doc that ReadFile reads in text mode on Windows
Diffstat (limited to 'src')
-rw-r--r--src/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index ab1882b..7e30368 100644
--- a/src/util.h
+++ b/src/util.h
@@ -41,7 +41,8 @@ bool CanonicalizePath(string* path, string* err);
bool CanonicalizePath(char* path, size_t* len, string* err);
-/// Read a file to a string.
+/// Read a file to a string (in text mode: with CRLF conversion
+/// on Windows).
/// Returns -errno and fills in \a err on error.
int ReadFile(const string& path, string* contents, string* err);