X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=2cc50b577991dcf0a6ea90d350aa95b93fd8a71b;hb=ab5f7a047194357ab367848e6e322b76ed830de6;hp=55992b8c1bfd29b023bbebbc6555e3829861dbc8;hpb=855a8c432447f455cac508112ba202de0207351d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index 55992b8..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) = @_; @@ -78,6 +97,7 @@ endpwent endservent eof eq +err eval exec exists @@ -175,7 +195,6 @@ q qq qr quotemeta -qu qw qx rand