From: Ash Berlin Date: Tue, 14 Jul 2009 08:24:57 +0000 (+0100) Subject: Version 0.005007 X-Git-Tag: 0.005007 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-Declare.git;a=commitdiff_plain;h=41db92e3b7ca6cde5ddafd4d3f0c52dd8debea1e Version 0.005007 --- diff --git a/Changes b/Changes index d3c52a4..cea2981 100644 --- a/Changes +++ b/Changes @@ -1,19 +1,20 @@ Changes for Devel-Declare +0.005007 - 13 Jul 2009 - Fix line numbers not being updated from skipspace calls -0.005006 +0.005006 - 16 Jun 2009 - Fix compilation on 5.8 perls. -0.005005 +0.005005 - 05 Jun 2009 - Improve compatibility with MAD-enabled perls (Reini Urban, Closes RT#45779). -0.005004 +0.005004 - 03 Jun 2009 - Don't redefine MEM_WRAP_CHECK_ if it's already defined, getting rid of compilation errors on some perls (Maik Fischer). -0.005003 +0.005003 - 24 May 2009 - Failing tests for line number issues (Ash Berlin). - Add strip_names_and_args (Cory Watson). - Various pod fixes (Yanick Champoux, Florian Ragwitz). diff --git a/Declare.xs b/Declare.xs index edfbc0d..6b188c3 100644 --- a/Declare.xs +++ b/Declare.xs @@ -117,10 +117,11 @@ void dd_set_linestr(pTHX_ char* new_value) { unsigned int new_len = strlen(new_value); if (SvLEN(PL_linestr) < new_len) { - croak("forced to realloc PL_linestr for line %s, bailing out before we crash harder", SvPVX(PL_linestr)); + croak("PL_linestr not long enough, was Devel::Declare loaded soon enough in %s", + CopFILE(&PL_compiling) + ); } - SvGROW(PL_linestr, new_len); memcpy(SvPVX(PL_linestr), new_value, new_len+1); diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index df9b0fb..225ba13 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -1 +1,2 @@ ^(?!script/|lib/|inc/|t/|example/|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml|.*?.xs$|stolen_chunk_of_toke.c$) +\b\..*\.swp diff --git a/Makefile.PL b/Makefile.PL index 6c1cad0..af8d9c7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -use inc::Module::Install 0.67; +use inc::Module::Install 0.91; use 5.008001; @@ -25,7 +25,7 @@ my $pkg = ExtUtils::Depends->new('Devel::Declare', 'B::Hooks::OP::Check'); WriteMakefile( dist => { - PREOP => 'pod2text lib/Devel/Declare.pm >$(DISTVNAME)/README' + PREOP => 'pod2text lib/Devel/Declare.pm >README' }, $pkg->get_makefile_vars, ); diff --git a/lib/Devel/Declare.pm b/lib/Devel/Declare.pm index c2c133a..58aeec7 100644 --- a/lib/Devel/Declare.pm +++ b/lib/Devel/Declare.pm @@ -4,7 +4,7 @@ use strict; use warnings; use 5.008001; -our $VERSION = '0.005006'; +our $VERSION = '0.005007'; use constant DECLARE_NAME => 1; use constant DECLARE_PROTO => 2;