summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.c
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3.c')
-rw-r--r--xdelta3/xdelta3.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/xdelta3/xdelta3.c b/xdelta3/xdelta3.c
index 0f8cf8d..826375f 100644
--- a/xdelta3/xdelta3.c
+++ b/xdelta3/xdelta3.c
@@ -1122,7 +1122,8 @@ xd3_choose_instruction (const xd3_code_table_desc *desc, xd3_rinst *prev, xd3_ri
1122} 1122}
1123#else /* GENERIC_ENCODE_TABLES */ 1123#else /* GENERIC_ENCODE_TABLES */
1124 1124
1125/* This version of xd3_choose_instruction is hard-coded for the default table. */ 1125/* This version of xd3_choose_instruction is hard-coded for the default
1126 table. */
1126static void 1127static void
1127xd3_choose_instruction (xd3_rinst *prev, xd3_rinst *inst) 1128xd3_choose_instruction (xd3_rinst *prev, xd3_rinst *inst)
1128{ 1129{
@@ -1303,9 +1304,10 @@ xd3_compute_alternate_table_encoding (xd3_stream *stream, const uint8_t **data,
1303 return ret; 1304 return ret;
1304 } 1305 }
1305 1306
1306 /* During development of a new code table, enable this variable to print the new 1307 /* During development of a new code table, enable this variable to print
1307 * static contents and determine its size. At run time the table will be filled in 1308 * the new static contents and determine its size. At run time the
1308 * appropriately, but at least it should have the proper size beforehand. */ 1309 * table will be filled in appropriately, but at least it should have
1310 * the proper size beforehand. */
1309#if GENERIC_ENCODE_TABLES_COMPUTE_PRINT 1311#if GENERIC_ENCODE_TABLES_COMPUTE_PRINT
1310 { 1312 {
1311 int i; 1313 int i;
@@ -1337,8 +1339,9 @@ xd3_compute_alternate_table_encoding (xd3_stream *stream, const uint8_t **data,
1337 1339
1338#endif /* XD3_ENCODER */ 1340#endif /* XD3_ENCODER */
1339 1341
1340/* This function generates the 1536-byte string specified in sections 5.4 and 7 of 1342/* This function generates the 1536-byte string specified in sections 5.4 and
1341 * rfc3284, which is used to represent a code table within a VCDIFF file. */ 1343 * 7 of rfc3284, which is used to represent a code table within a VCDIFF
1344 * file. */
1342void xd3_compute_code_table_string (const xd3_dinst *code_table, uint8_t *str) 1345void xd3_compute_code_table_string (const xd3_dinst *code_table, uint8_t *str)
1343{ 1346{
1344 int i, s; 1347 int i, s;