projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee625b0
)
doc that ReadFile reads in text mode on Windows
author
Evan Martin
<martine@danga.com>
Sun, 12 Aug 2012 18:59:35 +0000
(11:59 -0700)
committer
Evan Martin
<martine@danga.com>
Sun, 12 Aug 2012 18:59:35 +0000
(11:59 -0700)
src/util.h
patch
|
blob
|
history
diff --git
a/src/util.h
b/src/util.h
index
ab1882b
..
7e30368
100644
(file)
--- 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);