X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=c804620cf8cf4a3d378a69f5e8864999dbf22344;hb=b891b7335194e891dcfaf5a5077012facb06d75b;hp=f907e3f115ca95d2f2feada5c94f9736c2c360e9;hpb=8782bef2aa2ca158fdd0d7436e68ae3ac2b01ff7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index f907e3f..c804620 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,9 +1,25 @@ #!/usr/bin/perl -unlink "keywords.h"; +require 'regen.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 +53,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT INIT -LE -LT -NE +CHECK abs accept alarm @@ -83,6 +96,7 @@ endpwent endservent eof eq +err eval exec exists @@ -166,6 +180,7 @@ open opendir or ord +our pack package pipe