aboutsummaryrefslogtreecommitdiff
path: root/src/viewermake.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-07 05:37:32 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-07 05:37:32 +0000
commit89b5cb358a13e7229487fe3c22785942d329b018 (patch)
tree743e0ec9898dd2329223c7d7972d14ddb110abb1 /src/viewermake.cpp
parent71c3c523aacb0f6986d50f4a7a2e5d604728a4c4 (diff)
downloadbuild-89b5cb358a13e7229487fe3c22785942d329b018.tar.gz
build-89b5cb358a13e7229487fe3c22785942d329b018.tar.bz2
build-89b5cb358a13e7229487fe3c22785942d329b018.tar.xz
build-89b5cb358a13e7229487fe3c22785942d329b018.zip
Updated the lexer to not include + or = in string literals outside of quotes.
Added the new make style viewer, the simplest, lamest viewer, but it looks just like the output of make. Very useful for debugging and seeing what's going on.
Diffstat (limited to '')
-rw-r--r--src/viewermake.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/viewermake.cpp b/src/viewermake.cpp
new file mode 100644
index 0000000..7f63552
--- /dev/null
+++ b/src/viewermake.cpp
@@ -0,0 +1,62 @@
1#include <stdio.h>
2#include "viewermake.h"
3#include "perform.h"
4
5ViewerMake::ViewerMake()
6{
7}
8
9ViewerMake::~ViewerMake()
10{
11}
12
13void ViewerMake::beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms )
14{
15 //sAction = sName;
16 //bPrinted = false;
17}
18
19void ViewerMake::printHead()
20{
21 /*
22 if( bPrinted == false )
23 {
24 printf("--- %s ---\n", sAction.getString() );
25 bPrinted = true;
26 }*/
27}
28
29void ViewerMake::endTarget()
30{
31 /*if( bPrinted == true )
32 {
33 printf("\n");
34 }
35 else
36 {
37 printf("Nothing to be done for %s.\n", sAction.getString() );
38 }*/
39}
40
41void ViewerMake::beginPerform( Perform *pPerf )
42{
43 //sTarget = pPerf->getTarget();
44}
45
46void ViewerMake::beginExtraRequiresCheck( const char *sCommand )
47{
48 //printHead();
49 //printf(" check: %s\n", sTarget.getString() );
50}
51
52void ViewerMake::beginExecute()
53{
54 //printHead();
55 //printf(" build: %s\n", sTarget.getString() );
56}
57
58void ViewerMake::executeCmd( const char *sCmd )
59{
60 printf("%s\n", sCmd );
61}
62