summaryrefslogtreecommitdiff
path: root/xdelta3/testing/delta.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/testing/delta.h')
-rw-r--r--xdelta3/testing/delta.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/xdelta3/testing/delta.h b/xdelta3/testing/delta.h
index f874bf2..deac217 100644
--- a/xdelta3/testing/delta.h
+++ b/xdelta3/testing/delta.h
@@ -30,7 +30,7 @@ public:
30 case XD3_WINFINISH: 30 case XD3_WINFINISH:
31 break; 31 break;
32 default: 32 default:
33 DP(RINT "error code %s\n", xd3_strerror (ret)); 33 cerr << "decode: " << done;
34 abort(); 34 abort();
35 } 35 }
36 } 36 }
@@ -48,23 +48,25 @@ public:
48 return stream_.whole_target.wininfolen; 48 return stream_.whole_target.wininfolen;
49 } 49 }
50 50
51 void Print() const { 51// Note: This does not benefit from -Wformat= checking, due to the
52 for (size_t i = 0; i < stream_.whole_target.instlen; i++) { 52// enclosing template. Further, it was not used.
53 xd3_winst &winst = stream_.whole_target.inst[i]; 53// void Print() const {
54 switch (winst.type) { 54// for (size_t i = 0; i < stream_.whole_target.instlen; i++) {
55 case XD3_RUN: 55// xd3_winst &winst = stream_.whole_target.inst[i];
56 DP(RINT "%"Q" run %u\n", winst.position, winst.size); 56// switch (winst.type) {
57 break; 57// case XD3_RUN:
58 case XD3_ADD: 58// DP(RINT, "%" Q "u run %" W "u\n", winst.position, winst.size);
59 DP(RINT "%"Q" add %u\n", winst.position, winst.size); 59// break;
60 break; 60// case XD3_ADD:
61 default: 61// DP(RINT "%" Q "u add %" W "u\n", winst.position, winst.size);
62 DP(RINT "%"Q" copy %u @ %"Q" (mode %u)\n", 62// break;
63 winst.position, winst.size, winst.addr, winst.mode); 63// default:
64 break; 64// DP(RINT "%" Q "u copy %" W "u @ %" Q "u (mode %u)\n",
65 } 65// winst.position, winst.size, winst.addr, winst.mode);
66 } 66// break;
67 } 67// }
68// }
69// }
68 70
69private: 71private:
70 xd3_stream stream_; 72 xd3_stream stream_;