commit | d9533329dc5e6a969882a89349fa8c69927774e0 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <[email protected]> | Sat Jun 27 05:48:38 2015 +0900 |
committer | Shinichiro Hamaji <[email protected]> | Mon Jun 29 12:26:47 2015 +0900 |
tree | 17dc950d6821371582c4db019c40d4356536387a | |
parent | 6f04aed67d68992c7b5c635b6c1f7aa83fdeb1b7 [diff] [blame] |
Trim leading ./ when kati includes a file
diff --git a/strutil.h b/strutil.h index 8ab2667..368ee23 100644 --- a/strutil.h +++ b/strutil.h
@@ -127,4 +127,9 @@ size_t FindEndOfLine(StringPiece s, size_t e, size_t* lf_cnt); +// Strip leading sequences of './' from file names, so that ./file +// and file are considered to be the same file. +// From http://www.gnu.org/software/make/manual/make.html#Features +StringPiece TrimLeadingCurdir(StringPiece s); + #endif // STRUTIL_H_