#!/usr/bin/perl
+require 'regen_lib.pl';
+safer_unlink ("keywords.h");
open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
+binmode KW;
select KW;
+print <<EOM;
+/* -*- buffer-read-only: t -*-
+ *
+ * keywords.h
+ *
+ * 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.
+ *
+ * !!!!!!! 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;
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) = @_;
__END__
NULL
-__LINE__
__FILE__
+__LINE__
+__PACKAGE__
__DATA__
__END__
AUTOLOAD
BEGIN
+UNITCHECK
CORE
DESTROY
END
-EQ
-GE
-GT
-LE
-LT
-NE
-RESTART
+INIT
+CHECK
abs
accept
alarm
bind
binmode
bless
+break
caller
chdir
chmod
crypt
dbmclose
dbmopen
+default
defined
delete
die
endservent
eof
eq
+err
eval
exec
exists
getservent
getsockname
getsockopt
+given
glob
gmtime
goto
listen
local
localtime
+lock
log
lstat
lt
opendir
or
ord
+our
pack
package
pipe
push
q
qq
+qr
quotemeta
qw
qx
rindex
rmdir
s
+say
scalar
seek
seekdir
sqrt
srand
stat
+state
study
sub
substr
syscall
sysopen
sysread
+sysseek
system
syswrite
tell
waitpid
wantarray
warn
+when
while
write
x