X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=fe745d470bfb8f504701067664afc495d9ed6e02;hb=ce87d91c2356e5fb8cc780255277325e7efd97f1;hp=b54d85a826f264500eeeea669d8327c1b3431c5e;hpb=c03294656c9980c235cc5951a63088fd96d33704;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index b54d85a..fe745d4 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,9 +1,28 @@ #!/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"; +binmode KW; select KW; +print <) { print &tab(5, "#define KEY_$keyword"), $keynum++, "\n"; } +print KW "\n/* ex: set ro: */\n"; + +close KW or die "Error closing keywords.h: $!"; + ########################################################################### sub tab { local($l, $t) = @_; @@ -35,13 +58,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE -RESTART +INIT +CHECK abs accept alarm @@ -83,6 +101,7 @@ endpwent endservent eof eq +err eval exec exists @@ -166,6 +185,7 @@ open opendir or ord +our pack package pipe @@ -177,6 +197,7 @@ prototype push q qq +qr quotemeta qw qx