... to distinguish it better from 'our' variable $errors.
Adjust t/002-more.t and lib/ExtUtils/xsubpp accordingly.
map_type
);
-our (@ISA, @EXPORT_OK, $VERSION);
-@ISA = qw(Exporter);
-@EXPORT_OK = qw(process_file);
-$VERSION = '3';
+our @ISA = qw(Exporter);
+our @EXPORT_OK = qw(
+ process_file
+ report_error_count
+);
+our $VERSION = '3';
$VERSION = eval $VERSION if $VERSION =~ /_/;
# use strict; # One of these days ...
return 1;
}
-sub errors { $errors }
+#sub errors { $errors }
+sub report_error_count { $errors }
# Input: ($_, @line) == unparsed input.
# Output: ($_, @line) == (rest of line, following lines).
#!./miniperl
require 5.002;
-use ExtUtils::ParseXS qw(process_file);
+use ExtUtils::ParseXS qw(
+ process_file
+ report_error_count
+);
use Getopt::Long;
my %args = ();
$args{filename} = shift @ARGV;
process_file(%args);
-exit( ExtUtils::ParseXS::errors() ? 1 : 0 );
+exit( report_error_count() ? 1 : 0 );
__END__
sub new{ bless {}, shift }
};
is $@, '';
- is ExtUtils::ParseXS::errors(), 0, 'ExtUtils::ParseXS::errors()';
+ is ExtUtils::ParseXS::report_error_count(), 0, 'ExtUtils::ParseXS::errors()';
is $XSMore::boot_ok, 100, 'the BOOT keyword';