From bc771c2e09e99a405d943901ac6d2c7fa1c98e23 Mon Sep 17 00:00:00 2001 From: Chris 'BinGOs' Williams Date: Tue, 21 Jun 2011 21:29:05 +0100 Subject: [PATCH] Update Compress-Raw-Zlib to CPAN version 2.036 [DELTA] 2.036 6 May 2011 * Added offset parameter to CRC32 --- Porting/Maintainers.pl | 2 +- cpan/Compress-Raw-Zlib/Changes | 4 ++++ cpan/Compress-Raw-Zlib/README | 6 +++--- cpan/Compress-Raw-Zlib/Zlib.xs | 8 ++++---- cpan/Compress-Raw-Zlib/lib/Compress/Raw/Zlib.pm | 2 +- pod/perldelta.pod | 6 ++++++ 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 5dc7c4f..f298a56 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -385,7 +385,7 @@ use File::Glob qw(:case); 'Compress::Raw::Zlib' => { 'MAINTAINER' => 'pmqs', - 'DISTRIBUTION' => 'PMQS/Compress-Raw-Zlib-2.035.tar.gz', + 'DISTRIBUTION' => 'PMQS/Compress-Raw-Zlib-2.036.tar.gz', 'FILES' => q[cpan/Compress-Raw-Zlib], 'EXCLUDED' => [ qr{^t/Test/}, diff --git a/cpan/Compress-Raw-Zlib/Changes b/cpan/Compress-Raw-Zlib/Changes index 9282cc4..50de37d 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 b42a4d4..3f260c6 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 4ed7c59..70713b9 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 4a0f2da..3f340a2 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; diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 32eddee..ec9764e 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -105,6 +105,12 @@ L has been upgraded from version 2.035 to version 2.036 =item * +L has been upgraded from version 2.035 to version 2.036 + +Added offset parameter to CRC32 + +=item * + L has been upgraded from version 0.69 to version 0.70. =back -- 2.7.4