summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/mksyscall.pl
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-08-03 16:54:30 +0200
committerOndřej Surý <ondrej@sury.org>2011-08-03 16:54:30 +0200
commit28592ee1ea1f5cdffcf85472f9de0285d928cf12 (patch)
tree32944e18b23f7fe4a0818a694aa2a6dfb1835463 /src/pkg/syscall/mksyscall.pl
parente836bee4716dc0d4d913537ad3ad1925a7ac32d0 (diff)
downloadgolang-upstream/59.tar.gz
Imported Upstream version 59upstream/59
Diffstat (limited to 'src/pkg/syscall/mksyscall.pl')
-rwxr-xr-xsrc/pkg/syscall/mksyscall.pl17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/pkg/syscall/mksyscall.pl b/src/pkg/syscall/mksyscall.pl
index ecf4abdd4..ed6525972 100755
--- a/src/pkg/syscall/mksyscall.pl
+++ b/src/pkg/syscall/mksyscall.pl
@@ -19,11 +19,12 @@
# block, as otherwise the system call could cause all goroutines to
# hang.
-$cmdline = "mksyscall.pl " . join(' ', @ARGV);
-$errors = 0;
-$_32bit = "";
-$nacl = 0;
-$plan9 = 0;
+use strict;
+
+my $cmdline = "mksyscall.pl " . join(' ', @ARGV);
+my $errors = 0;
+my $_32bit = "";
+my $plan9 = 0;
if($ARGV[0] eq "-b32") {
$_32bit = "big-endian";
@@ -32,10 +33,6 @@ if($ARGV[0] eq "-b32") {
$_32bit = "little-endian";
shift;
}
-if($ARGV[0] eq "-nacl") {
- $nacl = 1;
- shift;
-}
if($ARGV[0] eq "-plan9") {
$plan9 = 1;
shift;
@@ -66,7 +63,7 @@ sub parseparam($) {
return ($1, $2);
}
-$text = "";
+my $text = "";
while(<>) {
chomp;
s/\s+/ /g;