summaryrefslogtreecommitdiff
path: root/xdelta3/testing/modify.h
diff options
context:
space:
mode:
authorJosh MacDonald <josh.macdonald@gmail.com>2015-07-12 23:42:47 -0700
committerJosh MacDonald <josh.macdonald@gmail.com>2015-07-12 23:42:47 -0700
commit53c2be245f503bc5e41b822ac2364f67a346d087 (patch)
treea1aa5bf5547311b45da34ae1adb2a0cefbf8c271 /xdelta3/testing/modify.h
parentab5fac1b46411bdf6151013978a721d52342cc4f (diff)
XD3_WIN32: Handle size_t case in printf; avoid setting XD3_POSIX in Makefile
Diffstat (limited to 'xdelta3/testing/modify.h')
-rw-r--r--xdelta3/testing/modify.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/xdelta3/testing/modify.h b/xdelta3/testing/modify.h
index 023e6ce..93f7bde 100644
--- a/xdelta3/testing/modify.h
+++ b/xdelta3/testing/modify.h
@@ -12,12 +12,12 @@ public:
12 enum Kind { 12 enum Kind {
13 MODIFY = 1, // Mutate a certain range w/ random or supplied data 13 MODIFY = 1, // Mutate a certain range w/ random or supplied data
14 ADD = 2, // Insert random or supplied data 14 ADD = 2, // Insert random or supplied data
15 DELETE = 3, // Delete a specified range of data 15 DELRANGE = 3, // Delete a specified range of data
16 COPY = 4, // Copy from one region, inserting elsewhere 16 COPY = 4, // Copy from one region, inserting elsewhere
17 MOVE = 5, // Copy then delete copied-from range 17 MOVE = 5, // Copy then delete copied-from range
18 COPYOVER = 6 // Copy then delete copied-to range 18 COPYOVER = 6 // Copy then delete copied-to range
19 19
20 // ADD, DELETE, and COPY change the file size 20 // ADD, DELRANGE, and COPY change the file size
21 // MODIFY, MOVE, COPYOVER preserve the file size 21 // MODIFY, MOVE, COPYOVER preserve the file size
22 }; 22 };
23 23
@@ -97,7 +97,7 @@ public:
97 case Change::MODIFY: 97 case Change::MODIFY:
98 ModifyChange(ch, table, source_table, rand); 98 ModifyChange(ch, table, source_table, rand);
99 break; 99 break;
100 case Change::DELETE: 100 case Change::DELRANGE:
101 DeleteChange(ch, table, source_table, rand); 101 DeleteChange(ch, table, source_table, rand);
102 break; 102 break;
103 case Change::COPY: 103 case Change::COPY:
@@ -269,7 +269,7 @@ public:
269 SegmentMap tmp; 269 SegmentMap tmp;
270 CHECK_NE(ch.addr1, ch.addr2); 270 CHECK_NE(ch.addr1, ch.addr2);
271 CopyChange(ch, &tmp, source_table, rand); 271 CopyChange(ch, &tmp, source_table, rand);
272 Change d(Change::DELETE, ch.size, 272 Change d(Change::DELRANGE, ch.size,
273 ch.addr1 < ch.addr2 ? ch.addr1 : ch.addr1 + ch.size); 273 ch.addr1 < ch.addr2 ? ch.addr1 : ch.addr1 + ch.size);
274 DeleteChange(d, table, &tmp, rand); 274 DeleteChange(d, table, &tmp, rand);
275 } 275 }
@@ -282,7 +282,7 @@ public:
282 SegmentMap tmp; 282 SegmentMap tmp;
283 CHECK_NE(ch.addr1, ch.addr2); 283 CHECK_NE(ch.addr1, ch.addr2);
284 CopyChange(ch, &tmp, source_table, rand); 284 CopyChange(ch, &tmp, source_table, rand);
285 Change d(Change::DELETE, ch.size, ch.addr2 + ch.size); 285 Change d(Change::DELRANGE, ch.size, ch.addr2 + ch.size);
286 DeleteChange(d, table, &tmp, rand); 286 DeleteChange(d, table, &tmp, rand);
287 } 287 }
288 288