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
optimisation for File::Spec::abs2rel where both args are relative
[perl5.git]
/
keywords.pl
diff --git
a/keywords.pl
b/keywords.pl
index
00c067c
..
441d04b
100755
(executable)
--- a/
keywords.pl
+++ b/
keywords.pl
@@
-1,18
+1,25
@@
#!/usr/bin/perl
#!/usr/bin/perl
-unlink "keywords.h";
+require 'regen_lib.pl';
+safer_unlink ("keywords.h");
open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
+binmode KW;
select KW;
print <<EOM;
select KW;
print <<EOM;
-/*
+/* -*- buffer-read-only: t -*-
+ *
* keywords.h
*
* keywords.h
*
- * Copyright (c) 1997-2002, Larry Wall
+ * Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2005,
+ * 2006, 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.
*
+ * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
+ * This file is built by keywords.pl from its data. Any changes made here
+ * will be lost!
*/
EOM
*/
EOM
@@
-27,6
+34,10
@@
while (<DATA>) {
print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
}
print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
}
+print KW "\n/* ex: set ro: */\n";
+
+close KW or die "Error closing keywords.h: $!";
+
###########################################################################
sub tab {
local($l, $t) = @_;
###########################################################################
sub tab {
local($l, $t) = @_;
@@
-57,6
+68,7
@@
atan2
bind
binmode
bless
bind
binmode
bless
+break
caller
chdir
chmod
caller
chdir
chmod
@@
-74,6
+86,7
@@
cos
crypt
dbmclose
dbmopen
crypt
dbmclose
dbmopen
+default
defined
delete
die
defined
delete
die
@@
-90,6
+103,7
@@
endpwent
endservent
eof
eq
endservent
eof
eq
+err
eval
exec
exists
eval
exec
exists
@@
-130,6
+144,7
@@
getservbyport
getservent
getsockname
getsockopt
getservent
getsockname
getsockopt
+given
glob
gmtime
goto
glob
gmtime
goto
@@
-207,6
+222,7
@@
rewinddir
rindex
rmdir
s
rindex
rmdir
s
+say
scalar
seek
seekdir
scalar
seek
seekdir
@@
-241,6
+257,7
@@
sprintf
sqrt
srand
stat
sqrt
srand
stat
+state
study
sub
substr
study
sub
substr
@@
-277,6
+294,7
@@
wait
waitpid
wantarray
warn
waitpid
wantarray
warn
+when
while
write
x
while
write
x