Previous 199869 Revisions Next

r36216 Tuesday 3rd March, 2015 at 09:16:05 UTC by Andrew Gardner
Change dangerous variable name.
[src/build]file2str.py

trunk/src/build/file2str.py
r244727r244728
2929    print("Unable to open source file '%s'" % srcfile)
3030    sys.exit(-1)
3131
32bytes = os.path.getsize(srcfile)
32byteCount = os.path.getsize(srcfile)
3333try:
3434    dst = open(dstfile,'w')
3535    dst.write('extern const %s %s[];\n' % ( type, varname ));
r244727r244728
4242                for b in chunk:
4343                    dst.write('0x%02x' % b)
4444                    offs = offs + 1
45                    if offs != bytes:
45                    if offs != byteCount:
4646                        dst.write(',')
4747            else:
4848                break
49            if offs != bytes:
49            if offs != byteCount:
5050                dst.write('\n\t')
5151    if terminate == 1:
5252        dst.write(',0x00')


Previous 199869 Revisions Next


© 1997-2024 The MAME Team