#!/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";
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;
print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
}
+close KW or die "Error closing keywords.h: $!";
+
###########################################################################
sub tab {
local($l, $t) = @_;
CORE
DESTROY
END
-EQ
-GE
-GT
INIT
-LE
-LT
-NE
CHECK
abs
accept
endservent
eof
eq
+err
eval
exec
exists
qq
qr
quotemeta
-qu
qw
qx
rand