X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=2cc50b577991dcf0a6ea90d350aa95b93fd8a71b;hb=b60cf05ab72950309ce22f1294b53484e06a00ac;hp=06ee8f3efc4b45c9e150a2682ebfa036b18bff4a;hpb=9aa983d27b0af31badfcbbb76567f6e557076b41;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index 06ee8f3..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,13 +54,7 @@ BEGIN CORE DESTROY END -EQ -GE -GT INIT -LE -LT -NE CHECK abs accept @@ -84,6 +97,7 @@ endpwent endservent eof eq +err eval exec exists @@ -181,7 +195,6 @@ q qq qr quotemeta -qu qw qx rand