X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=2cc50b577991dcf0a6ea90d350aa95b93fd8a71b;hb=b60cf05ab72950309ce22f1294b53484e06a00ac;hp=aebb3ee2e7c2a13f956bb12492e309953f35c78a;hpb=137443ea0a858c43f5a720730cac6209a7d41948;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index aebb3ee..2cc50b5 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,9 +1,26 @@ #!/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 <) { print &tab(5, "#define KEY_$keyword"), $keynum++, "\n"; } +close KW or die "Error closing keywords.h: $!"; + ########################################################################### sub tab { local($l, $t) = @_; @@ -35,12 +54,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE +INIT +CHECK abs accept alarm @@ -82,6 +97,7 @@ endpwent endservent eof eq +err eval exec exists @@ -144,6 +160,7 @@ link listen local localtime +lock log lstat lt @@ -164,6 +181,7 @@ open opendir or ord +our pack package pipe @@ -175,6 +193,7 @@ prototype push q qq +qr quotemeta qw qx