This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In make_ext.pl, inline _macroify_passthrough() into its only caller.
authorNicholas Clark <nick@ccl4.org>
Sun, 3 Jun 2012 20:05:58 +0000 (22:05 +0200)
committerNicholas Clark <nick@ccl4.org>
Tue, 5 Jun 2012 18:59:36 +0000 (20:59 +0200)
make_ext.pl

index 399bd41..28a67a3 100644 (file)
@@ -449,8 +449,11 @@ EOS
     }
 
     if ($is_VMS) {
-       _macroify_passthrough($pass_through);
-       unshift @$pass_through, "/DESCRIPTION=$makefile";
+       _quote_args($pass_through);
+       @$pass_through = (
+                         "/DESCRIPTION=$makefile",
+                         '/MACRO=(' . join(',',@$pass_through) . ')'
+                        );
     }
 
     if (!$target or $target !~ /clean$/) {
@@ -478,11 +481,3 @@ sub _quote_args {
     } @{$args}
     ;
 }
-
-sub _macroify_passthrough {
-    my $passthrough = shift;
-    _quote_args($passthrough);
-    my $macro = '/MACRO=(' . join(',',@$passthrough) . ')';
-    @$passthrough = ();
-    @$passthrough[0] = $macro;  
-}