diff options
author | Scott Graham <scottmg@chromium.org> | 2014-11-08 06:20:34 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2014-11-08 06:20:34 (GMT) |
commit | e24d31901fc79aa7348be46bef5dea8d0dce6c4b (patch) | |
tree | 6f5461e13d02a44c4ce9d7287688329a9ef52774 /src/util.h | |
parent | 513f5bb1ed7392686c455cbe2989d143230a1d80 (diff) | |
download | Ninja-e24d31901fc79aa7348be46bef5dea8d0dce6c4b.zip Ninja-e24d31901fc79aa7348be46bef5dea8d0dce6c4b.tar.gz Ninja-e24d31901fc79aa7348be46bef5dea8d0dce6c4b.tar.bz2 |
track back->forward conversions in a bitmask
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -45,6 +45,12 @@ bool CanonicalizePath(string* path, string* err); bool CanonicalizePath(char* path, size_t* len, string* err); +/// |slash_bits| has bits set starting from lowest for a backslash that was +/// normalized to a forward slash. (only used on Windows) +bool CanonicalizePath(string* path, string* err, unsigned int* slash_bits); +bool CanonicalizePath(char* path, size_t* len, string* err, + unsigned int* slash_bits); + /// Appends |input| to |*result|, escaping according to the whims of either /// Bash, or Win32's CommandLineToArgvW(). /// Appends the string directly to |result| without modification if we can |