Skip to content

Commit

Permalink
Update Filter::Util::Call to CPAN version 1.58
Browse files Browse the repository at this point in the history
  [DELTA]

1.58 2017-11-15 rurban
----
  * Drop 5.005 support
  * Switch from DynaLoader to XSLoader [atoomic #5]
  * Replace use vars by our. [atoomic #5]
  * Lazy load Carp only when required. [atoomic #5]
  * Minor test improvements
  * Fix v5.8 cast warnings
  • Loading branch information
bingos committed Dec 12, 2017
1 parent 8bdc12c commit 5069e57
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 153 deletions.
2 changes: 1 addition & 1 deletion Porting/Maintainers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ package Maintainers;
},

'Filter::Util::Call' => {
'DISTRIBUTION' => 'RURBAN/Filter-1.57.tar.gz',
'DISTRIBUTION' => 'RURBAN/Filter-1.58.tar.gz',
'FILES' => q[cpan/Filter-Util-Call
pod/perlfilter.pod
],
Expand Down
23 changes: 12 additions & 11 deletions cpan/Filter-Util-Call/Call.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@

package Filter::Util::Call ;

require 5.005 ;
require DynaLoader;
require 5.006 ; # our
require Exporter;
use Carp ;

use XSLoader ();
use strict;
use warnings;
use vars qw($VERSION $XS_VERSION @ISA @EXPORT) ;

@ISA = qw(Exporter DynaLoader);
@EXPORT = qw( filter_add filter_del filter_read filter_read_exact) ;
$VERSION = "1.57" ;
$XS_VERSION = $VERSION;
our @ISA = qw(Exporter);
our @EXPORT = qw( filter_add filter_del filter_read filter_read_exact) ;
our $VERSION = "1.58" ;
our $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;

sub filter_read_exact($)
Expand All @@ -29,8 +28,10 @@ sub filter_read_exact($)
my ($left) = $size ;
my ($status) ;

croak ("filter_read_exact: size parameter must be > 0")
unless $size > 0 ;
unless ( $size > 0 ) {
require Carp;
Carp::croak("filter_read_exact: size parameter must be > 0");
}

# try to read a block which is exactly $size bytes long
while ($left and ($status = filter_read($left)) > 0) {
Expand Down Expand Up @@ -59,7 +60,7 @@ sub filter_add($)
Filter::Util::Call::real_import($obj, (caller)[0], $coderef) ;
}

bootstrap Filter::Util::Call ;
XSLoader::load('Filter::Util::Call');

1;
__END__
Expand Down
2 changes: 1 addition & 1 deletion cpan/Filter-Util-Call/Call.xs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Author : Paul Marquess
* Date : 2014-12-09 02:48:44 rurban
* Version : 1.57
* Version : 1.58
*
* Copyright (c) 1995-2011 Paul Marquess. All rights reserved.
* Copyright (c) 2011-2014 Reini Urban. All rights reserved.
Expand Down
Loading

0 comments on commit 5069e57

Please sign in to comment.