From: Jarkko Hietaniemi Date: Fri, 4 Jul 2003 12:59:45 +0000 (+0000) Subject: Upgrade to Digest::MD5 2.24, with few extra tweaks: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f05fc781a61040f6c41c46560387019732fb8c28;p=p5sagit%2Fp5-mst-13.2.git Upgrade to Digest::MD5 2.24, with few extra tweaks: (1) make the PATCHLEVEL logic as it is with List::Util (more portable to older Perls) (2) regen the MD5 checksums with ... (3) ... the Mac OS Classic checksums generated via MacRoman (just a guess) (4) Keep the core Makefile.PL. p4raw-id: //depot/perl@19986 --- diff --git a/ext/Digest/MD5/Changes b/ext/Digest/MD5/Changes index b81bc52..a2d6953 100644 --- a/ext/Digest/MD5/Changes +++ b/ext/Digest/MD5/Changes @@ -1,3 +1,13 @@ +2003-03-09 Gisle Aas + + Release 2.24 + + Don't let the $^W test get confused by lexical warnings. + + Sync up with bleadperl; safer patchlevel include. + + + 2003-01-18 Gisle Aas Release 2.23 diff --git a/ext/Digest/MD5/MD5.pm b/ext/Digest/MD5/MD5.pm index 2236605..ece02df 100644 --- a/ext/Digest/MD5/MD5.pm +++ b/ext/Digest/MD5/MD5.pm @@ -3,7 +3,7 @@ package Digest::MD5; use strict; use vars qw($VERSION @ISA @EXPORT_OK); -$VERSION = '2.23'; # $Date: 2003/01/19 04:42:15 $ +$VERSION = '2.24'; # $Date: 2003/03/09 15:23:10 $ require Exporter; *import = \&Exporter::import; diff --git a/ext/Digest/MD5/MD5.xs b/ext/Digest/MD5/MD5.xs index f70acbb..1888f75 100644 --- a/ext/Digest/MD5/MD5.xs +++ b/ext/Digest/MD5/MD5.xs @@ -1,4 +1,4 @@ -/* $Id: MD5.xs,v 1.35 2003/01/05 00:54:17 gisle Exp $ */ +/* $Id: MD5.xs,v 1.37 2003/03/09 15:20:43 gisle Exp $ */ /* * This library is free software; you can redistribute it and/or @@ -44,17 +44,26 @@ extern "C" { } #endif -#ifndef PATCHLEVEL +#ifndef PERL_VERSION # include # if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL))) # include # endif +# define PERL_REVISION 5 +# define PERL_VERSION PATCHLEVEL +# define PERL_SUBVERSION SUBVERSION #endif #if PATCHLEVEL <= 4 && !defined(PL_dowarn) #define PL_dowarn dowarn #endif +#ifdef G_WARN_ON + #define DOWARN (PL_dowarn & G_WARN_ON) +#else + #define DOWARN PL_dowarn +#endif + #ifdef SvPVbyte #if PERL_REVISION == 5 && PERL_VERSION < 7 /* SvPVbyte does not work in perl-5.6.1, borrowed version for 5.7.3 */ @@ -664,7 +673,7 @@ md5(...) PPCODE: MD5Init(&ctx); - if (PL_dowarn) { + if (DOWARN) { char *msg = 0; if (items == 1) { if (SvROK(ST(0))) { diff --git a/ext/Digest/MD5/t/files.t b/ext/Digest/MD5/t/files.t index e9e9d3b..1af754f 100644 --- a/ext/Digest/MD5/t/files.t +++ b/ext/Digest/MD5/t/files.t @@ -20,27 +20,27 @@ use Digest::MD5 qw(md5 md5_hex md5_base64); my $EXPECT; if (ord "A" == 193) { # EBCDIC $EXPECT = <