This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Hash::Util::hash_seed() which answers among
[perl5.git] / keywords.pl
index d3426be..2cc50b5 100755 (executable)
@@ -1,8 +1,26 @@
 #!/usr/bin/perl
 
+require 'regen_lib.pl';
+safer_unlink ("keywords.h");
 open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
 select KW;
 
+print <<EOM;
+/*
+ *    keywords.h
+ *
+ *    Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
+ *    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.
+ *
+ * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
+ *  This file is built by keywords.pl from its data.  Any changes made here
+ *  will be lost!
+ */
+EOM
+
 # Read & print data.
 
 $keynum = 0;
@@ -14,6 +32,8 @@ while (<DATA>) {
     print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
 }
 
+close KW or die "Error closing keywords.h: $!";
+
 ###########################################################################
 sub tab {
     local($l, $t) = @_;
@@ -24,20 +44,18 @@ sub tab {
 __END__
 
 NULL
-__LINE__
 __FILE__
+__LINE__
+__PACKAGE__
+__DATA__
 __END__
 AUTOLOAD
 BEGIN
 CORE
 DESTROY
 END
-EQ
-GE
-GT
-LE
-LT
-NE
+INIT
+CHECK
 abs
 accept
 alarm
@@ -79,6 +97,7 @@ endpwent
 endservent
 eof
 eq
+err
 eval
 exec
 exists
@@ -141,6 +160,7 @@ link
 listen
 local
 localtime
+lock
 log
 lstat
 lt
@@ -161,6 +181,7 @@ open
 opendir
 or
 ord
+our
 pack
 package
 pipe
@@ -168,9 +189,11 @@ pop
 pos
 print
 printf
+prototype
 push
 q
 qq
+qr
 quotemeta
 qw
 qx
@@ -231,12 +254,15 @@ sub
 substr
 symlink
 syscall
+sysopen
 sysread
+sysseek
 system
 syswrite
 tell
 telldir
 tie
+tied
 time
 times
 tr