From 89b5cb358a13e7229487fe3c22785942d329b018 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 7 Aug 2006 05:37:32 +0000 Subject: 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. --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 3ea4411..c1df482 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include "builder.h" #include "viewerplain.h" #include "viewerpercent.h" +#include "viewermake.h" #include "paramproc.h" #include "staticstring.h" @@ -17,6 +18,8 @@ public: "Set the input script, default: build.conf"); addParam('p', mkproc(Param::procViewPercent), "Switch to percent view."); + addParam('m', mkproc(Param::procViewMake), + "Switch to 'make' style view."); addParam("cache", &sCache, "Set an alternative cache file." ); addParam('d', &bDebug, @@ -48,6 +51,12 @@ public: pViewer = new ViewerPercent; } + int procViewMake( int argc, char *argv[] ) + { + delete pViewer; + pViewer = new ViewerMake; + } + std::string sCache; std::string sFile; StaticString sAction; -- cgit v1.2.3