ooo-build r15308 - in trunk: . scratch/mso-dumper/src
- From: kyoshida svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r15308 - in trunk: . scratch/mso-dumper/src
- Date: Tue, 10 Feb 2009 06:18:03 +0000 (UTC)
Author: kyoshida
Date: Tue Feb 10 06:18:02 2009
New Revision: 15308
URL: http://svn.gnome.org/viewvc/ooo-build?rev=15308&view=rev
Log:
2009-02-10 Kohei Yoshida <kyoshida novell com>
* scratch/mso-dumper/src/globals.py:
* scratch/mso-dumper/src/xlsstream.py: conditionally hide stream
position for each record, to make it more diff-output friendly. Later
when I get a chanse I'll add a command-line option for this.
Modified:
trunk/ChangeLog
trunk/scratch/mso-dumper/src/globals.py
trunk/scratch/mso-dumper/src/xlsstream.py
Modified: trunk/scratch/mso-dumper/src/globals.py
==============================================================================
--- trunk/scratch/mso-dumper/src/globals.py (original)
+++ trunk/scratch/mso-dumper/src/globals.py Tue Feb 10 06:18:02 2009
@@ -21,6 +21,7 @@
def __init__ (self):
self.debug = False
self.showSectorChain = False
+ self.showStreamPos = False
class StreamData(object):
Modified: trunk/scratch/mso-dumper/src/xlsstream.py
==============================================================================
--- trunk/scratch/mso-dumper/src/xlsstream.py (original)
+++ trunk/scratch/mso-dumper/src/xlsstream.py Tue Feb 10 06:18:02 2009
@@ -413,7 +413,12 @@
handler = recDataRev[header][2](header, size, bytes, self.strmData)
else:
print("%4.4Xh: [unknown record name] (%4.4Xh)"%(header, header))
- print("%4.4Xh: size = %d; pos = %d"%(header, size, pos))
+
+ if self.params.showStreamPos:
+ print("%4.4Xh: size = %d; pos = %d"%(header, size, pos))
+ else:
+ print("%4.4Xh: size = %d"%(header, size))
+
self.__printSep('-', 61, "%4.4Xh: "%header)
for i in xrange(0, size):
if (i+1) % 16 == 1:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]