summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2014-11-28 17:00:53 +0000
committerMike Buland <eichlan@xagasoft.com>2014-11-28 17:00:53 +0000
commit2698c84576447535f397fafcb9f5f06290c3596a (patch)
treece58d9a8e06a3d3a9ef402597643945b7ea80f88 /src
parent0f26ab693e82d1c56ea0be653a8cd670abeb8f89 (diff)
downloadlibbu++-2698c84576447535f397fafcb9f5f06290c3596a.tar.gz
libbu++-2698c84576447535f397fafcb9f5f06290c3596a.tar.bz2
libbu++-2698c84576447535f397fafcb9f5f06290c3596a.tar.xz
libbu++-2698c84576447535f397fafcb9f5f06290c3596a.zip
Minor tweak to bin2cpp, it now will now include a comment showing you the name
of each file in the source. It would be nice to have an enumeration or something at some point too.
Diffstat (limited to 'src')
-rw-r--r--src/tools/bin2cpp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/bin2cpp.cpp b/src/tools/bin2cpp.cpp
index 4214b34..cd57086 100644
--- a/src/tools/bin2cpp.cpp
+++ b/src/tools/bin2cpp.cpp
@@ -194,7 +194,8 @@ int main( int argc, char *argv[] )
194 int idx = 0; 194 int idx = 0;
195 for( Bu::StringList::iterator i = opt.slInput.begin(); i; i++ ) 195 for( Bu::StringList::iterator i = opt.slInput.begin(); i; i++ )
196 { 196 {
197 fSrc << "\t\tcase " << Bu::__calcHashCode( *i ) << "UL:" << fSrc.nl 197 fSrc << "\t\tcase " << Bu::__calcHashCode( *i ) << "UL: // \""
198 << *i << "\"" << fSrc.nl
198 << "\t\t\treturn aFile[" << idx << "];" << fSrc.nl; 199 << "\t\t\treturn aFile[" << idx << "];" << fSrc.nl;
199 idx++; 200 idx++;
200 } 201 }