X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=2cc50b577991dcf0a6ea90d350aa95b93fd8a71b;hb=cfb0f70ef284a0fcaef7c31a3a51f8ae53c7eb7b;hp=acdf807d43e466256705370b286faeb592f82fb7;hpb=4f25aa189c4a92535547c706ad37c13b7caee387;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index acdf807..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,14 +54,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT INIT -LE -LT -NE -STOP +CHECK abs accept alarm @@ -84,6 +97,7 @@ endpwent endservent eof eq +err eval exec exists