diff options
author | Evan Martin <martine@danga.com> | 2012-08-01 23:12:55 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-08-01 23:12:55 (GMT) |
commit | d82e806729bed17bf8fba738ed63eb740863c79e (patch) | |
tree | 5dd194c3aa466e5b0a597efd27e7fb478256c261 /src/util.h | |
parent | 080314c22ff73fd9e6bc085e0e7053a09a3a6592 (diff) | |
parent | 8b590881013a05fd5017aa94185a02f6b7d09758 (diff) | |
download | Ninja-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |