aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-24 06:46:39 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-24 06:46:39 +0000
commit71191e311d949b1b7bdd74fc36a14306f492c181 (patch)
treea3a8515f71d17d9672863b5715ea6e3c5590b036 /src/tools
parent8b5f78d058407cb874cbd4a2d917757dc959a482 (diff)
downloadlibbu++-71191e311d949b1b7bdd74fc36a14306f492c181.tar.gz
libbu++-71191e311d949b1b7bdd74fc36a14306f492c181.tar.bz2
libbu++-71191e311d949b1b7bdd74fc36a14306f492c181.tar.xz
libbu++-71191e311d949b1b7bdd74fc36a14306f492c181.zip
Myriad unit test. Seems like it's workin' well.
Diffstat (limited to '')
-rw-r--r--src/tools/mkunit.cpp6
1 files changed, 4 insertions, 2 deletions
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
67{ 67{
68public: 68public:
69 Parser( const Bu::FString &sFile ) : 69 Parser( const Bu::FString &sFile ) :
70 sIn( sFile ),
70 fIn( sFile, File::Read ), 71 fIn( sFile, File::Read ),
71 bIn( fIn ), 72 bIn( fIn ),
72 cBuf( 0 ), 73 cBuf( 0 ),
@@ -475,7 +476,7 @@ public:
475 476
476 f << "\tvoid " << t.sName << "()" 477 f << "\tvoid " << t.sName << "()"
477 << f.nl << "#line " << iL 478 << f.nl << "#line " << iL
478 << " \"" << sOut << "\"" << f.nl 479 << " \"" << sIn << "\"" << f.nl
479 << v << f.nl; 480 << v << f.nl;
480 } 481 }
481 break; 482 break;
@@ -496,7 +497,7 @@ public:
496 497
497 case tokBlock: 498 case tokBlock:
498 fOut.write( sWs ); 499 fOut.write( sWs );
499 f << f.nl << "#line " << iL << " \"" << sOut 500 f << f.nl << "#line " << iL << " \"" << sIn
500 << "\"" << f.nl; 501 << "\"" << f.nl;
501 fOut.write( v.get<Bu::FString>() ); 502 fOut.write( v.get<Bu::FString>() );
502 503
@@ -520,6 +521,7 @@ public:
520 } 521 }
521 522
522private: 523private:
524 Bu::FString sIn;
523 File fIn; 525 File fIn;
524 Buffer bIn; 526 Buffer bIn;
525 char cBuf; 527 char cBuf;