diff options
author | Evan Martin <martine@danga.com> | 2011-12-27 23:45:30 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-28 02:07:53 (GMT) |
commit | ea9746f7fe85320d3fb55aa7f3f8422e048b19fb (patch) | |
tree | 1afd9d72d89c0f9671ccfc1a9859c68596365f52 /src/depfile_parser.h | |
parent | 3abfcdc5b02602091a54a79b3acff2462225f8b9 (diff) | |
download | Ninja-ea9746f7fe85320d3fb55aa7f3f8422e048b19fb.zip Ninja-ea9746f7fe85320d3fb55aa7f3f8422e048b19fb.tar.gz Ninja-ea9746f7fe85320d3fb55aa7f3f8422e048b19fb.tar.bz2 |
de-escape backslashes in depfiles while parsing
Diffstat (limited to 'src/depfile_parser.h')
-rw-r--r-- | src/depfile_parser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/depfile_parser.h b/src/depfile_parser.h index 08bf68a..c900956 100644 --- a/src/depfile_parser.h +++ b/src/depfile_parser.h @@ -20,8 +20,9 @@ using namespace std; /// Parser for the dependency information emitted by gcc's -M flags. struct DepfileParser { - /// Parse an input file. Warning: may mutate the content in-place - /// and parsed StringPieces are pointers within it. + /// Parse an input file. Input must be NUL-terminated. + /// Warning: may mutate the content in-place and parsed StringPieces are + /// pointers within it. bool Parse(string* content, string* err); StringPiece out_; |