summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2014-11-08 06:20:34 (GMT)
committerScott Graham <scottmg@chromium.org>2014-11-08 06:20:34 (GMT)
commite24d31901fc79aa7348be46bef5dea8d0dce6c4b (patch)
tree6f5461e13d02a44c4ce9d7287688329a9ef52774 /src/util.h
parent513f5bb1ed7392686c455cbe2989d143230a1d80 (diff)
downloadNinja-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 7101770..36f31f3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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