This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make ext/re/t/re_funcs.t warnings clean.
[perl5.git]
/
keywords.pl
diff --git
a/keywords.pl
b/keywords.pl
index
ac81d42
..
eb0c0af
100755
(executable)
--- a/
keywords.pl
+++ b/
keywords.pl
@@
-1,4
+1,5
@@
-#!/usr/bin/perl
+#!/usr/bin/perl -w
+use strict;
require 'regen_lib.pl';
safer_unlink ("keywords.h");
require 'regen_lib.pl';
safer_unlink ("keywords.h");
@@
-12,7
+13,7
@@
print <<EOM;
* keywords.h
*
* Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2005,
* keywords.h
*
* Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2005,
- * 2006, by Larry Wall and others
+ * 2006,
2007,
by Larry Wall and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
@@
-25,12
+26,12
@@
EOM
# Read & print data.
# Read & print data.
-$keynum = 0;
+
my
$keynum = 0;
while (<DATA>) {
chop;
next unless $_;
next if /^#/;
while (<DATA>) {
chop;
next unless $_;
next if /^#/;
- ($keyword) = split;
+
my
($keyword) = split;
print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
}
print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
}
@@
-40,7
+41,7
@@
close KW or die "Error closing keywords.h: $!";
###########################################################################
sub tab {
###########################################################################
sub tab {
-
local
($l, $t) = @_;
+
my
($l, $t) = @_;
$t .= "\t" x ($l - (length($t) + 1) / 8);
$t;
}
$t .= "\t" x ($l - (length($t) + 1) / 8);
$t;
}
@@
-55,6
+56,7
@@
__DATA__
__END__
AUTOLOAD
BEGIN
__END__
AUTOLOAD
BEGIN
+UNITCHECK
CORE
DESTROY
END
CORE
DESTROY
END
@@
-103,7
+105,6
@@
endpwent
endservent
eof
eq
endservent
eof
eq
-err
eval
exec
exists
eval
exec
exists
@@
-257,6
+258,7
@@
sprintf
sqrt
srand
stat
sqrt
srand
stat
+state
study
sub
substr
study
sub
substr