diff options
author | Evan Martin <martine@danga.com> | 2012-04-26 03:30:35 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-04-26 03:39:14 (GMT) |
commit | 2ddef5b052c42876333928bc9591ad6ff8953fab (patch) | |
tree | 400c049ed782f51add2896b9edc700215c3dee60 /src/build.h | |
parent | 496f7729009c46691a3210fcb67c418aa102da96 (diff) | |
download | Ninja-2ddef5b052c42876333928bc9591ad6ff8953fab.zip Ninja-2ddef5b052c42876333928bc9591ad6ff8953fab.tar.gz Ninja-2ddef5b052c42876333928bc9591ad6ff8953fab.tar.bz2 |
reduce custom ninja status patch in minor ways
Elsewhere in the code I avoid sstream and manual buffer management,
so switch this code to behave similarly. Sorry for being OCD.
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/build.h b/src/build.h index 8078910..c0328f3 100644 --- a/src/build.h +++ b/src/build.h @@ -24,6 +24,7 @@ using namespace std; #include "exit_status.h" +#include "util.h" // int64_t struct BuildLog; struct Edge; @@ -162,25 +163,11 @@ struct BuildStatus { /// See the user manual for more information about the available /// placeholders. /// @param progress_status_format_ The format of the progress status. - /// @param buffer The buffer where is stored the formatted progress status. - /// @param buffer_size The size of the given @a buffer. - /// @param err The error message if -1 is returned. - /// @return The number of characters inserted in @a buffer and -1 on error. - int FormatProgressStatus(const char* progress_status_format, - char* buffer, - const int buffer_size, - string* err) const; + string FormatProgressStatus(const char* progress_status_format) const; private: void PrintStatus(Edge* edge); - /// Print the progress status. - /// - /// Get the status from the NINJA_STATUS environment variable if defined. - /// - /// @return The number of printed characters. - int PrintProgressStatus() const; - const BuildConfig& config_; /// Time the build started. |