diff options
Diffstat (limited to '')
| -rw-r--r-- | src/tools/mkunit.cpp | 6 |
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 | { |
| 68 | public: | 68 | public: |
| 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 | ||
| 522 | private: | 523 | private: |
| 524 | Bu::FString sIn; | ||
| 523 | File fIn; | 525 | File fIn; |
| 524 | Buffer bIn; | 526 | Buffer bIn; |
| 525 | char cBuf; | 527 | char cBuf; |
