summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-08-01 23:12:55 (GMT)
committerEvan Martin <martine@danga.com>2012-08-01 23:12:55 (GMT)
commitd82e806729bed17bf8fba738ed63eb740863c79e (patch)
tree5dd194c3aa466e5b0a597efd27e7fb478256c261 /src/util.h
parent080314c22ff73fd9e6bc085e0e7053a09a3a6592 (diff)
parent8b590881013a05fd5017aa94185a02f6b7d09758 (diff)
downloadNinja-d82e806729bed17bf8fba738ed63eb740863c79e.zip
Ninja-d82e806729bed17bf8fba738ed63eb740863c79e.tar.gz
Ninja-d82e806729bed17bf8fba738ed63eb740863c79e.tar.bz2
Merge branch 'factor-elide-middle' of git://github.com/polrop/ninja
Conflicts: src/util.cc
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 9267091..fc701cd 100644
--- a/src/util.h
+++ b/src/util.h
@@ -70,6 +70,10 @@ int GetProcessorCount();
/// on error.
double GetLoadAverage();
+/// Elide the given string @a str with '...' in the middle if the length
+/// exceeds @a width.
+string ElideMiddle(const string& str, size_t width);
+
#ifdef _MSC_VER
#define snprintf _snprintf
#define fileno _fileno