diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-05 06:52:01 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-05 06:52:01 +0000 |
commit | 2c0c23b75f563d0a1e68f6079a8eea73c40a877a (patch) | |
tree | 5371a7fbf46bb21bd283f9162358ed9146912259 /src/viewerplain.cpp | |
parent | 8dd79b7b5a0309f9bc1185019a4af16b3b52aece (diff) | |
download | build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.tar.gz build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.tar.bz2 build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.tar.xz build-2c0c23b75f563d0a1e68f6079a8eea73c40a877a.zip |
Tweaked the cache format, it's no longer compatable with the old version, but it
is less than one tenth the size, without using anything as slow as a compresion
system, I just store each string only once (it's sort of compression).
I also updated the plain viewer to not be so annoying if it doesn't have
anything to do.
Diffstat (limited to 'src/viewerplain.cpp')
-rw-r--r-- | src/viewerplain.cpp | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/viewerplain.cpp b/src/viewerplain.cpp index edc5ba8..5d95d19 100644 --- a/src/viewerplain.cpp +++ b/src/viewerplain.cpp | |||
@@ -12,22 +12,45 @@ ViewerPlain::~ViewerPlain() | |||
12 | 12 | ||
13 | void ViewerPlain::beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms ) | 13 | void ViewerPlain::beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms ) |
14 | { | 14 | { |
15 | printf("--- %s ---\n", sName ); | 15 | sAction = sName; |
16 | bPrinted = false; | ||
17 | } | ||
18 | |||
19 | void ViewerPlain::printHead() | ||
20 | { | ||
21 | if( bPrinted == false ) | ||
22 | { | ||
23 | printf("--- %s ---\n", sAction.getString() ); | ||
24 | bPrinted = true; | ||
25 | } | ||
16 | } | 26 | } |
17 | 27 | ||
18 | void ViewerPlain::endTarget() | 28 | void ViewerPlain::endTarget() |
19 | { | 29 | { |
20 | printf("\n"); | 30 | if( bPrinted == true ) |
31 | { | ||
32 | printf("\n"); | ||
33 | } | ||
34 | else | ||
35 | { | ||
36 | printf("Nothing to be done for %s.\n", sAction.getString() ); | ||
37 | } | ||
21 | } | 38 | } |
22 | 39 | ||
23 | void ViewerPlain::beginPerform( Perform *pPerf ) | 40 | void ViewerPlain::beginPerform( Perform *pPerf ) |
24 | { | 41 | { |
25 | sTarget = pPerf->getTarget(); | 42 | sTarget = pPerf->getTarget(); |
43 | } | ||
44 | |||
45 | void ViewerPlain::beginExtraRequiresCheck( const char *sCommand ) | ||
46 | { | ||
47 | printHead(); | ||
26 | printf(" check: %s\n", sTarget.getString() ); | 48 | printf(" check: %s\n", sTarget.getString() ); |
27 | } | 49 | } |
28 | 50 | ||
29 | void ViewerPlain::beginExecute() | 51 | void ViewerPlain::beginExecute() |
30 | { | 52 | { |
53 | printHead(); | ||
31 | printf(" build: %s\n", sTarget.getString() ); | 54 | printf(" build: %s\n", sTarget.getString() ); |
32 | } | 55 | } |
33 | 56 | ||