Blame SOURCES/ExtUtils-ParseXS-3.39-Upgrade-to-3.40.patch

1a9318
From 4f8996e1ea5a5f24b1d5b4462f56a917daa67a47 Mon Sep 17 00:00:00 2001
1a9318
From: Jitka Plesnikova <jplesnik@redhat.com>
1a9318
Date: Fri, 26 Apr 2019 15:59:36 +0200
1a9318
Subject: [PATCH] Upgrade to 3.40
1a9318
1a9318
The generated prototype (with PROTOTYPES: ENABLE) would include
1a9318
OUTLIST parameters, but these aren't arguments to the perl function.
1a9318
1a9318
---
1a9318
 lib/ExtUtils/ParseXS.pm            | 4 ++--
1a9318
 lib/ExtUtils/ParseXS/Constants.pm  | 2 +-
1a9318
 lib/ExtUtils/ParseXS/CountLines.pm | 2 +-
1a9318
 lib/ExtUtils/ParseXS/Eval.pm       | 2 +-
1a9318
 lib/ExtUtils/ParseXS/Utilities.pm  | 2 +-
1a9318
 t/002-more.t                       | 7 +++++--
1a9318
 6 files changed, 11 insertions(+), 8 deletions(-)
1a9318
1a9318
diff --git a/lib/ExtUtils/ParseXS.pm b/lib/ExtUtils/ParseXS.pm
1a9318
index e1f0940..fba7f4d 100644
1a9318
--- a/lib/ExtUtils/ParseXS.pm
1a9318
+++ b/lib/ExtUtils/ParseXS.pm
1a9318
@@ -11,7 +11,7 @@ use Symbol;
1a9318
 
1a9318
 our $VERSION;
1a9318
 BEGIN {
1a9318
-  $VERSION = '3.39';
1a9318
+  $VERSION = '3.40';
1a9318
   require ExtUtils::ParseXS::Constants; ExtUtils::ParseXS::Constants->VERSION($VERSION);
1a9318
   require ExtUtils::ParseXS::CountLines; ExtUtils::ParseXS::CountLines->VERSION($VERSION);
1a9318
   require ExtUtils::ParseXS::Utilities; ExtUtils::ParseXS::Utilities->VERSION($VERSION);
1a9318
@@ -467,7 +467,7 @@ EOM
1a9318
         $self->{defaults}->{$args[$i]} = $2;
1a9318
         $self->{defaults}->{$args[$i]} =~ s/"/\\"/g;
1a9318
       }
1a9318
-      $self->{proto_arg}->[$i+1] = '$';
1a9318
+      $self->{proto_arg}->[$i+1] = '$' unless $only_C_inlist_ref->{$args[$i]};
1a9318
     }
1a9318
     my $min_args = $num_args - $extra_args;
1a9318
     $report_args =~ s/"/\\"/g;
1a9318
diff --git a/lib/ExtUtils/ParseXS/Constants.pm b/lib/ExtUtils/ParseXS/Constants.pm
1a9318
index 45b5674..2c392e3 100644
1a9318
--- a/lib/ExtUtils/ParseXS/Constants.pm
1a9318
+++ b/lib/ExtUtils/ParseXS/Constants.pm
1a9318
@@ -3,7 +3,7 @@ use strict;
1a9318
 use warnings;
1a9318
 use Symbol;
1a9318
 
1a9318
-our $VERSION = '3.39';
1a9318
+our $VERSION = '3.40';
1a9318
 
1a9318
 =head1 NAME
1a9318
 
1a9318
diff --git a/lib/ExtUtils/ParseXS/CountLines.pm b/lib/ExtUtils/ParseXS/CountLines.pm
1a9318
index 5b48449..a9258f9 100644
1a9318
--- a/lib/ExtUtils/ParseXS/CountLines.pm
1a9318
+++ b/lib/ExtUtils/ParseXS/CountLines.pm
1a9318
@@ -1,7 +1,7 @@
1a9318
 package ExtUtils::ParseXS::CountLines;
1a9318
 use strict;
1a9318
 
1a9318
-our $VERSION = '3.39';
1a9318
+our $VERSION = '3.40';
1a9318
 
1a9318
 our $SECTION_END_MARKER;
1a9318
 
1a9318
diff --git a/lib/ExtUtils/ParseXS/Eval.pm b/lib/ExtUtils/ParseXS/Eval.pm
1a9318
index 9eba5e5..840bac7 100644
1a9318
--- a/lib/ExtUtils/ParseXS/Eval.pm
1a9318
+++ b/lib/ExtUtils/ParseXS/Eval.pm
1a9318
@@ -2,7 +2,7 @@ package ExtUtils::ParseXS::Eval;
1a9318
 use strict;
1a9318
 use warnings;
1a9318
 
1a9318
-our $VERSION = '3.39';
1a9318
+our $VERSION = '3.40';
1a9318
 
1a9318
 =head1 NAME
1a9318
 
1a9318
diff --git a/lib/ExtUtils/ParseXS/Utilities.pm b/lib/ExtUtils/ParseXS/Utilities.pm
1a9318
index ae25b33..58f3856 100644
1a9318
--- a/lib/ExtUtils/ParseXS/Utilities.pm
1a9318
+++ b/lib/ExtUtils/ParseXS/Utilities.pm
1a9318
@@ -5,7 +5,7 @@ use Exporter;
1a9318
 use File::Spec;
1a9318
 use ExtUtils::ParseXS::Constants ();
1a9318
 
1a9318
-our $VERSION = '3.39';
1a9318
+our $VERSION = '3.40';
1a9318
 
1a9318
 our (@ISA, @EXPORT_OK);
1a9318
 @ISA = qw(Exporter);
1a9318
diff --git a/t/002-more.t b/t/002-more.t
1a9318
index 4aaa3ab..e982290 100644
1a9318
--- a/t/002-more.t
1a9318
+++ b/t/002-more.t
1a9318
@@ -9,7 +9,7 @@ use ExtUtils::CBuilder;
1a9318
 use attributes;
1a9318
 use overload;
1a9318
 
1a9318
-plan tests => 29;
1a9318
+plan tests => 30;
1a9318
 
1a9318
 my ($source_file, $obj_file, $lib_file);
1a9318
 
1a9318
@@ -48,7 +48,7 @@ SKIP: {
1a9318
 }
1a9318
 
1a9318
 SKIP: {
1a9318
-  skip "no dynamic loading", 25
1a9318
+  skip "no dynamic loading", 26
1a9318
     if !$b->have_compiler || !$Config{usedl};
1a9318
   my $module = 'XSMore';
1a9318
   $lib_file = $b->link( objects => $obj_file, module_name => $module );
1a9318
@@ -92,6 +92,9 @@ SKIP: {
1a9318
 
1a9318
   is_deeply [XSMore::outlist()], [ord('a'), ord('b')], 'the OUTLIST keyword';
1a9318
 
1a9318
+  # eval so compile-time sees any prototype
1a9318
+  is_deeply [ eval 'XSMore::outlist()' ], [ord('a'), ord('b')], 'OUTLIST prototypes';
1a9318
+
1a9318
   is XSMore::len("foo"), 3, 'the length keyword';
1a9318
 
1a9318
   is XSMore::sum(5, 9), 14, 'the INCLUDE_COMMAND directive';
1a9318
-- 
1a9318
2.20.1
1a9318