X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=2cc50b577991dcf0a6ea90d350aa95b93fd8a71b;hb=40996b7810cf32994b2b30ccaee4f9d870d60be0;hp=f907e3f115ca95d2f2feada5c94f9736c2c360e9;hpb=8782bef2aa2ca158fdd0d7436e68ae3ac2b01ff7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index f907e3f..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,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT INIT -LE -LT -NE +CHECK abs accept alarm @@ -83,6 +97,7 @@ endpwent endservent eof eq +err eval exec exists @@ -166,6 +181,7 @@ open opendir or ord +our pack package pipe