summaryrefslogtreecommitdiff
path: root/cpan
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-06-21 21:29:05 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-06-21 22:22:18 +0100
commitbc771c2e09e99a405d943901ac6d2c7fa1c98e23 (patch)
tree995b4fa2ea03b1289a0b2a48ffb9cc8238fe1762 /cpan
parent1d5c9fb0d4108e5cf2c8a7552fd7d549b7d80de9 (diff)
downloadperl-bc771c2e09e99a405d943901ac6d2c7fa1c98e23.tar.gz
Update Compress-Raw-Zlib to CPAN version 2.036
[DELTA] 2.036 6 May 2011 * Added offset parameter to CRC32
Diffstat (limited to 'cpan')
-rw-r--r--cpan/Compress-Raw-Zlib/Changes4
-rw-r--r--cpan/Compress-Raw-Zlib/README6
-rw-r--r--cpan/Compress-Raw-Zlib/Zlib.xs8
-rw-r--r--cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm2
4 files changed, 12 insertions, 8 deletions
diff --git a/cpan/Compress-Raw-Zlib/Changes b/cpan/Compress-Raw-Zlib/Changes
index 9282cc4051..50de37d258 100644
--- a/cpan/Compress-Raw-Zlib/Changes
+++ b/cpan/Compress-Raw-Zlib/Changes
@@ -1,6 +1,10 @@
CHANGES
-------
+ 2.036 6 May 2011
+
+ * Added offset patramter to CRC32
+
2.035 6 May 2011
* No Changes
diff --git a/cpan/Compress-Raw-Zlib/README b/cpan/Compress-Raw-Zlib/README
index b42a4d4e7e..3f260c640b 100644
--- a/cpan/Compress-Raw-Zlib/README
+++ b/cpan/Compress-Raw-Zlib/README
@@ -1,9 +1,9 @@
Compress-Raw-Zlib
- Version 2.035
+ Version 2.036
- 6th May 2011
+ 18th June 2011
Copyright (c) 2005-2011 Paul Marquess. All rights reserved.
This program is free software; you can redistribute it
@@ -355,7 +355,7 @@ To help me help you, I need all of the following information:
If you haven't installed Compress-Raw-Zlib then search Compress::Raw::Zlib.pm
for a line like this:
- $VERSION = "2.035" ;
+ $VERSION = "2.036" ;
c. The version of zlib you have used.
If you have successfully installed Compress-Raw-Zlib, this one-liner
diff --git a/cpan/Compress-Raw-Zlib/Zlib.xs b/cpan/Compress-Raw-Zlib/Zlib.xs
index 4ed7c599be..70713b918e 100644
--- a/cpan/Compress-Raw-Zlib/Zlib.xs
+++ b/cpan/Compress-Raw-Zlib/Zlib.xs
@@ -669,13 +669,14 @@ Zip_adler32(buf, adler=adlerInitial)
OUTPUT:
RETVAL
-#define Zip_crc32(buf, crc) crc32(crc, buf, (uInt)len)
+#define Zip_crc32(buf, crc, offset) crc32(crc, buf+offset, (uInt)len-offset)
uLong
-Zip_crc32(buf, crc=crcInitial)
+Zip_crc32(buf, crc=crcInitial, offset=0)
uLong crc = NO_INIT
STRLEN len = NO_INIT
Bytef * buf = NO_INIT
+ int offset
SV * sv = ST(0) ;
INIT:
/* If the buffer is a reference, dereference it */
@@ -692,8 +693,7 @@ Zip_crc32(buf, crc=crcInitial)
crc = SvUV(ST(1)) ;
else
crc = crcInitial;
-
-
+
uLong
crc32_combine(crc1, crc2, len2)
uLong crc1
diff --git a/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm b/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm
index 4a0f2dab6f..3f340a26f7 100644
--- a/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm
+++ b/cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm
@@ -13,7 +13,7 @@ use warnings ;
use bytes ;
our ($VERSION, $XS_VERSION, @ISA, @EXPORT, $AUTOLOAD);
-$VERSION = '2.035';
+$VERSION = '2.036';
$XS_VERSION = $VERSION;
$VERSION = eval $VERSION;