diff options
author | dotdotisdead <dotdotisdead@a3eca27d-f21b-0410-9b4a-6511e771f64e> | 2006-08-27 21:53:05 +0000 |
---|---|---|
committer | dotdotisdead <dotdotisdead@a3eca27d-f21b-0410-9b4a-6511e771f64e> | 2006-08-27 21:53:05 +0000 |
commit | 5b2604f05112824495e806a4e7f413b92ff9827f (patch) | |
tree | 9becec0d3c2948d76a96118ff624c3b6f6f19b29 /xdelta3/xdelta3.h | |
parent | a6f202275ec093b9f8948d77b9783f0820f930d8 (diff) |
Fixes the srcwin_cksum_pos advancement, at least up through the 32bit
boundary.
Adds XD3_TOOFARBACK error code and XD3_INTERNAL for internal errors
where asserts won't do.
Diffstat (limited to 'xdelta3/xdelta3.h')
-rwxr-xr-x | xdelta3/xdelta3.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h index a35c9b0..eb11141 100755 --- a/xdelta3/xdelta3.h +++ b/xdelta3/xdelta3.h | |||
@@ -47,7 +47,7 @@ | |||
47 | /* The source window starts with only a few checksums, then doubles up to | 47 | /* The source window starts with only a few checksums, then doubles up to |
48 | * XD3_DEFAULT_MAX_CKSUM_ADVANCE. */ | 48 | * XD3_DEFAULT_MAX_CKSUM_ADVANCE. */ |
49 | #ifndef XD3_DEFAULT_START_CKSUM_ADVANCE | 49 | #ifndef XD3_DEFAULT_START_CKSUM_ADVANCE |
50 | #define XD3_DEFAULT_START_CKSUM_ADVANCE 1024 | 50 | #define XD3_DEFAULT_START_CKSUM_ADVANCE (1U << 14) |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | /* TODO: There is no command-line flag to set this value. */ | 53 | /* TODO: There is no command-line flag to set this value. */ |
@@ -295,6 +295,8 @@ typedef enum { | |||
295 | XD3_WINSTART = -17707, /* notification: returned before a window is processed, giving a | 295 | XD3_WINSTART = -17707, /* notification: returned before a window is processed, giving a |
296 | * chance to XD3_SKIP_WINDOW or not XD3_SKIP_EMIT that window. */ | 296 | * chance to XD3_SKIP_WINDOW or not XD3_SKIP_EMIT that window. */ |
297 | XD3_WINFINISH = -17708, /* notification: returned after encode/decode & output for a window */ | 297 | XD3_WINFINISH = -17708, /* notification: returned after encode/decode & output for a window */ |
298 | XD3_TOOFARBACK = -17709, /* (encoder only) may be returned by getblk() if the block is too old */ | ||
299 | XD3_INTERNAL = -17710, /* internal error */ | ||
298 | 300 | ||
299 | } xd3_rvalues; | 301 | } xd3_rvalues; |
300 | 302 | ||