[10/20] Consistently use $_[x] instead of @_[x] for scalar parameters

Message ID 1395664691-60544-10-git-send-email-martin@martin.st
State Committed
Commit 29944ffa2507ead757a52333ddfb8445774833a4
Headers show

Commit Message

Martin Storsjö March 24, 2014, 12:38 p.m.
---
 gas-preprocessor.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Janne Grunau March 24, 2014, 3:03 p.m. | #1
On 2014-03-24 14:38:01 +0200, Martin Storsjö wrote:
> ---
>  gas-preprocessor.pl | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

ok

Janne

Patch

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 6274571..27a84b7 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -297,7 +297,7 @@  sub handle_if {
 }
 
 sub parse_if_line {
-    my $line = @_[0];
+    my $line = $_[0];
 
     # evaluate .if blocks
     if (scalar(@ifstack)) {
@@ -334,7 +334,7 @@  sub parse_if_line {
 }
 
 sub parse_line {
-    my $line = @_[0];
+    my $line = $_[0];
 
     return if (parse_if_line($line));
 
@@ -397,7 +397,7 @@  sub handle_set {
 }
 
 sub expand_macros {
-    my $line = @_[0];
+    my $line = $_[0];
 
     # handle .if directives; apple's assembler doesn't support important non-basic ones
     # evaluating them is also needed to handle recursive macros