From 71191e311d949b1b7bdd74fc36a14306f492c181 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 24 May 2010 06:46:39 +0000 Subject: Myriad unit test. Seems like it's workin' well. --- src/tools/mkunit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tools/mkunit.cpp') diff --git a/src/tools/mkunit.cpp b/src/tools/mkunit.cpp index 43fab38..0454013 100644 --- a/src/tools/mkunit.cpp +++ b/src/tools/mkunit.cpp @@ -67,6 +67,7 @@ class Parser { public: Parser( const Bu::FString &sFile ) : + sIn( sFile ), fIn( sFile, File::Read ), bIn( fIn ), cBuf( 0 ), @@ -475,7 +476,7 @@ public: f << "\tvoid " << t.sName << "()" << f.nl << "#line " << iL - << " \"" << sOut << "\"" << f.nl + << " \"" << sIn << "\"" << f.nl << v << f.nl; } break; @@ -496,7 +497,7 @@ public: case tokBlock: fOut.write( sWs ); - f << f.nl << "#line " << iL << " \"" << sOut + f << f.nl << "#line " << iL << " \"" << sIn << "\"" << f.nl; fOut.write( v.get() ); @@ -520,6 +521,7 @@ public: } private: + Bu::FString sIn; File fIn; Buffer bIn; char cBuf; -- cgit v1.2.3